drizzle-kit 0.31.10 → 0.31.11
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 +12 -2
- package/package.json +1 -2
package/bin.cjs
CHANGED
|
@@ -91714,7 +91714,7 @@ var certs = async () => {
|
|
|
91714
91714
|
// src/cli/commands/check.ts
|
|
91715
91715
|
init_utils2();
|
|
91716
91716
|
var checkHandler = (out, dialect6) => {
|
|
91717
|
-
const { snapshots } = prepareOutFolder(out, dialect6);
|
|
91717
|
+
const { snapshots, journal } = prepareOutFolder(out, dialect6);
|
|
91718
91718
|
const report = validateWithReport(snapshots, dialect6);
|
|
91719
91719
|
if (report.nonLatest.length > 0) {
|
|
91720
91720
|
console.log(
|
|
@@ -91742,6 +91742,16 @@ var checkHandler = (out, dialect6) => {
|
|
|
91742
91742
|
if (message) {
|
|
91743
91743
|
console.log(message);
|
|
91744
91744
|
}
|
|
91745
|
+
let latest;
|
|
91746
|
+
for (const entry of journal.entries) {
|
|
91747
|
+
if (latest && entry.when <= latest.when) {
|
|
91748
|
+
console.warn(
|
|
91749
|
+
`Warning: ${entry.tag} (idx: ${entry.idx}, when: ${entry.when}) follows ${latest.tag} (idx: ${latest.idx}, when: ${latest.when}) in the journal, but its timestamp is not greater. If the earlier entry has already been applied, the migrator will skip this entry. Journal timestamps must strictly increase in entry order.`
|
|
91750
|
+
);
|
|
91751
|
+
} else {
|
|
91752
|
+
latest = entry;
|
|
91753
|
+
}
|
|
91754
|
+
}
|
|
91745
91755
|
const abort = report.malformed.length || collisionEntries.length > 0;
|
|
91746
91756
|
if (abort) {
|
|
91747
91757
|
process.exit(1);
|
|
@@ -92688,7 +92698,7 @@ init_utils5();
|
|
|
92688
92698
|
var version2 = async () => {
|
|
92689
92699
|
const { npmVersion } = await ormCoreVersions();
|
|
92690
92700
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
|
92691
|
-
const envVersion = "0.31.
|
|
92701
|
+
const envVersion = "0.31.11";
|
|
92692
92702
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
|
92693
92703
|
const versions = `drizzle-kit: ${kitVersion}
|
|
92694
92704
|
${ormVersion}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-kit",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.11",
|
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drizzle",
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
"commander": "^12.1.0",
|
|
83
83
|
"dockerode": "^4.0.6",
|
|
84
84
|
"dotenv": "^16.0.3",
|
|
85
|
-
"drizzle-kit": "0.25.0-b1faa33",
|
|
86
85
|
"drizzle-orm": "workspace:./drizzle-orm/dist",
|
|
87
86
|
"env-paths": "^3.0.0",
|
|
88
87
|
"esbuild-node-externals": "^1.9.0",
|