mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix db:migrate script
This commit is contained in:
parent
8a23011392
commit
f116950a83
1 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,10 @@ if (Deno.env.get('CI') && Conf.db.dialect === 'postgres') {
|
|||
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();
|
||||
|
||||
Deno.exit();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue