Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3395039
D4506.id14459.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.id14459.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, 1:14 AM (12 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606400
Default Alt Text
D4506.id14459.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