diff --git a/server/migrations/2020-02-04-083551_users/up.sql b/server/migrations/2020-02-04-083551_users/up.sql index 754afdf..0b9f2da 100644 --- a/server/migrations/2020-02-04-083551_users/up.sql +++ b/server/migrations/2020-02-04-083551_users/up.sql @@ -1,9 +1,9 @@ -- Your SQL goes here CREATE TABLE IF NOT EXISTS `users` ( - `id` int(10) NOT NULL auto_increment, - `username` varchar(255), + `id` bigint NOT NULL auto_increment, + `username` varchar(255) NOT NULL, `display` varchar(255), - `password` varchar(255), + `password` varchar(255) NOT NULL, `email` varchar(255), PRIMARY KEY( `id` ) ); diff --git a/server/migrations/2020-02-04-083657_invites/up.sql b/server/migrations/2020-02-04-083657_invites/up.sql index 1fcece6..6b3c4dd 100644 --- a/server/migrations/2020-02-04-083657_invites/up.sql +++ b/server/migrations/2020-02-04-083657_invites/up.sql @@ -1,7 +1,7 @@ -- Your SQL goes here CREATE TABLE IF NOT EXISTS `invites` ( - `id` bigint NOT NULL, - `expires` datetime, - `uses` numeric(9,2), + `id` bigint UNSIGNED NOT NULL, + `expires` bigint UNSIGNED NOT NULL, + `uses` integer, PRIMARY KEY( `id` ) );