Add drizzle migration files and remove drizzle/ from .gitignore
The Docker build was failing because drizzle/ was in .gitignore, so migration files (meta/_journal.json) were never committed. Generated initial migration from schema. Co-authored-by: Shelley <shelley@exe.dev>
This commit is contained in:
parent
6f965c1cc9
commit
e7af29145b
4 changed files with 163 additions and 1 deletions
19
drizzle/0000_goofy_captain_midlands.sql
Normal file
19
drizzle/0000_goofy_captain_midlands.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CREATE TABLE `annotations` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`timestamp` integer NOT NULL,
|
||||
`label_type` text NOT NULL,
|
||||
`geometry` text,
|
||||
`color` text DEFAULT '#3b82f6',
|
||||
`created_at` integer NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `candles` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`time` integer NOT NULL,
|
||||
`open` real NOT NULL,
|
||||
`high` real NOT NULL,
|
||||
`low` real NOT NULL,
|
||||
`close` real NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `candles_time_unique` ON `candles` (`time`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue