PRAGMA foreign_keys=OFF;--> statement-breakpoint CREATE TABLE `__new_character` ( `id` text PRIMARY KEY NOT NULL, `name` text NOT NULL, `gender` text, `age` integer, `affiliations` text, `devilFruitId` text, `hakiObservation` integer DEFAULT false, `hakiArmament` integer DEFAULT false, `hakiConqueror` integer DEFAULT false, `bounty` integer DEFAULT 0, `height` real, `origin` text, `firstAppearance` integer NOT NULL, `pictureUrl` text, `epithets` text, `status` text, `arcId` text, `url` text, `isInDailyMode` integer DEFAULT false, FOREIGN KEY (`devilFruitId`) REFERENCES `devilFruit`(`id`) ON UPDATE no action ON DELETE no action, FOREIGN KEY (`arcId`) REFERENCES `arc`(`id`) ON UPDATE no action ON DELETE no action ); --> statement-breakpoint INSERT INTO `__new_character`("id", "name", "gender", "age", "affiliations", "devilFruitId", "hakiObservation", "hakiArmament", "hakiConqueror", "bounty", "height", "origin", "firstAppearance", "pictureUrl", "epithets", "status", "arcId", "url", "isInDailyMode") SELECT "id", "name", "gender", "age", "affiliations", "devilFruitId", "hakiObservation", "hakiArmament", "hakiConqueror", "bounty", "height", "origin", "firstAppearance", "pictureUrl", "epithets", "status", "arcId", "url", "isInDailyMode" FROM `character`;--> statement-breakpoint DROP TABLE `character`;--> statement-breakpoint ALTER TABLE `__new_character` RENAME TO `character`;--> statement-breakpoint PRAGMA foreign_keys=ON;