drizzle-kit 0.20.16-0fef055 → 0.20.16-ca9dd07
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/bin.cjs +3 -3
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -60430,9 +60430,9 @@ var init_studio = __esm({
|
|
|
60430
60430
|
unregister();
|
|
60431
60431
|
return { schema: sqliteSchema3, relations: relations4 };
|
|
60432
60432
|
};
|
|
60433
|
-
getCustomDefaults = (
|
|
60433
|
+
getCustomDefaults = (pgSchema3) => {
|
|
60434
60434
|
const customDefaults = [];
|
|
60435
|
-
Object.entries(
|
|
60435
|
+
Object.entries(pgSchema3).map(([schema5, tables]) => {
|
|
60436
60436
|
Object.entries(tables).map(([, table4]) => {
|
|
60437
60437
|
let tableConfig;
|
|
60438
60438
|
if ((0, import_drizzle_orm8.is)(table4, import_pg_core4.PgTable)) {
|
|
@@ -60445,7 +60445,7 @@ var init_studio = __esm({
|
|
|
60445
60445
|
tableConfig.columns.map((column7) => {
|
|
60446
60446
|
if (column7.defaultFn) {
|
|
60447
60447
|
customDefaults.push({
|
|
60448
|
-
schema:
|
|
60448
|
+
schema: schema5,
|
|
60449
60449
|
table: tableConfig.name,
|
|
60450
60450
|
column: column7.name,
|
|
60451
60451
|
func: column7.defaultFn
|