PRAGMA foreign_keys=OFF;--> statement-breakpoint
CREATE TABLE `__new_entry` (
	`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
	`name` text NOT NULL,
	`href` text NOT NULL,
	`finished` integer DEFAULT false NOT NULL,
	`created_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
	`updated_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL
);
--> statement-breakpoint
INSERT INTO `__new_entry`("id", "name", "href", "finished", "created_at", "updated_at") SELECT "id", "name", "href", "finished", "created_at", "updated_at" FROM `entry`;--> statement-breakpoint
DROP TABLE `entry`;--> statement-breakpoint
ALTER TABLE `__new_entry` RENAME TO `entry`;--> statement-breakpoint
PRAGMA foreign_keys=ON;--> statement-breakpoint
CREATE UNIQUE INDEX `entry_name_unique` ON `entry` (`name`);