Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3396455
D4506.id14458.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
732 B
Referenced Files
None
Subscribers
None
D4506.id14458.diff
View Options
diff --git a/keyserver/src/database/migrations.js b/keyserver/src/database/migrations.js
--- a/keyserver/src/database/migrations.js
+++ b/keyserver/src/database/migrations.js
@@ -2,7 +2,9 @@
import type { QueryResults } from 'mysql';
+import { isDev } from 'lib/utils/dev-utils';
import { getMessageForException } from 'lib/utils/errors';
+import sleep from 'lib/utils/sleep';
import { dbQuery, SQL } from './database';
import { fetchDBVersion, updateDBVersion } from './db-version';
@@ -10,6 +12,10 @@
import { setupDB } from './setup-db';
async function migrate(): Promise<boolean> {
+ if (isDev) {
+ await sleep(5000);
+ }
+
let dbVersion = null;
try {
dbVersion = await setUpDBAndReturnVersion();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 2, 12:27 PM (21 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606400
Default Alt Text
D4506.id14458.diff (732 B)
Attached To
Mode
D4506: [server] Add delay before setuping database and running migrations
Attached
Detach File
Event Timeline
Log In to Comment