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.js
CHANGED
|
@@ -4384,15 +4384,6 @@ function db(dbName) {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
const databaseId = myDb.id;
|
|
4386
4386
|
const schemaName = dbName.toLowerCase().replace(/[^a-z0-9_]/g, "_");
|
|
4387
|
-
try {
|
|
4388
|
-
yield makeRequest("post" /* POST */, "/api/sql", void 0, {
|
|
4389
|
-
databaseId,
|
|
4390
|
-
sql: `CREATE SCHEMA IF NOT EXISTS "${schemaName}"`
|
|
4391
|
-
});
|
|
4392
|
-
} catch (err) {
|
|
4393
|
-
console.error("[DatabaseInit] Failed to create schema:", err.message);
|
|
4394
|
-
throw err;
|
|
4395
|
-
}
|
|
4396
4387
|
let existingTables = [];
|
|
4397
4388
|
try {
|
|
4398
4389
|
existingTables = yield makeRequest("get" /* GET */, "/api/tables", { databaseId });
|