searcherside/scripts/migrations/sqlite3/0000000000001_migrations.sql
Peter Kurfer 9ea9a8f658
Some checks failed
Go build / build (push) Failing after 1m58s
feat: continue basic setup
- setup ent scheme
- add command to create users
- document API
- add helpers to create migrations
- add command to run migrations
- add basic compose file
2024-06-19 21:19:37 +02:00

22 lines
No EOL
845 B
SQL

-- Create "migrations" table
CREATE TABLE `migrations`
(
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
`create_time` datetime NOT NULL,
`update_time` datetime NOT NULL,
`version` text NOT NULL,
`description` text NULL,
`type` integer NOT NULL DEFAULT (0),
`applied` integer NULL,
`total` integer NULL,
`executed_at` datetime NOT NULL,
`execution_time` integer NOT NULL,
`error` text NULL,
`error_stmt` text NULL,
`hash` text NOT NULL,
`partial_hashes` json NOT NULL,
`operator_version` text NOT NULL
);
-- Create index "migrations_version_key" to table: "migrations"
CREATE UNIQUE INDEX `migrations_version_key` ON `migrations` (`version`);