From f77cf749c0ba5094c88e207b7b660ece8dd44cbe Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 1 Oct 2020 16:29:43 +0200 Subject: [PATCH] remove duplicate primary key since autoincrement automatically becomes the primary key on most(?) databases, we can't set another one Signed-off-by: Robin Appelman --- lib/Migration/Version0003Date20200611000001.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Migration/Version0003Date20200611000001.php b/lib/Migration/Version0003Date20200611000001.php index cb588743..1202a4a1 100644 --- a/lib/Migration/Version0003Date20200611000001.php +++ b/lib/Migration/Version0003Date20200611000001.php @@ -748,7 +748,7 @@ class Version0003Date20200611000001 extends SimpleMigrationStep { ] ); - $table->setPrimaryKey(['id_prim']); + $table->addUniqueIndex(['id_prim']); $table->addUniqueIndex(['nid']); $table->addIndex(['chunk'], 'chunk'); $table->addUniqueIndex( @@ -935,7 +935,7 @@ class Version0003Date20200611000001 extends SimpleMigrationStep { ] ); - $table->setPrimaryKey(['id_prim']); + $table->addUniqueIndex(['id_prim']); $table->addUniqueIndex(['nid']); } @@ -1046,7 +1046,7 @@ class Version0003Date20200611000001 extends SimpleMigrationStep { ); $table->setPrimaryKey(['id_prim']); -// $table->addUniqueIndex(['url'], 'unique_url'); + $table->addUniqueIndex(['url'], 'unique_url'); } /**