Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import type { CreateDBSchemaParams } from "../../types";
|
||||
/**
|
||||
* # Sync the database to the schema
|
||||
* @description Changed tables are rebuilt by copying into a new table and
|
||||
* dropping the old one. With foreign keys ON, `DROP TABLE` runs an implicit
|
||||
* `DELETE FROM` that fires `ON DELETE CASCADE` on child tables, so keys are
|
||||
* disabled for the sync and checked before committing. (`PRAGMA
|
||||
* foreign_keys` is a no-op inside a transaction.) With `dry_run` the
|
||||
* transaction is rolled back, so `changes` is the exact plan.
|
||||
*/
|
||||
export default function createDBSchema(params: CreateDBSchemaParams): void;
|
||||
Reference in New Issue
Block a user