Fix db:migrate script

This commit is contained in:
Alex Gleason 2024-08-12 15:25:51 -05:00
parent 8a23011392
commit f116950a83
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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();