shorten to long table names

This commit is contained in:
thrillfall 2021-07-06 14:23:25 +02:00
parent c843456c0a
commit a810fcc8bc
2 changed files with 5 additions and 5 deletions

View File

@ -14,8 +14,8 @@ class Version0001Date20210520063113 extends \OCP\Migration\SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if (!$schema->hasTable('gpoddersync_episode_action')) {
$table = $schema->createTable('gpoddersync_episode_action');
if (!$schema->hasTable('gpodder_episode_action')) {
$table = $schema->createTable('gpodder_episode_action');
$table->addColumn('id', 'integer', [
'autoincrement' => true,
'notnull' => true,
@ -52,7 +52,7 @@ class Version0001Date20210520063113 extends \OCP\Migration\SimpleMigrationStep {
]);
$table->setPrimaryKey(['id']);
$table->addUniqueIndex(['episode', 'user_id'], 'gpoddersync_episode_user_id');
$table->addUniqueIndex(['episode', 'user_id'], 'gpodder_episode_user_id');
}
return $schema;
}

View File

@ -13,8 +13,8 @@ class Version0002Date20210524131313 extends \OCP\Migration\SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if (!$schema->hasTable('gpoddersync_subscriptions')) {
$table = $schema->createTable('gpoddersync_subscriptions');
if (!$schema->hasTable('gpodder_subscriptions')) {
$table = $schema->createTable('gpodder_subscriptions');
$table->addColumn('id', 'integer', [
'autoincrement' => true,
'notnull' => true,