shorten to long table names
This commit is contained in:
parent
c843456c0a
commit
a810fcc8bc
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user