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:
@ -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};`);
|
||||
|
||||
@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user