This commit is contained in:
seb
2026-07-31 00:22:36 +02:00
parent af8ef0a788
commit a47c598f76
2 changed files with 2 additions and 5 deletions

View File

@@ -1,10 +1,7 @@
import { SCHEMA_SCRIPTS } from '../schema.js';
import purge from './purge.js';
export default function initialize(pool) {
const doPurge = purge(pool);
return async () => {
await doPurge();
for (const script of SCHEMA_SCRIPTS) {
await pool.request().query(script);
}