summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-01 16:29:43 +0200
committerRobin Appelman <robin@icewind.nl>2020-10-01 17:32:23 +0200
commitf77cf749c0ba5094c88e207b7b660ece8dd44cbe (patch)
tree0be0830afb77d2adb064fff50f361fe13f00b952 /lib
parenta0eb2b2ee38f5eb71d85574b99a4cb6689e2d5dc (diff)
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 <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version0003Date20200611000001.php6
1 files 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');
}
/**