pocketbase-zod-schema 0.3.2 → 0.3.3
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/CHANGELOG.md +7 -0
- package/dist/cli/index.cjs +28 -6
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +28 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/migrate.cjs +28 -6
- package/dist/cli/migrate.cjs.map +1 -1
- package/dist/cli/migrate.js +28 -6
- package/dist/cli/migrate.js.map +1 -1
- package/dist/cli/utils/index.d.cts +1 -1
- package/dist/cli/utils/index.d.ts +1 -1
- package/dist/index.cjs +42 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -9
- package/dist/index.js.map +1 -1
- package/dist/migration/analyzer.d.cts +1 -1
- package/dist/migration/analyzer.d.ts +1 -1
- package/dist/migration/diff.cjs +10 -1
- package/dist/migration/diff.cjs.map +1 -1
- package/dist/migration/diff.d.cts +1 -1
- package/dist/migration/diff.d.ts +1 -1
- package/dist/migration/diff.js +10 -1
- package/dist/migration/diff.js.map +1 -1
- package/dist/migration/generator.cjs +32 -8
- package/dist/migration/generator.cjs.map +1 -1
- package/dist/migration/generator.d.cts +2 -2
- package/dist/migration/generator.d.ts +2 -2
- package/dist/migration/generator.js +32 -8
- package/dist/migration/generator.js.map +1 -1
- package/dist/migration/index.cjs +42 -9
- package/dist/migration/index.cjs.map +1 -1
- package/dist/migration/index.d.cts +1 -1
- package/dist/migration/index.d.ts +1 -1
- package/dist/migration/index.js +42 -9
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/snapshot.d.cts +1 -1
- package/dist/migration/snapshot.d.ts +1 -1
- package/dist/{types-Dfp-NP2D.d.ts → types-BWhwQxG-.d.ts} +5 -0
- package/dist/{types-CVxPCgWX.d.cts → types-d0yBwHoN.d.cts} +5 -0
- package/package.json +1 -1
|
@@ -93,6 +93,11 @@ interface SchemaDiff {
|
|
|
93
93
|
collectionsToCreate: CollectionSchema[];
|
|
94
94
|
collectionsToDelete: any[];
|
|
95
95
|
collectionsToModify: CollectionModification[];
|
|
96
|
+
/**
|
|
97
|
+
* Map of existing collection names to their IDs from the previous snapshot
|
|
98
|
+
* Used to resolve relation field references to existing collections
|
|
99
|
+
*/
|
|
100
|
+
existingCollectionIds?: Map<string, string>;
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
98
103
|
* Represents a single collection operation for file splitting
|
|
@@ -93,6 +93,11 @@ interface SchemaDiff {
|
|
|
93
93
|
collectionsToCreate: CollectionSchema[];
|
|
94
94
|
collectionsToDelete: any[];
|
|
95
95
|
collectionsToModify: CollectionModification[];
|
|
96
|
+
/**
|
|
97
|
+
* Map of existing collection names to their IDs from the previous snapshot
|
|
98
|
+
* Used to resolve relation field references to existing collections
|
|
99
|
+
*/
|
|
100
|
+
existingCollectionIds?: Map<string, string>;
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
98
103
|
* Represents a single collection operation for file splitting
|