Ariweb Suite 0.1.1 기반: 공통 라이브러리(db·http·세션·작업 엔진·할당/예약·알림·감사·보관소), 포털 뼈대, Webmaker/AriMail 도입 소스와 manifest
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
9ca4cee341
commit
c7aea8d419
@@ -0,0 +1,9 @@
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { openDb, migrate } from './db.mjs';
|
||||
const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const file = process.env.DB_FILE || join(ROOT, 'data', 'mail-gateway.sqlite');
|
||||
const db = openDb(file);
|
||||
console.log(` DB: ${file}`);
|
||||
migrate(db, join(ROOT, 'migrations'));
|
||||
db.close();
|
||||
Reference in New Issue
Block a user