- change email to varchar instead of text

This commit is contained in:
Markus Brueckner 2024-12-17 10:53:59 +01:00
parent 4e32589ce6
commit 7a39a8474c

View file

@ -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`)