no deprecation on node16?

This commit is contained in:
2026-04-02 14:42:35 -05:00
parent f13035f8c5
commit e3f3d5a289
9 changed files with 25 additions and 16 deletions

View File

@@ -1,6 +1,9 @@
import { pool } from './pool';
import { pool } from './pool.js';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
async function migrate() {
const sql = fs.readFileSync(path.join(__dirname, 'schema.sql'), 'utf-8');