From 9242def5042e1fee0c4e2667c5e0368b8471d36b Mon Sep 17 00:00:00 2001 From: JonOfUs Date: Fri, 11 Nov 2022 12:11:35 +0100 Subject: [PATCH] Add separate migration so that all systems have the same schema after hotfix --- lib/Migration/Version0007Date202211111100.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/Migration/Version0007Date202211111100.php diff --git a/lib/Migration/Version0007Date202211111100.php b/lib/Migration/Version0007Date202211111100.php new file mode 100644 index 0000000..9a14286 --- /dev/null +++ b/lib/Migration/Version0007Date202211111100.php @@ -0,0 +1,23 @@ +getTable('gpodder_subscriptions'); + $table->dropIndex('subscriptions_url_user'); + $table->addUniqueIndex(['url', "user_id"], 'subscriptions_url_user', [ + 'lengths' => [ 500, 200 ] + ]); + + return $schema; + } +} \ No newline at end of file