mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-16 00:14:21 -05:00
16 lines
298 B
JavaScript
16 lines
298 B
JavaScript
require("dotenv").config();
|
|
const { Client } = require("pg");
|
|
|
|
async function main() {
|
|
const client = new Client({ connectionString: process.env.DATABASE_URL });
|
|
|
|
try {
|
|
await client.connect();
|
|
await client.query("drop table migrations;");
|
|
} finally {
|
|
client.end();
|
|
}
|
|
}
|
|
|
|
main();
|