fix: lazily import sharp to fix commonjs error
This commit is contained in:
@@ -1,13 +1,38 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_document` (
|
||||
`name` text PRIMARY KEY NOT NULL,
|
||||
`last_modified` integer NOT NULL,
|
||||
`contentType` text NOT NULL,
|
||||
`size` integer NOT NULL,
|
||||
`perm` text NOT NULL
|
||||
);
|
||||
PRAGMA foreign_keys = OFF;
|
||||
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_document`("name", "last_modified", "contentType", "size", "perm") SELECT "name", "last_modified", "contentType", "size", "perm" FROM `document`;--> statement-breakpoint
|
||||
DROP TABLE `document`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_document` RENAME TO `document`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;
|
||||
CREATE TABLE `__new_document` (
|
||||
`name` text PRIMARY KEY NOT NULL,
|
||||
`last_modified` integer NOT NULL,
|
||||
`contentType` text NOT NULL,
|
||||
`size` integer NOT NULL,
|
||||
`perm` text NOT NULL
|
||||
);
|
||||
|
||||
--> statement-breakpoint
|
||||
INSERT INTO
|
||||
`__new_document`(
|
||||
"name",
|
||||
"last_modified",
|
||||
"contentType",
|
||||
"size",
|
||||
"perm"
|
||||
)
|
||||
SELECT
|
||||
"name",
|
||||
"last_modified",
|
||||
"contentType",
|
||||
"size",
|
||||
"perm"
|
||||
FROM
|
||||
`document`;
|
||||
|
||||
--> statement-breakpoint
|
||||
DROP TABLE `document`;
|
||||
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE
|
||||
`__new_document` RENAME TO `document`;
|
||||
|
||||
--> statement-breakpoint
|
||||
PRAGMA foreign_keys = ON;
|
||||
|
||||
Reference in New Issue
Block a user