mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 14:04:23 +01:00
Fix db:migrate script
This commit is contained in:
@@ -7,7 +7,10 @@ if (Deno.env.get('CI') && Conf.db.dialect === 'postgres') {
|
|||||||
await sleep(1_000);
|
await sleep(1_000);
|
||||||
}
|
}
|
||||||
|
|
||||||
const kysely = await DittoDB.getInstance();
|
// This migrates kysely internally.
|
||||||
|
const { kysely } = await DittoDB.getInstance();
|
||||||
|
|
||||||
|
// Close the connection before exiting.
|
||||||
await kysely.destroy();
|
await kysely.destroy();
|
||||||
|
|
||||||
Deno.exit();
|
Deno.exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user