drizzle-kit 0.30.5 → 0.30.6
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/api.js +1310 -921
- package/api.mjs +1310 -921
- package/bin.cjs +105 -92
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -20102,6 +20102,13 @@ function extractGeneratedColumns(input) {
|
|
20102
20102
|
}
|
20103
20103
|
return columns;
|
20104
20104
|
}
|
20105
|
+
function filterIgnoredTablesByField(fieldName) {
|
20106
|
+
return `${fieldName} != '__drizzle_migrations'
|
20107
|
+
AND ${fieldName} NOT LIKE '\\_cf\\_%' ESCAPE '\\'
|
20108
|
+
AND ${fieldName} NOT LIKE '\\_litestream\\_%' ESCAPE '\\'
|
20109
|
+
AND ${fieldName} NOT LIKE 'libsql\\_%' ESCAPE '\\'
|
20110
|
+
AND ${fieldName} NOT LIKE 'sqlite\\_%' ESCAPE '\\'`;
|
20111
|
+
}
|
20105
20112
|
var import_drizzle_orm6, import_sqlite_core2, generateSqliteSnapshot, fromDatabase3;
|
20106
20113
|
var init_sqliteSerializer = __esm({
|
20107
20114
|
"src/serializer/sqliteSerializer.ts"() {
|
@@ -20406,29 +20413,26 @@ ${withStyle.errorWarning(
|
|
20406
20413
|
fromDatabase3 = async (db, tablesFilter = (table6) => true, progressCallback) => {
|
20407
20414
|
const result = {};
|
20408
20415
|
const resultViews = {};
|
20409
|
-
const columns = await db.query(
|
20410
|
-
|
20411
|
-
|
20412
|
-
|
20413
|
-
|
20414
|
-
|
20415
|
-
|
20416
|
-
|
20417
|
-
|
20418
|
-
|
20419
|
-
|
20420
|
-
|
20421
|
-
|
20422
|
-
|
20416
|
+
const columns = await db.query(`SELECT
|
20417
|
+
m.name as "tableName",
|
20418
|
+
p.name as "columnName",
|
20419
|
+
p.type as "columnType",
|
20420
|
+
p."notnull" as "notNull",
|
20421
|
+
p.dflt_value as "defaultValue",
|
20422
|
+
p.pk as pk,
|
20423
|
+
p.hidden as hidden,
|
20424
|
+
m.sql,
|
20425
|
+
m.type as type
|
20426
|
+
FROM sqlite_master AS m
|
20427
|
+
JOIN pragma_table_xinfo(m.name) AS p
|
20428
|
+
WHERE (m.type = 'table' OR m.type = 'view')
|
20429
|
+
AND ${filterIgnoredTablesByField("m.tbl_name")};`);
|
20423
20430
|
const tablesWithSeq = [];
|
20424
|
-
const seq = await db.query(
|
20425
|
-
|
20426
|
-
|
20427
|
-
|
20428
|
-
|
20429
|
-
and tbl_name != '_cf_KV'
|
20430
|
-
and sql GLOB '*[ *' || CHAR(9) || CHAR(10) || CHAR(13) || ']AUTOINCREMENT[^'']*';`
|
20431
|
-
);
|
20431
|
+
const seq = await db.query(`SELECT
|
20432
|
+
*
|
20433
|
+
FROM sqlite_master
|
20434
|
+
WHERE sql GLOB '*[ *' || CHAR(9) || CHAR(10) || CHAR(13) || ']AUTOINCREMENT[^'']*'
|
20435
|
+
AND ${filterIgnoredTablesByField("tbl_name")};`);
|
20432
20436
|
for (const s2 of seq) {
|
20433
20437
|
tablesWithSeq.push(s2.name);
|
20434
20438
|
}
|
@@ -20523,11 +20527,19 @@ ${withStyle.errorWarning(
|
|
20523
20527
|
progressCallback("tables", tablesCount.size, "done");
|
20524
20528
|
}
|
20525
20529
|
try {
|
20526
|
-
const fks = await db.query(
|
20527
|
-
|
20528
|
-
|
20529
|
-
|
20530
|
-
|
20530
|
+
const fks = await db.query(`SELECT
|
20531
|
+
m.name as "tableFrom",
|
20532
|
+
f.id as "id",
|
20533
|
+
f."table" as "tableTo",
|
20534
|
+
f."from",
|
20535
|
+
f."to",
|
20536
|
+
f."on_update" as "onUpdate",
|
20537
|
+
f."on_delete" as "onDelete",
|
20538
|
+
f.seq as "seq"
|
20539
|
+
FROM
|
20540
|
+
sqlite_master m,
|
20541
|
+
pragma_foreign_key_list(m.name) as f
|
20542
|
+
WHERE ${filterIgnoredTablesByField("m.tbl_name")};`);
|
20531
20543
|
const fkByTableName = {};
|
20532
20544
|
for (const fkRow of fks) {
|
20533
20545
|
foreignKeysCount += 1;
|
@@ -20574,21 +20586,20 @@ ${withStyle.errorWarning(
|
|
20574
20586
|
if (progressCallback) {
|
20575
20587
|
progressCallback("fks", foreignKeysCount, "done");
|
20576
20588
|
}
|
20577
|
-
const idxs = await db.query(
|
20578
|
-
|
20579
|
-
|
20580
|
-
|
20581
|
-
|
20582
|
-
|
20583
|
-
|
20584
|
-
|
20585
|
-
|
20586
|
-
|
20587
|
-
WHERE
|
20588
|
-
|
20589
|
-
|
20590
|
-
|
20591
|
-
);
|
20589
|
+
const idxs = await db.query(`SELECT
|
20590
|
+
m.tbl_name as tableName,
|
20591
|
+
il.name as indexName,
|
20592
|
+
ii.name as columnName,
|
20593
|
+
il.[unique] as isUnique,
|
20594
|
+
il.seq as seq
|
20595
|
+
FROM
|
20596
|
+
sqlite_master AS m,
|
20597
|
+
pragma_index_list(m.name) AS il,
|
20598
|
+
pragma_index_info(il.name) AS ii
|
20599
|
+
WHERE
|
20600
|
+
m.type = 'table'
|
20601
|
+
AND il.name NOT LIKE 'sqlite\\_autoindex\\_%' ESCAPE '\\'
|
20602
|
+
AND ${filterIgnoredTablesByField("m.tbl_name")};`);
|
20592
20603
|
for (const idxRow of idxs) {
|
20593
20604
|
const tableName = idxRow.tableName;
|
20594
20605
|
const constraintName = idxRow.indexName;
|
@@ -20648,9 +20659,12 @@ WHERE
|
|
20648
20659
|
const unnamedCheckPattern = /CHECK\s*\((.*?)\)/gi;
|
20649
20660
|
let checkCounter = 0;
|
20650
20661
|
const checkConstraints = {};
|
20651
|
-
const checks = await db.query(`SELECT
|
20662
|
+
const checks = await db.query(`SELECT
|
20663
|
+
name as "tableName",
|
20664
|
+
sql as "sql"
|
20652
20665
|
FROM sqlite_master
|
20653
|
-
WHERE type = 'table'
|
20666
|
+
WHERE type = 'table'
|
20667
|
+
AND ${filterIgnoredTablesByField("tbl_name")};`);
|
20654
20668
|
for (const check2 of checks) {
|
20655
20669
|
if (!tablesFilter(check2.tableName))
|
20656
20670
|
continue;
|
@@ -59352,9 +59366,9 @@ var require_dist_cjs46 = __commonJS({
|
|
59352
59366
|
}
|
59353
59367
|
});
|
59354
59368
|
|
59355
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59369
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
59356
59370
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
59357
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59371
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
59358
59372
|
"use strict";
|
59359
59373
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59360
59374
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -59421,9 +59435,9 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
59421
59435
|
}
|
59422
59436
|
});
|
59423
59437
|
|
59424
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59438
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
59425
59439
|
var require_package4 = __commonJS({
|
59426
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59440
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
59427
59441
|
module2.exports = {
|
59428
59442
|
name: "@aws-sdk/client-sso-oidc",
|
59429
59443
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
@@ -59527,9 +59541,9 @@ var require_package4 = __commonJS({
|
|
59527
59541
|
}
|
59528
59542
|
});
|
59529
59543
|
|
59530
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59544
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
59531
59545
|
var require_ruleset2 = __commonJS({
|
59532
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59546
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59533
59547
|
"use strict";
|
59534
59548
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59535
59549
|
exports2.ruleSet = void 0;
|
@@ -59562,9 +59576,9 @@ var require_ruleset2 = __commonJS({
|
|
59562
59576
|
}
|
59563
59577
|
});
|
59564
59578
|
|
59565
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59579
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59566
59580
|
var require_endpointResolver2 = __commonJS({
|
59567
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59581
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59568
59582
|
"use strict";
|
59569
59583
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59570
59584
|
exports2.defaultEndpointResolver = void 0;
|
@@ -59582,9 +59596,9 @@ var require_endpointResolver2 = __commonJS({
|
|
59582
59596
|
}
|
59583
59597
|
});
|
59584
59598
|
|
59585
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59599
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59586
59600
|
var require_runtimeConfig_shared2 = __commonJS({
|
59587
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59601
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59588
59602
|
"use strict";
|
59589
59603
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59590
59604
|
exports2.getRuntimeConfig = void 0;
|
@@ -59628,9 +59642,9 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
59628
59642
|
}
|
59629
59643
|
});
|
59630
59644
|
|
59631
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59645
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59632
59646
|
var require_runtimeConfig2 = __commonJS({
|
59633
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59647
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59634
59648
|
"use strict";
|
59635
59649
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59636
59650
|
exports2.getRuntimeConfig = void 0;
|
@@ -59681,9 +59695,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
59681
59695
|
}
|
59682
59696
|
});
|
59683
59697
|
|
59684
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59698
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59685
59699
|
var require_dist_cjs47 = __commonJS({
|
59686
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59700
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59687
59701
|
"use strict";
|
59688
59702
|
var __defProp3 = Object.defineProperty;
|
59689
59703
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -61029,9 +61043,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
61029
61043
|
}
|
61030
61044
|
});
|
61031
61045
|
|
61032
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
|
61046
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
|
61033
61047
|
var require_httpAuthSchemeProvider4 = __commonJS({
|
61034
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
61048
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
61035
61049
|
"use strict";
|
61036
61050
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61037
61051
|
exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
@@ -61101,9 +61115,9 @@ var require_httpAuthSchemeProvider4 = __commonJS({
|
|
61101
61115
|
}
|
61102
61116
|
});
|
61103
61117
|
|
61104
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
|
61118
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
|
61105
61119
|
var require_EndpointParameters = __commonJS({
|
61106
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
|
61120
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
|
61107
61121
|
"use strict";
|
61108
61122
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61109
61123
|
exports2.commonParams = exports2.resolveClientEndpointParameters = void 0;
|
@@ -61127,9 +61141,9 @@ var require_EndpointParameters = __commonJS({
|
|
61127
61141
|
}
|
61128
61142
|
});
|
61129
61143
|
|
61130
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json
|
61144
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/package.json
|
61131
61145
|
var require_package5 = __commonJS({
|
61132
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
|
61146
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
|
61133
61147
|
module2.exports = {
|
61134
61148
|
name: "@aws-sdk/client-sts",
|
61135
61149
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
@@ -61235,9 +61249,9 @@ var require_package5 = __commonJS({
|
|
61235
61249
|
}
|
61236
61250
|
});
|
61237
61251
|
|
61238
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
61252
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
61239
61253
|
var require_ruleset3 = __commonJS({
|
61240
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
61254
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
61241
61255
|
"use strict";
|
61242
61256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61243
61257
|
exports2.ruleSet = void 0;
|
@@ -61282,9 +61296,9 @@ var require_ruleset3 = __commonJS({
|
|
61282
61296
|
}
|
61283
61297
|
});
|
61284
61298
|
|
61285
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
61299
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
61286
61300
|
var require_endpointResolver3 = __commonJS({
|
61287
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
61301
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
61288
61302
|
"use strict";
|
61289
61303
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61290
61304
|
exports2.defaultEndpointResolver = void 0;
|
@@ -61302,9 +61316,9 @@ var require_endpointResolver3 = __commonJS({
|
|
61302
61316
|
}
|
61303
61317
|
});
|
61304
61318
|
|
61305
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
61319
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
61306
61320
|
var require_runtimeConfig_shared3 = __commonJS({
|
61307
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
61321
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
61308
61322
|
"use strict";
|
61309
61323
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61310
61324
|
exports2.getRuntimeConfig = void 0;
|
@@ -61348,9 +61362,9 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
61348
61362
|
}
|
61349
61363
|
});
|
61350
61364
|
|
61351
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
61365
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
61352
61366
|
var require_runtimeConfig3 = __commonJS({
|
61353
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
61367
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
61354
61368
|
"use strict";
|
61355
61369
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61356
61370
|
exports2.getRuntimeConfig = void 0;
|
@@ -61414,9 +61428,9 @@ var require_runtimeConfig3 = __commonJS({
|
|
61414
61428
|
}
|
61415
61429
|
});
|
61416
61430
|
|
61417
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
|
61431
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
|
61418
61432
|
var require_httpAuthExtensionConfiguration = __commonJS({
|
61419
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
|
61433
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
|
61420
61434
|
"use strict";
|
61421
61435
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61422
61436
|
exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0;
|
@@ -61462,9 +61476,9 @@ var require_httpAuthExtensionConfiguration = __commonJS({
|
|
61462
61476
|
}
|
61463
61477
|
});
|
61464
61478
|
|
61465
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
|
61479
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
|
61466
61480
|
var require_runtimeExtensions = __commonJS({
|
61467
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
|
61481
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
|
61468
61482
|
"use strict";
|
61469
61483
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61470
61484
|
exports2.resolveRuntimeExtensions = void 0;
|
@@ -61493,9 +61507,9 @@ var require_runtimeExtensions = __commonJS({
|
|
61493
61507
|
}
|
61494
61508
|
});
|
61495
61509
|
|
61496
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
|
61510
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
|
61497
61511
|
var require_STSClient = __commonJS({
|
61498
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
|
61512
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
|
61499
61513
|
"use strict";
|
61500
61514
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61501
61515
|
exports2.STSClient = exports2.__Client = void 0;
|
@@ -61557,9 +61571,9 @@ var require_STSClient = __commonJS({
|
|
61557
61571
|
}
|
61558
61572
|
});
|
61559
61573
|
|
61560
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
61574
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
61561
61575
|
var require_dist_cjs50 = __commonJS({
|
61562
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
61576
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
61563
61577
|
"use strict";
|
61564
61578
|
var __defProp3 = Object.defineProperty;
|
61565
61579
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -82010,18 +82024,17 @@ var init_push = __esm({
|
|
82010
82024
|
(0, import_hanji13.render)(`
|
82011
82025
|
[${source_default.blue("i")}] No changes detected`);
|
82012
82026
|
} else {
|
82013
|
-
|
82014
|
-
|
82015
|
-
|
82016
|
-
|
82017
|
-
|
82018
|
-
}
|
82019
|
-
await db.run("commit");
|
82020
|
-
} catch (e2) {
|
82021
|
-
console.error(e2);
|
82022
|
-
await db.run("rollback");
|
82023
|
-
process.exit(1);
|
82027
|
+
const isNotD1 = !("driver" in credentials2 && credentials2.driver === "d1-http");
|
82028
|
+
isNotD1 ?? await db.run("begin");
|
82029
|
+
try {
|
82030
|
+
for (const dStmnt of statementsToExecute) {
|
82031
|
+
await db.run(dStmnt);
|
82024
82032
|
}
|
82033
|
+
isNotD1 ?? await db.run("commit");
|
82034
|
+
} catch (e2) {
|
82035
|
+
console.error(e2);
|
82036
|
+
isNotD1 ?? await db.run("rollback");
|
82037
|
+
process.exit(1);
|
82025
82038
|
}
|
82026
82039
|
(0, import_hanji13.render)(`[${source_default.green("\u2713")}] Changes applied`);
|
82027
82040
|
}
|
@@ -92615,7 +92628,7 @@ init_utils5();
|
|
92615
92628
|
var version2 = async () => {
|
92616
92629
|
const { npmVersion } = await ormCoreVersions();
|
92617
92630
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
92618
|
-
const envVersion = "0.30.
|
92631
|
+
const envVersion = "0.30.6";
|
92619
92632
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
92620
92633
|
const versions = `drizzle-kit: ${kitVersion}
|
92621
92634
|
${ormVersion}`;
|