@palbase/backend 17.2.0 → 17.4.0
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/dist/{chunk-IBIME7N2.js → chunk-AAN642N5.js} +16 -1
- package/dist/{chunk-IBIME7N2.js.map → chunk-AAN642N5.js.map} +1 -1
- package/dist/db/index.cjs +15 -0
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +1 -1
- package/dist/{index-D6mRh4yq.d.cts → index-BA_oFAz9.d.cts} +18 -0
- package/dist/{index-J1tnAnFj.d.ts → index-VLrU7rSW.d.ts} +18 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/test/index.cjs +4 -0
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.d.cts +24 -1
- package/dist/test/index.d.ts +24 -1
- package/dist/test/index.js +4 -0
- package/dist/test/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1105,6 +1105,21 @@ var ColumnBuilder = class _ColumnBuilder {
|
|
|
1105
1105
|
return new _ColumnBuilder(this._def.type, this._def);
|
|
1106
1106
|
}
|
|
1107
1107
|
/** Add a foreign key reference. */
|
|
1108
|
+
/**
|
|
1109
|
+
* Declares that this column used to be called `previous`.
|
|
1110
|
+
*
|
|
1111
|
+
* A schema diff sees one name gone and another present; it cannot know whether
|
|
1112
|
+
* you renamed a column or dropped one and added another, and the two are very
|
|
1113
|
+
* different — the second loses every value. Saying so here turns the plan into
|
|
1114
|
+
* `ALTER TABLE … RENAME COLUMN` instead.
|
|
1115
|
+
*
|
|
1116
|
+
* Once the rename has been applied the annotation is inert (the old name is no
|
|
1117
|
+
* longer there to rename), so it can be deleted at your leisure.
|
|
1118
|
+
*/
|
|
1119
|
+
renamedFrom(previous) {
|
|
1120
|
+
this._def.renamedFrom = previous;
|
|
1121
|
+
return this;
|
|
1122
|
+
}
|
|
1108
1123
|
references(table, column) {
|
|
1109
1124
|
this._def.references = { table, column };
|
|
1110
1125
|
return new _ColumnBuilder(this._def.type, this._def);
|