From a47c598f769e558c3699a569616583f29f73535c Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 31 Jul 2026 00:22:36 +0200 Subject: [PATCH] u --- scripts/test-api.js | 4 ++-- src/store/initialize.js | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/test-api.js b/scripts/test-api.js index 45e20aa..db94393 100644 --- a/scripts/test-api.js +++ b/scripts/test-api.js @@ -66,7 +66,7 @@ const METHODS = [ { value: 'google_auth.add', label: 'google_auth.add', hint: 'email → authId' }, { value: 'google_auth.list', label: 'google_auth.list', hint: '→ rows' }, { value: 'google_auth.del', label: 'google_auth.del', hint: 'id' }, - { value: 'initialize', label: 'initialize', hint: 'purge + recreate' }, + { value: 'initialize', label: 'initialize', hint: 'ensure schema (no purge)' }, { value: 'purge', label: chalk.red('purge'), hint: 'drop all · exit' }, { value: 'exit', label: 'exit', hint: 'quit without purge' }, ]; @@ -220,7 +220,7 @@ async function main() { p.note( [ chalk.dim(`${config.server} / ${config.database}`), - chalk.dim('purge ends the session'), + chalk.dim('initialize = ensure schema · purge ends session'), ].join('\n'), 'Connected', ); diff --git a/src/store/initialize.js b/src/store/initialize.js index 7bd731a..0bed354 100644 --- a/src/store/initialize.js +++ b/src/store/initialize.js @@ -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); }