Skip to content

Commit

Permalink
fix(db): Use text columns for user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Nov 25, 2019
1 parent 61112da commit d272fa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/db/setup_dbx.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CREATE TABLE `commandUsages` (
CREATE TABLE `customInvites` (
`id` int(11) NOT NULL,
`amount` bigint(11) DEFAULT NULL,
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cleared` tinyint(4) NOT NULL DEFAULT '0',
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`guildId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
Expand All @@ -70,7 +70,7 @@ CREATE TABLE `guilds` (
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`memberCount` int(11) DEFAULT NULL,
`banReason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`banReason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`deletedAt` datetime DEFAULT NULL
Expand Down Expand Up @@ -111,7 +111,7 @@ CREATE TABLE `incidents` (

CREATE TABLE `inviteCodes` (
`code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maxAge` int(11) DEFAULT NULL,
`maxUses` int(11) DEFAULT NULL,
`uses` int(11) DEFAULT NULL,
Expand Down Expand Up @@ -245,7 +245,7 @@ CREATE TABLE `punishments` (
`guildId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`memberId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`creatorId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Expand Down Expand Up @@ -304,7 +304,7 @@ CREATE TABLE `scheduledActions` (
`actionType` enum('unmute') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`args` json DEFAULT NULL,
`date` datetime DEFAULT NULL,
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`guildId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
Expand Down

0 comments on commit d272fa0

Please sign in to comment.