drizzle-kit 0.25.0-a5a41e0 → 0.25.0-b4de377
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +23 -1
- package/api.mjs +23 -1
- package/bin.cjs +25 -2
- package/package.json +1 -1
package/api.js
CHANGED
@@ -15809,7 +15809,29 @@ var init_snapshotsDiffer = __esm({
|
|
15809
15809
|
created: viewsDiff.added,
|
15810
15810
|
deleted: viewsDiff.deleted
|
15811
15811
|
});
|
15812
|
-
const
|
15812
|
+
const renamesViewDic = {};
|
15813
|
+
renamedViews.forEach((it) => {
|
15814
|
+
renamesViewDic[`${it.from.schema}.${it.from.name}`] = { to: it.to.name, from: it.from.name };
|
15815
|
+
});
|
15816
|
+
const movedViewDic = {};
|
15817
|
+
movedViews.forEach((it) => {
|
15818
|
+
movedViewDic[`${it.schemaFrom}.${it.name}`] = { to: it.schemaTo, from: it.schemaFrom };
|
15819
|
+
});
|
15820
|
+
const viewsPatchedSnap1 = copy(columnsPatchedSnap1);
|
15821
|
+
viewsPatchedSnap1.views = mapEntries(
|
15822
|
+
viewsPatchedSnap1.views,
|
15823
|
+
(viewKey, viewValue) => {
|
15824
|
+
const rename = renamesViewDic[`${viewValue.schema}.${viewValue.name}`];
|
15825
|
+
const moved = movedViewDic[`${viewValue.schema}.${viewValue.name}`];
|
15826
|
+
if (rename) {
|
15827
|
+
viewValue.name = rename.to;
|
15828
|
+
viewKey = `${viewValue.schema}.${viewValue.name}`;
|
15829
|
+
}
|
15830
|
+
if (moved) viewKey = `${moved.to}.${viewValue.name}`;
|
15831
|
+
return [viewKey, viewValue];
|
15832
|
+
}
|
15833
|
+
);
|
15834
|
+
const diffResult = applyJsonDiff(viewsPatchedSnap1, json22);
|
15813
15835
|
const typedResult = diffResultScheme.parse(diffResult);
|
15814
15836
|
const jsonStatements = [];
|
15815
15837
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
package/api.mjs
CHANGED
@@ -15814,7 +15814,29 @@ var init_snapshotsDiffer = __esm({
|
|
15814
15814
|
created: viewsDiff.added,
|
15815
15815
|
deleted: viewsDiff.deleted
|
15816
15816
|
});
|
15817
|
-
const
|
15817
|
+
const renamesViewDic = {};
|
15818
|
+
renamedViews.forEach((it) => {
|
15819
|
+
renamesViewDic[`${it.from.schema}.${it.from.name}`] = { to: it.to.name, from: it.from.name };
|
15820
|
+
});
|
15821
|
+
const movedViewDic = {};
|
15822
|
+
movedViews.forEach((it) => {
|
15823
|
+
movedViewDic[`${it.schemaFrom}.${it.name}`] = { to: it.schemaTo, from: it.schemaFrom };
|
15824
|
+
});
|
15825
|
+
const viewsPatchedSnap1 = copy(columnsPatchedSnap1);
|
15826
|
+
viewsPatchedSnap1.views = mapEntries(
|
15827
|
+
viewsPatchedSnap1.views,
|
15828
|
+
(viewKey, viewValue) => {
|
15829
|
+
const rename = renamesViewDic[`${viewValue.schema}.${viewValue.name}`];
|
15830
|
+
const moved = movedViewDic[`${viewValue.schema}.${viewValue.name}`];
|
15831
|
+
if (rename) {
|
15832
|
+
viewValue.name = rename.to;
|
15833
|
+
viewKey = `${viewValue.schema}.${viewValue.name}`;
|
15834
|
+
}
|
15835
|
+
if (moved) viewKey = `${moved.to}.${viewValue.name}`;
|
15836
|
+
return [viewKey, viewValue];
|
15837
|
+
}
|
15838
|
+
);
|
15839
|
+
const diffResult = applyJsonDiff(viewsPatchedSnap1, json22);
|
15818
15840
|
const typedResult = diffResultScheme.parse(diffResult);
|
15819
15841
|
const jsonStatements = [];
|
15820
15842
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
package/bin.cjs
CHANGED
@@ -27826,7 +27826,30 @@ var init_snapshotsDiffer = __esm({
|
|
27826
27826
|
created: viewsDiff.added,
|
27827
27827
|
deleted: viewsDiff.deleted
|
27828
27828
|
});
|
27829
|
-
const
|
27829
|
+
const renamesViewDic = {};
|
27830
|
+
renamedViews.forEach((it) => {
|
27831
|
+
renamesViewDic[`${it.from.schema}.${it.from.name}`] = { to: it.to.name, from: it.from.name };
|
27832
|
+
});
|
27833
|
+
const movedViewDic = {};
|
27834
|
+
movedViews.forEach((it) => {
|
27835
|
+
movedViewDic[`${it.schemaFrom}.${it.name}`] = { to: it.schemaTo, from: it.schemaFrom };
|
27836
|
+
});
|
27837
|
+
const viewsPatchedSnap1 = copy(columnsPatchedSnap1);
|
27838
|
+
viewsPatchedSnap1.views = mapEntries(
|
27839
|
+
viewsPatchedSnap1.views,
|
27840
|
+
(viewKey, viewValue) => {
|
27841
|
+
const rename = renamesViewDic[`${viewValue.schema}.${viewValue.name}`];
|
27842
|
+
const moved = movedViewDic[`${viewValue.schema}.${viewValue.name}`];
|
27843
|
+
if (rename) {
|
27844
|
+
viewValue.name = rename.to;
|
27845
|
+
viewKey = `${viewValue.schema}.${viewValue.name}`;
|
27846
|
+
}
|
27847
|
+
if (moved)
|
27848
|
+
viewKey = `${moved.to}.${viewValue.name}`;
|
27849
|
+
return [viewKey, viewValue];
|
27850
|
+
}
|
27851
|
+
);
|
27852
|
+
const diffResult = applyJsonDiff(viewsPatchedSnap1, json2);
|
27830
27853
|
const typedResult = diffResultScheme.parse(diffResult);
|
27831
27854
|
const jsonStatements = [];
|
27832
27855
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
@@ -86315,7 +86338,7 @@ init_utils2();
|
|
86315
86338
|
var version2 = async () => {
|
86316
86339
|
const { npmVersion } = await ormCoreVersions();
|
86317
86340
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
86318
|
-
const envVersion = "0.25.0-
|
86341
|
+
const envVersion = "0.25.0-b4de377";
|
86319
86342
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
86320
86343
|
const versions = `drizzle-kit: ${kitVersion}
|
86321
86344
|
${ormVersion}`;
|