Files
spanish-learner/server/database/migrations/0001_conscious_plazm.sql
2024-07-25 23:44:32 +02:00

11 lines
440 B
SQL

CREATE TABLE `words` (
`id` integer PRIMARY KEY NOT NULL,
`word` text DEFAULT '',
`translation` text DEFAULT '',
`created_at` text DEFAULT (CURRENT_DATE)
);
--> statement-breakpoint
ALTER TABLE `users` RENAME TO `verbs`;--> statement-breakpoint
ALTER TABLE `verbs` RENAME COLUMN `name` TO `verb`;--> statement-breakpoint
ALTER TABLE `verbs` ADD `translation` text DEFAULT '';--> statement-breakpoint
ALTER TABLE `verbs` ADD `type` text;