searcherside/scripts/migrations/sqlite3/0000000000001_migrations.sql

22 lines
845 B
MySQL
Raw Normal View History

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