mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-31 01:28:42 +01:00
Add migrations folder
This commit is contained in:
17
server/database/migrations/0000_condemned_meltdown.sql
Normal file
17
server/database/migrations/0000_condemned_meltdown.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE `maintenances`
|
||||
(
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`reason` text DEFAULT '',
|
||||
`enabled` integer DEFAULT false NOT NULL,
|
||||
`begin_at` text DEFAULT (CURRENT_DATE),
|
||||
`end_at` text DEFAULT (CURRENT_DATE),
|
||||
`created_at` text DEFAULT (CURRENT_DATE)
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `posts`
|
||||
(
|
||||
`slug` text PRIMARY KEY NOT NULL,
|
||||
`likes` integer DEFAULT 0,
|
||||
`views` integer DEFAULT 0,
|
||||
`created_at` text DEFAULT (CURRENT_DATE)
|
||||
);
|
||||
Reference in New Issue
Block a user