@oneuptime/common 7.0.3126 → 7.0.3129
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/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.ts +10 -3
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.ts +726 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.ts +732 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.ts +493 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +10 -0
- package/build/dist/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +10 -3
- package/build/dist/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js +247 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js +249 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js +131 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +10 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ import { PlanType } from "../../../Types/Billing/SubscriptionPlan";
|
|
|
7
7
|
import { getColumnAccessControlForAllColumns } from "../../../Types/Database/AccessControl/ColumnAccessControl";
|
|
8
8
|
import { getColumnBillingAccessControlForAllColumns } from "../../../Types/Database/AccessControl/ColumnBillingAccessControl";
|
|
9
9
|
import Columns from "../../../Types/Database/Columns";
|
|
10
|
+
import ColumnType from "../../../Types/Database/ColumnType";
|
|
10
11
|
import TableColumn, {
|
|
11
12
|
TableColumnMetadata,
|
|
12
13
|
getTableColumn,
|
|
@@ -63,7 +64,9 @@ export default class DatabaseBaseModel extends BaseEntity {
|
|
|
63
64
|
type: TableColumnType.Date,
|
|
64
65
|
description: "Date and Time when the object was created.",
|
|
65
66
|
})
|
|
66
|
-
@CreateDateColumn(
|
|
67
|
+
@CreateDateColumn({
|
|
68
|
+
type: ColumnType.Date,
|
|
69
|
+
})
|
|
67
70
|
public createdAt?: Date = undefined;
|
|
68
71
|
|
|
69
72
|
@TableColumn({
|
|
@@ -71,7 +74,9 @@ export default class DatabaseBaseModel extends BaseEntity {
|
|
|
71
74
|
type: TableColumnType.Date,
|
|
72
75
|
description: "Date and Time when the object was updated.",
|
|
73
76
|
})
|
|
74
|
-
@UpdateDateColumn(
|
|
77
|
+
@UpdateDateColumn({
|
|
78
|
+
type: ColumnType.Date,
|
|
79
|
+
})
|
|
75
80
|
public updatedAt?: Date = undefined;
|
|
76
81
|
|
|
77
82
|
@TableColumn({
|
|
@@ -79,7 +84,9 @@ export default class DatabaseBaseModel extends BaseEntity {
|
|
|
79
84
|
type: TableColumnType.Date,
|
|
80
85
|
description: "Date and Time when the object was deleted.",
|
|
81
86
|
})
|
|
82
|
-
@DeleteDateColumn(
|
|
87
|
+
@DeleteDateColumn({
|
|
88
|
+
type: ColumnType.Date,
|
|
89
|
+
})
|
|
83
90
|
public deletedAt?: Date = undefined;
|
|
84
91
|
|
|
85
92
|
@TableColumn({
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class MigrationName1727192530019 implements MigrationInterface {
|
|
4
|
+
public name = "MigrationName1727192530019";
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE "File" ALTER COLUMN "createdAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(
|
|
14
|
+
`ALTER TABLE "File" ALTER COLUMN "createdAt" TYPE TIMESTAMP`,
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class MigrationName1727193130193 implements MigrationInterface {
|
|
4
|
+
public name = "MigrationName1727193130193";
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE "User" ALTER COLUMN "createdAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(
|
|
14
|
+
`ALTER TABLE "User" ALTER COLUMN "createdAt" TYPE TIMESTAMP`,
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|