Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3333775
D5521.id18060.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
855 B
Referenced Files
None
Subscribers
None
D5521.id18060.diff
View Options
diff --git a/keyserver/src/database/migration-config.js b/keyserver/src/database/migration-config.js
--- a/keyserver/src/database/migration-config.js
+++ b/keyserver/src/database/migration-config.js
@@ -48,16 +48,19 @@
},
],
[
- 6,
+ 7,
async () => {
- await dbQuery(SQL`
- ALTER TABLE users
- DROP COLUMN public_key,
- MODIFY hash char(60) COLLATE utf8mb4_bin DEFAULT NULL;
-
- ALTER TABLE sessions
- DROP COLUMN public_key;
- `);
+ await dbQuery(
+ SQL`
+ ALTER TABLE users
+ DROP COLUMN IF EXISTS public_key,
+ MODIFY hash char(60) COLLATE utf8mb4_bin DEFAULT NULL;
+
+ ALTER TABLE sessions
+ DROP COLUMN IF EXISTS public_key;
+ `,
+ { multipleStatements: true },
+ );
},
],
]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 5:14 AM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2560061
Default Alt Text
D5521.id18060.diff (855 B)
Attached To
Mode
D5521: [sql/keyserver] added multipleStatements to fix fatal error
Attached
Detach File
Event Timeline
Log In to Comment