From a810fcc8bc6cb22fed24fc86e39ac0208810e2eb Mon Sep 17 00:00:00 2001 From: thrillfall Date: Tue, 6 Jul 2021 14:23:25 +0200 Subject: [PATCH] shorten to long table names --- lib/Migration/Version0001Date20210520063113.php | 6 +++--- lib/Migration/Version0002Date20210524131313.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Migration/Version0001Date20210520063113.php b/lib/Migration/Version0001Date20210520063113.php index 1904c08..93ca14d 100644 --- a/lib/Migration/Version0001Date20210520063113.php +++ b/lib/Migration/Version0001Date20210520063113.php @@ -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; } diff --git a/lib/Migration/Version0002Date20210524131313.php b/lib/Migration/Version0002Date20210524131313.php index e92b008..7fc6665 100644 --- a/lib/Migration/Version0002Date20210524131313.php +++ b/lib/Migration/Version0002Date20210524131313.php @@ -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,