@axium/server 0.36.0 → 0.36.2
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/acl.d.ts +0 -1
- package/dist/database.js +1 -1
- package/package.json +2 -2
package/dist/acl.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ type _TargetNames = keyof db.Schema & keyof {
|
|
|
14
14
|
export type TableName = _TableNames extends never ? keyof db.Schema : _TableNames;
|
|
15
15
|
export type TargetName = _TargetNames extends never ? keyof db.Schema : _TargetNames;
|
|
16
16
|
export interface AccessControlInternal extends AccessControl {
|
|
17
|
-
tag?: string | null;
|
|
18
17
|
}
|
|
19
18
|
export type PermissionsFor<TB extends TableName> = Omit<kysely.Selectable<db.Schema[TB]>, keyof AccessControlInternal | number | symbol>;
|
|
20
19
|
export type Result<TB extends TableName> = AccessControlInternal & PermissionsFor<TB>;
|
package/dist/database.js
CHANGED
|
@@ -738,7 +738,7 @@ export async function applyDelta(delta, forceAbort = false) {
|
|
|
738
738
|
}
|
|
739
739
|
for (const [colName, column] of Object.entries(tableDelta.alter_columns)) {
|
|
740
740
|
if (column.default)
|
|
741
|
-
await query.alterColumn(colName, col => col.setDefault(
|
|
741
|
+
await query.alterColumn(colName, col => col.setDefault(column.default)).execute();
|
|
742
742
|
if (column.type)
|
|
743
743
|
await query.alterColumn(colName, col => col.setDataType(sql.raw(column.type))).execute();
|
|
744
744
|
for (const op of column.ops ?? []) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@axium/client": ">=0.13.0",
|
|
51
|
-
"@axium/core": ">=0.19.
|
|
51
|
+
"@axium/core": ">=0.19.6",
|
|
52
52
|
"kysely": "^0.28.0",
|
|
53
53
|
"utilium": "^2.6.0",
|
|
54
54
|
"zod": "^4.0.5"
|