mirror of
https://github.com/ArthurDanjou/spanish-learner.git
synced 2026-01-26 18:00:35 +01:00
Init project
This commit is contained in:
11
server/database/migrations/0001_conscious_plazm.sql
Normal file
11
server/database/migrations/0001_conscious_plazm.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user