mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import { DittoConf } from '@ditto/conf';
|
|
|
|
import { DittoPostgres } from './DittoPostgres.ts';
|
|
|
|
const conf = new DittoConf(Deno.env);
|
|
const isPostgres = /^postgres(?:ql)?:/.test(conf.databaseUrl);
|
|
|
|
Deno.test('DittoPostgres', { ignore: !isPostgres }, async () => {
|
|
await using db = new DittoPostgres(conf.databaseUrl);
|
|
await db.migrate();
|
|
});
|