mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-01-06 11:27:54 -05:00
Finalize event creation
Add active_event db table Rename gameSelection button to gameSelection for consistency Fix prefill for DateTime modal to correctly parse time and to not misparse other embeds Add autoCleanup to finalize step Add whole createEvent step Code usability updates to event-creation utils
This commit is contained in:
@ -13,6 +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;`);
|
||||
console.log('Tables dropped');
|
||||
|
||||
console.log('Attempting to create table command_cnt');
|
||||
@ -51,5 +52,20 @@ await dbClient.execute(`
|
||||
`);
|
||||
console.log('Table created');
|
||||
|
||||
console.log('Attempting to create table active_event');
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE active_event (
|
||||
messageId bigint unsigned NOT NULL,
|
||||
channelId bigint unsigned NOT NULL,
|
||||
guildId bigint unsigned NOT NULL,
|
||||
ownerId bigint unsigned NOT NULL,
|
||||
eventTime timestamp NOT NULL,
|
||||
notifiedFlag tinyint(1) NOT NULL DEFAULT 0,
|
||||
lockedFlag tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (messageId, channelId)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
`);
|
||||
console.log('Table created');
|
||||
|
||||
await dbClient.close();
|
||||
console.log('Done!');
|
||||
|
||||
Reference in New Issue
Block a user