From 69d78b83add86d5b94903acba59ffa0fbd93cf18 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Thu, 28 Dec 2023 17:04:34 +0000 Subject: [PATCH] Unique constraint fix --- src/mothership-app/migrations/1703778362_updated_instances.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mothership-app/migrations/1703778362_updated_instances.js b/src/mothership-app/migrations/1703778362_updated_instances.js index de59358c..271d62ed 100644 --- a/src/mothership-app/migrations/1703778362_updated_instances.js +++ b/src/mothership-app/migrations/1703778362_updated_instances.js @@ -10,7 +10,7 @@ migrate((db) => { "CREATE INDEX `idx_TfdgNnO` ON `instances` (`maintenance`)", "CREATE INDEX `idx_FrmHehp` ON `instances` (`created`)", "CREATE INDEX `idx_tNMeylJ` ON `instances` (`updated`)", - "CREATE UNIQUE INDEX `idx_rBYwAXi` ON `instances` (`cname_active`) WHERE cname != ''" + "CREATE UNIQUE INDEX `idx_rBYwAXi` ON `instances` (`cname`) WHERE cname != ''" ] // add