swiftbase-admin-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4416,15 +4416,6 @@ function db(dbName) {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
const databaseId = myDb.id;
|
|
4418
4418
|
const schemaName = dbName.toLowerCase().replace(/[^a-z0-9_]/g, "_");
|
|
4419
|
-
try {
|
|
4420
|
-
yield makeRequest("post" /* POST */, "/api/sql", void 0, {
|
|
4421
|
-
databaseId,
|
|
4422
|
-
sql: `CREATE SCHEMA IF NOT EXISTS "${schemaName}"`
|
|
4423
|
-
});
|
|
4424
|
-
} catch (err) {
|
|
4425
|
-
console.error("[DatabaseInit] Failed to create schema:", err.message);
|
|
4426
|
-
throw err;
|
|
4427
|
-
}
|
|
4428
4419
|
let existingTables = [];
|
|
4429
4420
|
try {
|
|
4430
4421
|
existingTables = yield makeRequest("get" /* GET */, "/api/tables", { databaseId });
|