Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import buildCreateTableSql from "./build-create-table-sql";
|
||||
import recordSchemaChange from "./record-schema-change";
|
||||
/**
|
||||
* Create a new table
|
||||
*/
|
||||
export default function createTable(params) {
|
||||
const { db, db_schema, table } = params;
|
||||
recordSchemaChange(params, {
|
||||
description: `Create table "${table.tableName}"`,
|
||||
});
|
||||
db.run(buildCreateTableSql({ db_schema, table }));
|
||||
}
|
||||
Reference in New Issue
Block a user