Add migrations folder

This commit is contained in:
2024-07-01 21:05:00 +02:00
parent addac21a1f
commit b260f1c405
5 changed files with 208 additions and 0 deletions

View 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)
);