diff --git a/server-api/migrations/2020-07-05-215114_members/up.sql b/server-api/migrations/2020-07-05-215114_members/up.sql index a76d470..9715076 100644 --- a/server-api/migrations/2020-07-05-215114_members/up.sql +++ b/server-api/migrations/2020-07-05-215114_members/up.sql @@ -1,7 +1,7 @@ -- TODO: add rate limiter in some form -- PERMISSIONS start at 0 and full perms => all F's CREATE TABLE IF NOT EXISTS `members`( - `id` bigint UNSIGNED NOT NULL auto_increment, + `id` BIGINT UNSIGNED NOT NULL auto_increment, `secret` varchar(256) NOT NULL, `name` varchar(256) NOT NULL, `joindate` bigint NOT NULL, diff --git a/server-api/migrations/2020-07-06-022319_messages/up.sql b/server-api/migrations/2020-07-06-022319_messages/up.sql index 9ef2204..d97f62f 100644 --- a/server-api/migrations/2020-07-06-022319_messages/up.sql +++ b/server-api/migrations/2020-07-06-022319_messages/up.sql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `messages`( `time` BIGINT NOT NULL, `content` VARCHAR(2048) NOT NULL, `author_id` BIGINT UNSIGNED NOT NULL, - `channel_id` VARCHAR(255) NOT NULL, + `channel_id` BIGINT UNSIGNED NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`author_id`) REFERENCES members(`id`), FOREIGN KEY (`channel_id`) REFERENCES channels(`id`)