1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-06 11:27:54 -05:00

restructure DB files to make initialization easier

This commit is contained in:
Ean Milligan
2024-05-18 18:05:40 -04:00
parent 7f7f7e2445
commit 5a8cd8e8bb
36 changed files with 93 additions and 60 deletions

View File

@ -2,7 +2,7 @@
// DATA WILL BE LOST IF DB ALREADY EXISTS, RUN AT OWN RISK
import config from '../config.ts';
import { dbClient } from '../src/db.ts';
import { dbClient } from '../src/db/client.ts';
console.log('Attempting to create DB');
await dbClient.execute(`CREATE SCHEMA IF NOT EXISTS ${config.db.name};`);

View File

@ -1,5 +1,5 @@
// This file will populate the tables with default values
import { dbClient } from '../src/db.ts';
import { dbClient } from '../src/db/client.ts';
console.log('Attempting to insert default actions into command_cnt');
const actions = [