mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-11-12 11:51:55 +00:00
10 lines
459 B
SQL
10 lines
459 B
SQL
CREATE TABLE `plugin_migrations` (
|
|||
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
|
`plugin_id` text NOT NULL,
|
||
|
|
`migration_id` text NOT NULL,
|
||
|
|
`checksum` text NOT NULL,
|
||
|
|
`applied_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||
|
|
FOREIGN KEY (`plugin_id`) REFERENCES `plugins`(`id`) ON UPDATE no action ON DELETE cascade
|
||
|
|
);
|
||
|
|
--> statement-breakpoint
|
||
|
|
CREATE UNIQUE INDEX `idx_plugin_migrations_plugin_migration` ON `plugin_migrations` (`plugin_id`,`migration_id`);
|