Revert "feat: auto-migration on startup (ensureSchema)"

This reverts commit dce2368712.
This commit is contained in:
2026-06-09 19:48:43 +04:00
parent dce2368712
commit b0e43f981b
2 changed files with 3 additions and 45 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ const path = require('path');
const helmet = require('helmet');
require('dotenv').config();
const { checkConnection, ensureSchema } = require('./src/db');
const { checkConnection } = require('./src/db');
const { initAuth } = require('./src/auth');
const q = require('./src/queries');
const { MOCK_USERS, APP_VERSION } = require('./src/config');
@@ -127,7 +127,7 @@ async function start() {
// ── Старт сервера ─────────────────────────────────────────────────────────────
checkConnection()
.then(() => { console.log('DB connected'); return ensureSchema(); })
.then(() => console.log('DB connected'))
.catch(e => console.error('DB not ready:', e.message));
return app;