mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-01-06 11:27:54 -05:00
Group Up V0.4.0
Lotta changes, compiled from months ago. In short: 2 new tables for handling new features Now runs latest DD on latest Deno Auto-clean Alternate=>Joined auto-promote Join on behalf of someone else bugfixes!
This commit is contained in:
@ -26,6 +26,8 @@ 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_prefix;`);
|
||||
await dbClient.execute(`DROP TABLE IF EXISTS guild_mod_role;`);
|
||||
await dbClient.execute(`DROP TABLE IF EXISTS guild_clean_channel;`);
|
||||
console.log("Tables dropped");
|
||||
|
||||
console.log("Attempting to create table command_cnt");
|
||||
@ -63,5 +65,26 @@ await dbClient.execute(`
|
||||
`);
|
||||
console.log("Table created");
|
||||
|
||||
console.log("Attempting to create table guild_mod_role");
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE guild_mod_role (
|
||||
guildId bigint unsigned NOT NULL,
|
||||
roleId bigint unsigned NOT NULL,
|
||||
PRIMARY KEY (guildid),
|
||||
UNIQUE KEY guild_mod_role_guildid_UNIQUE (guildid)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
`);
|
||||
console.log("Table created");
|
||||
|
||||
console.log("Attempting to create table guild_clean_channel");
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE guild_clean_channel (
|
||||
guildId bigint unsigned NOT NULL,
|
||||
channelId bigint unsigned NOT NULL,
|
||||
PRIMARY KEY (guildid, channelId)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
`);
|
||||
console.log("Table created");
|
||||
|
||||
await dbClient.close();
|
||||
console.log("Done!");
|
||||
|
||||
Reference in New Issue
Block a user