Page MenuHomePhabricator

D4506.id14458.diff
No OneTemporary

D4506.id14458.diff

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

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)

Event Timeline