no deprecation on node16?
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user