- change email to varchar instead of text
This commit is contained in:
parent
4e32589ce6
commit
7a39a8474c
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ CREATE TABLE `surveys_table` (
|
||||||
--> statement-breakpoint
|
--> statement-breakpoint
|
||||||
CREATE TABLE `users_table` (
|
CREATE TABLE `users_table` (
|
||||||
`id` int AUTO_INCREMENT NOT NULL,
|
`id` int AUTO_INCREMENT NOT NULL,
|
||||||
`email` text NOT NULL,
|
`email` varchar(255) NOT NULL,
|
||||||
`password_hash` text NOT NULL,
|
`password_hash` text NOT NULL,
|
||||||
CONSTRAINT `users_table_id` PRIMARY KEY(`id`),
|
CONSTRAINT `users_table_id` PRIMARY KEY(`id`),
|
||||||
CONSTRAINT `users_table_email_unique` UNIQUE(`email`)
|
CONSTRAINT `users_table_email_unique` UNIQUE(`email`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue