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

Update guild delete and clean map

This commit is contained in:
Ean Milligan (Bastion)
2023-04-21 02:41:37 -04:00
parent 4011cf74d6
commit 815364305b
3 changed files with 17 additions and 9 deletions

View File

@ -13,7 +13,7 @@ console.log('Attempt to drop all tables');
await dbClient.execute(`DROP PROCEDURE IF EXISTS INC_CNT;`);
await dbClient.execute(`DROP TABLE IF EXISTS command_cnt;`);
await dbClient.execute(`DROP TABLE IF EXISTS guild_settings;`);
await dbClient.execute(`DROP TABLE IF EXISTS active_event;`);
await dbClient.execute(`DROP TABLE IF EXISTS active_events;`);
console.log('Tables dropped');
console.log('Attempting to create table command_cnt');
@ -52,9 +52,9 @@ await dbClient.execute(`
`);
console.log('Table created');
console.log('Attempting to create table active_event');
console.log('Attempting to create table active_events');
await dbClient.execute(`
CREATE TABLE active_event (
CREATE TABLE active_events (
messageId bigint unsigned NOT NULL,
channelId bigint unsigned NOT NULL,
guildId bigint unsigned NOT NULL,