mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: integrate CaptureSpan decorator into multiple monitor criteria classes for improved telemetry tracking
This commit is contained in:
@@ -196,6 +196,7 @@ export default class BaseAPI<
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getPermissionsForTenant(
|
||||
req: ExpressRequest,
|
||||
): Promise<Array<UserPermission>> {
|
||||
@@ -226,6 +227,7 @@ export default class BaseAPI<
|
||||
return null;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getList(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -302,6 +304,7 @@ export default class BaseAPI<
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async count(req: ExpressRequest, res: ExpressResponse): Promise<void> {
|
||||
let query: Query<BaseModel> = {};
|
||||
|
||||
@@ -324,6 +327,7 @@ export default class BaseAPI<
|
||||
});
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -347,6 +351,7 @@ export default class BaseAPI<
|
||||
return Response.sendEntityResponse(req, res, item, this.entityType);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async deleteItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -362,6 +367,7 @@ export default class BaseAPI<
|
||||
return Response.sendEmptySuccessResponse(req, res);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async updateItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -388,6 +394,7 @@ export default class BaseAPI<
|
||||
return Response.sendEmptySuccessResponse(req, res);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async createItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
|
||||
@@ -178,6 +178,7 @@ export default class BaseAnalyticsAPI<
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getPermissionsForTenant(
|
||||
req: ExpressRequest,
|
||||
): Promise<Array<UserPermission>> {
|
||||
@@ -208,6 +209,7 @@ export default class BaseAnalyticsAPI<
|
||||
return null;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getList(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -277,6 +279,7 @@ export default class BaseAnalyticsAPI<
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getAggregate(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -319,6 +322,7 @@ export default class BaseAnalyticsAPI<
|
||||
});
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async count(req: ExpressRequest, res: ExpressResponse): Promise<void> {
|
||||
let query: Query<AnalyticsDataModel> = {};
|
||||
|
||||
@@ -341,6 +345,7 @@ export default class BaseAnalyticsAPI<
|
||||
});
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -364,6 +369,7 @@ export default class BaseAnalyticsAPI<
|
||||
return Response.sendEntityResponse(req, res, item, this.entityType);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async deleteItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -381,6 +387,7 @@ export default class BaseAnalyticsAPI<
|
||||
return Response.sendEmptySuccessResponse(req, res);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async updateItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
@@ -411,6 +418,7 @@ export default class BaseAnalyticsAPI<
|
||||
return Response.sendEmptySuccessResponse(req, res);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async createItem(
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
|
||||
@@ -1505,6 +1505,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getScheduledMaintenanceEvents(
|
||||
statusPageId: ObjectID,
|
||||
scheduledMaintenanceId: ObjectID | null,
|
||||
@@ -1822,6 +1823,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
return response;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getAnnouncements(
|
||||
statusPageId: ObjectID,
|
||||
announcementId: ObjectID | null,
|
||||
@@ -1937,6 +1939,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
return response;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async subscribeToStatusPage(req: ExpressRequest): Promise<void> {
|
||||
const objectId: ObjectID = new ObjectID(
|
||||
req.params["statusPageId"] as string,
|
||||
@@ -2163,6 +2166,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getSubscriber(
|
||||
req: ExpressRequest,
|
||||
): Promise<StatusPageSubscriber> {
|
||||
@@ -2229,6 +2233,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
return statusPageSubscriber;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getIncidents(
|
||||
statusPageId: ObjectID,
|
||||
incidentId: ObjectID | null,
|
||||
@@ -2539,6 +2544,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
return currentStatus;
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async getStatusPageResourcesAndTimelines(data: {
|
||||
statusPageId: ObjectID;
|
||||
startDateForMonitorTimeline: Date;
|
||||
|
||||
@@ -34,6 +34,7 @@ export default class ClickhouseDatabase {
|
||||
return Boolean(this.dataSource);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async connect(
|
||||
dataSourceOptions: ClickHouseClientConfigOptions,
|
||||
): Promise<ClickhouseClient> {
|
||||
@@ -95,6 +96,7 @@ export default class ClickhouseDatabase {
|
||||
}
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async disconnect(): Promise<void> {
|
||||
if (this.dataSource) {
|
||||
await this.dataSource.close();
|
||||
@@ -102,6 +104,7 @@ export default class ClickhouseDatabase {
|
||||
}
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async checkConnnectionStatus(): Promise<boolean> {
|
||||
// Ping clickhouse to check if the connection is still alive
|
||||
try {
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner, Table } from "typeorm";
|
||||
export default class InitialMigration implements MigrationInterface {
|
||||
public name: string = "InitialMigration1717605043663";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// check if File table already exists, then dont run the migration
|
||||
const fileTable: Table | undefined = await queryRunner.getTable("File");
|
||||
@@ -2776,6 +2777,7 @@ export default class InitialMigration implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "WorkflowLabel" DROP CONSTRAINT "FK_4e72fad380eca9abfa3b9895546"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner, Table, TableColumn } from "typeorm";
|
||||
export class MigrationName1717678334852 implements MigrationInterface {
|
||||
public name: string = "MigrationName1717678334852";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// check if the column exists
|
||||
|
||||
@@ -41,6 +42,7 @@ export class MigrationName1717678334852 implements MigrationInterface {
|
||||
}
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TeamPermission" DROP COLUMN "isBlockPermission"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1717839110671 implements MigrationInterface {
|
||||
public name = "MigrationName1717839110671";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ServiceCatalog" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "slug" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "serviceColor" character varying, CONSTRAINT "PK_5186d54b1b97610ea80b5c55aad" PRIMARY KEY ("_id"))`,
|
||||
@@ -36,6 +37,7 @@ export class MigrationName1717839110671 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalogLabel" DROP CONSTRAINT "FK_701f84e45404bdddcffdcaaba20"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1717849921874 implements MigrationInterface {
|
||||
public name = "MigrationName1717849921874";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ServiceCatalogOwnerTeam" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "teamId" uuid NOT NULL, "serviceCatalogId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, CONSTRAINT "PK_da84693caf7072d56bedfc2dc1b" PRIMARY KEY ("_id"))`,
|
||||
@@ -60,6 +61,7 @@ export class MigrationName1717849921874 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalogOwnerUser" DROP CONSTRAINT "FK_d61607e823057b6516f05e8f1cd"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1717955235341 implements MigrationInterface {
|
||||
public name = "MigrationName1717955235341";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "CodeRepository" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "slug" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "secretToken" uuid NOT NULL, CONSTRAINT "PK_7b5219d06a82fbc0bc4540b74f0" PRIMARY KEY ("_id"))`,
|
||||
@@ -39,6 +40,7 @@ export class MigrationName1717955235341 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CodeRepositoryLabel" DROP CONSTRAINT "FK_8f7d12100e441fc72e02151fc56"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718037833516 implements MigrationInterface {
|
||||
public name = "MigrationName1718037833516";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "CopilotEvent" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "codeRepositoryId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "filePath" character varying NOT NULL, "commitHash" character varying NOT NULL, "copilotEventType" character varying NOT NULL, CONSTRAINT "PK_df9ab694204304a1416a720bbfc" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1718037833516 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotEvent" DROP CONSTRAINT "FK_81c5f57878dd2230d2eec3bcb44"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718100824584 implements MigrationInterface {
|
||||
public name = "MigrationName1718100824584";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageSubscriber" ADD "sendYouHaveSubscribedMessage" boolean NOT NULL DEFAULT true`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "restrictionTimes" SET DEFAULT '{"_type": "RestrictionTimes", "value": {"restictionType": "None", "dayRestrictionTimes": null, "weeklyRestrictionTimes": []}}'`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718101665865 implements MigrationInterface {
|
||||
public name = "MigrationName1718101665865";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "SmsLog" ALTER COLUMN "fromNumber" DROP NOT NULL`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "SmsLog" ALTER COLUMN "fromNumber" SET NOT NULL`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718119926223 implements MigrationInterface {
|
||||
public name = "MigrationName1718119926223";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalog" ADD "serviceLanguage" character varying(100)`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalog" DROP COLUMN "serviceLanguage"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718124277321 implements MigrationInterface {
|
||||
public name = "MigrationName1718124277321";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ServiceRepository" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "servicePathInRepository" character varying(500) NOT NULL DEFAULT '/', "limitNumberOfOpenPullRequestsCount" integer DEFAULT '3', "createdByUserId" uuid, "deletedByUserId" uuid, "codeRepositoryId" uuid NOT NULL, "serviceCatalogId" uuid NOT NULL, CONSTRAINT "PK_364ee8145cc35d43da0ef95d232" PRIMARY KEY ("_id"))`,
|
||||
@@ -51,6 +52,7 @@ export class MigrationName1718124277321 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotEvent" DROP CONSTRAINT "FK_b567d8c08ac3810e87efc3222c5"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718126316684 implements MigrationInterface {
|
||||
public name = "MigrationName1718126316684";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceRepository" ADD "enablePullRequests" boolean NOT NULL DEFAULT true`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceRepository" DROP COLUMN "enablePullRequests"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718188920011 implements MigrationInterface {
|
||||
public name = "MigrationName1718188920011";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CodeRepository" ADD "mainBranchName" character varying(100) NOT NULL DEFAULT 'master'`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1718188920011 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CodeRepository" DROP COLUMN "repositoryHostedAt"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718203144945 implements MigrationInterface {
|
||||
public name = "MigrationName1718203144945";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CodeRepository" ADD "organizationName" character varying(100) NOT NULL`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1718203144945 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CodeRepository" DROP COLUMN "repositoryName"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718285877004 implements MigrationInterface {
|
||||
public name = "MigrationName1718285877004";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotEvent" ADD "pullRequestId" character varying`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1718285877004 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotEvent" DROP COLUMN "copilotEventStatus"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718618155447 implements MigrationInterface {
|
||||
public name = "MigrationName1718618155447";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "subscriberTimezones" jsonb`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP COLUMN "subscriberTimezones"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718711669847 implements MigrationInterface {
|
||||
public name = "MigrationName1718711669847";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Incident" ADD "remediationNotes" text`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Incident" DROP COLUMN "remediationNotes"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1718879960254 implements MigrationInterface {
|
||||
public name = "MigrationName1718879960254";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "CopilotAction" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "codeRepositoryId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "filePath" character varying NOT NULL, "commitHash" character varying NOT NULL, "copilotActionType" character varying NOT NULL, "serviceCatalogId" uuid NOT NULL, "serviceRepositoryId" uuid NOT NULL, "pullRequestId" character varying, "copilotActionStatus" character varying NOT NULL, CONSTRAINT "PK_1a2ad3762ca1616c1f31c04ef1e" PRIMARY KEY ("_id"))`,
|
||||
@@ -39,6 +40,7 @@ export class MigrationName1718879960254 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP CONSTRAINT "FK_786400c4dce05f85bbbd5244249"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719227548476 implements MigrationInterface {
|
||||
public name = "MigrationName1719227548476";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" ADD "enterpriseAnnualContractValue" character varying(100)`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" DROP COLUMN "enterpriseAnnualContractValue"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719228104620 implements MigrationInterface {
|
||||
public name = "MigrationName1719228104620";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
const doesTableExist: boolean = await queryRunner.hasTable("CopilotEvent");
|
||||
if (doesTableExist) {
|
||||
@@ -10,6 +11,7 @@ export class MigrationName1719228104620 implements MigrationInterface {
|
||||
}
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(_queryRunner: QueryRunner): Promise<void> {
|
||||
// we dont use this table anymore.
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719247426296 implements MigrationInterface {
|
||||
public name = "MigrationName1719247426296";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" DROP COLUMN "enterpriseAnnualContractValue"`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1719247426296 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" DROP COLUMN "enterpriseAnnualContractValue"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719348009053 implements MigrationInterface {
|
||||
public name = "MigrationName1719348009053";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" ADD "letCustomerSupportAccessProject" boolean DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Project" DROP COLUMN "letCustomerSupportAccessProject"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719827175832 implements MigrationInterface {
|
||||
public name = "MigrationName1719827175832";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Probe" ADD "connectionStatus" character varying`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Probe" DROP COLUMN "connectionStatus"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719831213463 implements MigrationInterface {
|
||||
public name = "MigrationName1719831213463";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" ADD "isAllProbesDisconnectedFromThisMonitor" boolean DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" DROP COLUMN "isAllProbesDisconnectedFromThisMonitor"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719838746775 implements MigrationInterface {
|
||||
public name = "MigrationName1719838746775";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ProbeOwnerTeam" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "teamId" uuid NOT NULL, "probeId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "isOwnerNotified" boolean NOT NULL DEFAULT false, CONSTRAINT "PK_b33e4c1d912b244680e0bace977" PRIMARY KEY ("_id"))`,
|
||||
@@ -81,6 +82,7 @@ export class MigrationName1719838746775 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ProbeLabel" DROP CONSTRAINT "FK_ab7fd85397d8c70c77c761004d2"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1719915433542 implements MigrationInterface {
|
||||
public name = "MigrationName1719915433542";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" ADD "isNoProbeEnabledOnThisMonitor" boolean DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" DROP COLUMN "isNoProbeEnabledOnThisMonitor"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720024126646 implements MigrationInterface {
|
||||
public name = "MigrationName1720024126646";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// change type of secretValue from varchar to text
|
||||
await queryRunner.query(
|
||||
@@ -10,6 +11,7 @@ export class MigrationName1720024126646 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "MonitorSecret" ALTER COLUMN "secretValue" TYPE character varying(500)`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720532068612 implements MigrationInterface {
|
||||
public name = "MigrationName1720532068612";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// delete all records from CopilotAction
|
||||
await queryRunner.query(`DELETE FROM "CopilotAction"`);
|
||||
@@ -82,6 +83,7 @@ export class MigrationName1720532068612 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotCodeRepositoryLabel" DROP CONSTRAINT "FK_d3bb0fc11b6e3b7fd3ca0464c15"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720538999941 implements MigrationInterface {
|
||||
public name = "MigrationName1720538999941";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotCodeRepository" DROP COLUMN "onBeforeRepositoryCloneScript"`,
|
||||
@@ -18,6 +19,7 @@ export class MigrationName1720538999941 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotCodeRepository" ADD "onBeforeCommitScript" text`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720785305192 implements MigrationInterface {
|
||||
public name = "MigrationName1720785305192";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// delete all data from CopilotAction
|
||||
await queryRunner.query(`DELETE FROM "CopilotAction"`);
|
||||
@@ -60,6 +61,7 @@ export class MigrationName1720785305192 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP CONSTRAINT "FK_c21417d854c9330f4cadc2bc2b0"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720805596648 implements MigrationInterface {
|
||||
public name = "MigrationName1720805596648";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotPullRequest" ADD "isSetupPullRequest" boolean`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotPullRequest" DROP COLUMN "isSetupPullRequest"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720806196274 implements MigrationInterface {
|
||||
public name = "MigrationName1720806196274";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotPullRequest" DROP CONSTRAINT "FK_81c04dfb087fe1314f9b0bfbd0d"`,
|
||||
@@ -24,6 +25,7 @@ export class MigrationName1720806196274 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotPullRequest" DROP CONSTRAINT "FK_8e7cd28e052005c1098553f18df"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1720812937067 implements MigrationInterface {
|
||||
public name = "MigrationName1720812937067";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP CONSTRAINT "FK_c21417d854c9330f4cadc2bc2b0"`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1720812937067 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP CONSTRAINT "FK_c21417d854c9330f4cadc2bc2b0"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1721075917289 implements MigrationInterface {
|
||||
public name = "MigrationName1721075917289";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ServiceCatlogDependency" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "serviceCatalogId" uuid NOT NULL, "dependencyServiceCatalogId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, CONSTRAINT "PK_f4c8003faa6daec34a5b97f88e8" PRIMARY KEY ("_id"))`,
|
||||
@@ -33,6 +34,7 @@ export class MigrationName1721075917289 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatlogDependency" DROP CONSTRAINT "FK_a4e505f3feab672e2dbbb3a58a1"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1721152139648 implements MigrationInterface {
|
||||
public name = "MigrationName1721152139648";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ServiceCatalogMonitor" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "serviceCatalogId" uuid NOT NULL, "monitorId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, CONSTRAINT "PK_194c766475d9a575a17c16bb7b9" PRIMARY KEY ("_id"))`,
|
||||
@@ -60,6 +61,7 @@ export class MigrationName1721152139648 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalogTelemetryService" DROP CONSTRAINT "FK_b0419b3b36e6606a404eb97a98a"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1721159743714 implements MigrationInterface {
|
||||
public name = "MigrationName1721159743714";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalog" ADD "techStack" jsonb`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ServiceCatalog" DROP COLUMN "techStack"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1721754545771 implements MigrationInterface {
|
||||
public name = "MigrationName1721754545771";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "isReportEnabled" boolean NOT NULL DEFAULT false`,
|
||||
@@ -18,6 +19,7 @@ export class MigrationName1721754545771 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP COLUMN "sendNextReportBy"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1721779190475 implements MigrationInterface {
|
||||
public name = "MigrationName1721779190475";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "reportDataInDays" integer DEFAULT '30'`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP COLUMN "reportDataInDays"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1722031205897 implements MigrationInterface {
|
||||
public name = "MigrationName1722031205897";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "UserTwoFactorAuth" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "name" character varying(100) NOT NULL, "twoFactorSecret" text NOT NULL, "twoFactorOtpUrl" text NOT NULL, "isVerified" boolean NOT NULL DEFAULT false, "deletedByUserId" uuid, "userId" uuid, CONSTRAINT "PK_1e248beb4011dcab4bd5ca73fc1" PRIMARY KEY ("_id"))`,
|
||||
@@ -18,6 +19,7 @@ export class MigrationName1722031205897 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "UserTwoFactorAuth" DROP CONSTRAINT "FK_3a7c46ce8b2f60e0801a0aaeaa2"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1722543640526 implements MigrationInterface {
|
||||
public name = "MigrationName1722543640526";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "TelemetryIngestionKey" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "secretKey" uuid NOT NULL, CONSTRAINT "PK_57133851c3817251c983a378342" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1722543640526 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryIngestionKey" DROP CONSTRAINT "FK_2874c193beda1ef2e841cbbfba4"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1722892318363 implements MigrationInterface {
|
||||
public name = "MigrationName1722892318363";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" ADD "telemetryMonitorNextMonitorAt" TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -21,6 +22,7 @@ export class MigrationName1722892318363 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_02bae6cdc6d5b3092ac393fbb3"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1723825511054 implements MigrationInterface {
|
||||
public name = "MigrationName1723825511054";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "showOverallUptimePercentOnStatusPage" boolean NOT NULL DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP COLUMN "showOverallUptimePercentOnStatusPage"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1723828588502 implements MigrationInterface {
|
||||
public name = "MigrationName1723828588502";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "overallUptimePercentPrecision" character varying DEFAULT '99.99% (Two Decimal)'`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP COLUMN "overallUptimePercentPrecision"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1724078044172 implements MigrationInterface {
|
||||
public name = "MigrationName1724078044172";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Monitor" ADD "incomingRequestMonitorHeartbeatCheckedAt" TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1724078044172 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_62cf90e5fbcd9f3742ed35a2bb"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1724610006927 implements MigrationInterface {
|
||||
public name = "MigrationName1724610006927";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "TelemetryException" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "telemetryServiceId" uuid NOT NULL, "message" character varying, "stackTrace" character varying, "exceptionType" character varying, "fingerprint" character varying(100), "createdByUserId" uuid, "deletedByUserId" uuid, "markedAsResolvedAt" TIMESTAMP WITH TIME ZONE, "markedAsMutedAt" TIMESTAMP WITH TIME ZONE, "firstSeenAt" TIMESTAMP WITH TIME ZONE, "lastSeenAt" TIMESTAMP WITH TIME ZONE, "assignToUserId" uuid, "assignToTeamId" uuid, "markedAsResolvedByUserId" uuid, "markedAsMutedByUserId" uuid, CONSTRAINT "PK_53717afe73c3e72c11713e5e25f" PRIMARY KEY ("_id"))`,
|
||||
@@ -48,6 +49,7 @@ export class MigrationName1724610006927 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" DROP CONSTRAINT "FK_199e3572d19b75e59f2082251f8"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1724613666632 implements MigrationInterface {
|
||||
public name = "MigrationName1724613666632";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" DROP CONSTRAINT "FK_199e3572d19b75e59f2082251f8"`,
|
||||
@@ -31,6 +32,7 @@ export class MigrationName1724613666632 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" DROP CONSTRAINT "FK_3def22373f0cb84e16cb355b5e5"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1724659071843 implements MigrationInterface {
|
||||
public name = "MigrationName1724659071843";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" ADD "occuranceCount" integer NOT NULL DEFAULT '1'`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" DROP COLUMN "occuranceCount"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725291476867 implements MigrationInterface {
|
||||
public name = "MigrationName1725291476867";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "CopilotActionTypePriority" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "codeRepositoryId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "actionType" character varying(100) NOT NULL, "priority" integer NOT NULL DEFAULT '1', CONSTRAINT "PK_e87af58e75ac25610e48807703e" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1725291476867 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotActionTypePriority" DROP CONSTRAINT "FK_01864ec4b8b5f343e484a09128a"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725357719072 implements MigrationInterface {
|
||||
public name = "MigrationName1725357719072";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" ADD "copilotActionProp" jsonb`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1725357719072 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP COLUMN "statusMessage"`,
|
||||
|
||||
@@ -3,10 +3,12 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725360199561 implements MigrationInterface {
|
||||
public name = "MigrationName1725360199561";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "CopilotAction" ADD "logs" text`);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "CopilotAction" DROP COLUMN "logs"`);
|
||||
}
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725379949648 implements MigrationInterface {
|
||||
public name = "MigrationName1725379949648";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" ADD "isPriority" boolean NOT NULL DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP COLUMN "isPriority"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725551629492 implements MigrationInterface {
|
||||
public name = "MigrationName1725551629492";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP COLUMN "filePath"`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" ADD "filePath" character varying NOT NULL`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725556630384 implements MigrationInterface {
|
||||
public name = "MigrationName1725556630384";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "BillingInvoice" ADD "invoiceDate" TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1725556630384 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "CopilotAction" DROP COLUMN "statusChangedAt"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725618842598 implements MigrationInterface {
|
||||
public name = "MigrationName1725618842598";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageAnnouncement" ALTER COLUMN "endAnnouncementAt" DROP NOT NULL`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageAnnouncement" ALTER COLUMN "endAnnouncementAt" SET NOT NULL`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725880508430 implements MigrationInterface {
|
||||
public name = "MigrationName1725880508430";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ScheduledMaintenanceTemplate" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "version" integer NOT NULL, "projectId" uuid NOT NULL, "title" character varying(100) NOT NULL, "description" text, "slug" character varying(100) NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "currentScheduledMaintenanceStateId" uuid NOT NULL, "changeMonitorStatusToId" uuid, "startsAt" TIMESTAMP WITH TIME ZONE NOT NULL, "endsAt" TIMESTAMP WITH TIME ZONE NOT NULL, "shouldStatusPageSubscribersBeNotifiedOnEventCreated" boolean NOT NULL DEFAULT true, "shouldStatusPageSubscribersBeNotifiedWhenEventChangedToOngoing" boolean NOT NULL DEFAULT true, "shouldStatusPageSubscribersBeNotifiedWhenEventChangedToEnded" boolean NOT NULL DEFAULT true, "customFields" jsonb, CONSTRAINT "UQ_389395798bdc01f66af7f579a93" UNIQUE ("slug"), CONSTRAINT "PK_92912fb2ee31a1d2912e0077b65" PRIMARY KEY ("_id"))`,
|
||||
@@ -138,6 +139,7 @@ export class MigrationName1725880508430 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplateLabel" DROP CONSTRAINT "FK_ac1b6389a147d1556e38de4bff2"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725881099935 implements MigrationInterface {
|
||||
public name = "MigrationName1725881099935";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ADD "recurringInterval" jsonb`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP COLUMN "recurringInterval"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725881475134 implements MigrationInterface {
|
||||
public name = "MigrationName1725881475134";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ADD "templateName" character varying(100) NOT NULL`,
|
||||
@@ -18,6 +19,7 @@ export class MigrationName1725881475134 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "restrictionTimes" SET DEFAULT '{"_type": "RestrictionTimes", "value": {"restictionType": "None", "dayRestrictionTimes": null, "weeklyRestrictionTimes": []}}'`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725884177663 implements MigrationInterface {
|
||||
public name = "MigrationName1725884177663";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP CONSTRAINT "FK_aea47be8b8af9673e9639e7dae3"`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1725884177663 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ADD "currentScheduledMaintenanceStateId" uuid NOT NULL`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725898621366 implements MigrationInterface {
|
||||
public name = "MigrationName1725898621366";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ADD "isRecurringEvent" boolean NOT NULL DEFAULT false`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1725898621366 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ALTER COLUMN "endsAt" SET NOT NULL`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725900315712 implements MigrationInterface {
|
||||
public name = "MigrationName1725900315712";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP COLUMN "startsAt"`,
|
||||
@@ -30,6 +31,7 @@ export class MigrationName1725900315712 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "OnCallDutyPolicyScheduleLayer" ALTER COLUMN "restrictionTimes" SET DEFAULT '{"_type": "RestrictionTimes", "value": {"restictionType": "None", "dayRestrictionTimes": null, "weeklyRestrictionTimes": []}}'`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725901024444 implements MigrationInterface {
|
||||
public name = "MigrationName1725901024444";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP COLUMN "scheduleNextEventAt"`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1725901024444 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP COLUMN "scheduleNextEventAt"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725975175669 implements MigrationInterface {
|
||||
public name = "MigrationName1725975175669";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenance" ADD "sendSubscriberNotificationsOnBeforeTheEvent" jsonb`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1725975175669 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_37b2094ce25cc62b4766a7d3b1"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1725976810107 implements MigrationInterface {
|
||||
public name = "MigrationName1725976810107";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" ADD "sendSubscriberNotificationsOnBeforeTheEvent" jsonb`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplate" DROP COLUMN "sendSubscriberNotificationsOnBeforeTheEvent"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1726831037585 implements MigrationInterface {
|
||||
public name = "MigrationName1726831037585";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageGroup" ADD "showCurrentStatus" boolean NOT NULL DEFAULT true`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1726831037585 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageGroup" DROP COLUMN "uptimePercentPrecision"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727101782315 implements MigrationInterface {
|
||||
public name = "MigrationName1727101782315";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1727101782315 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727102156072 implements MigrationInterface {
|
||||
public name = "MigrationName1727102156072";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1727102156072 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727102331367 implements MigrationInterface {
|
||||
public name = "MigrationName1727102331367";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1727102331367 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_61944d851b4a7213d79ef281744"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727103023745 implements MigrationInterface {
|
||||
public name = "MigrationName1727103023745";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "User" DROP CONSTRAINT "FK_644c3c0393979f57f71892ff0d7"`,
|
||||
@@ -1362,6 +1363,7 @@ export class MigrationName1727103023745 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceTemplateOwnerUser" DROP CONSTRAINT "FK_64da70a3e70ddc728b6b15659ca"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727104469670 implements MigrationInterface {
|
||||
public name = "MigrationName1727104469670";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_4e347d3f99b67dacd149beaf61d"`,
|
||||
@@ -18,6 +19,7 @@ export class MigrationName1727104469670 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" DROP CONSTRAINT "FK_4e347d3f99b67dacd149beaf61d"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727192530019 implements MigrationInterface {
|
||||
public name = "MigrationName1727192530019";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "File" ALTER COLUMN "createdAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "File" ALTER COLUMN "createdAt" TYPE TIMESTAMP`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727193130193 implements MigrationInterface {
|
||||
public name = "MigrationName1727193130193";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "User" ALTER COLUMN "createdAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "User" ALTER COLUMN "createdAt" TYPE TIMESTAMP`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727193702212 implements MigrationInterface {
|
||||
public name = "MigrationName1727193702212";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "AcmeCertificate" ALTER COLUMN "createdAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -722,5 +723,6 @@ export class MigrationName1727193702212 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(_queryRunner: QueryRunner): Promise<void> {}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727194211048 implements MigrationInterface {
|
||||
public name = "MigrationName1727194211048";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "User" ALTER COLUMN "updatedAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -728,5 +729,6 @@ export class MigrationName1727194211048 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(_queryRunner: QueryRunner): Promise<void> {}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727194579925 implements MigrationInterface {
|
||||
public name = "MigrationName1727194579925";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "User" ALTER COLUMN "deletedAt" TYPE TIMESTAMP WITH TIME ZONE`,
|
||||
@@ -489,5 +490,6 @@ export class MigrationName1727194579925 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(_queryRunner: QueryRunner): Promise<void> {}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727894983857 implements MigrationInterface {
|
||||
public name = "MigrationName1727894983857";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "TableView" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "tableId" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "query" jsonb NOT NULL, "sort" jsonb NOT NULL, "itemsOnPage" integer NOT NULL DEFAULT '10', CONSTRAINT "PK_1e17a8834a65403cc87c4ead0cc" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1727894983857 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TableView" DROP CONSTRAINT "FK_b36d769f3d3d6fe4f9c35984551"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1727906598804 implements MigrationInterface {
|
||||
public name = "MigrationName1727906598804";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "AlertSeverity" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "slug" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "color" character varying(7) NOT NULL, "order" smallint NOT NULL, CONSTRAINT "PK_6ed0de1b0a2ea665f42e3599b0e" PRIMARY KEY ("_id"))`,
|
||||
@@ -288,6 +289,7 @@ export class MigrationName1727906598804 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "AlertLabel" DROP CONSTRAINT "FK_507fd32e297f0287df932d7550d"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1728472625805 implements MigrationInterface {
|
||||
public name = "MigrationName1728472625805";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageDomain" ADD "customCertificate" text`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1728472625805 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageDomain" DROP COLUMN "isCustomCertificate"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1729682875503 implements MigrationInterface {
|
||||
public name = "MigrationName1729682875503";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "Dashboard" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "name" character varying(100) NOT NULL, "slug" character varying(100) NOT NULL, "description" character varying(500), "createdByUserId" uuid, "deletedByUserId" uuid, "dashboardViewConfig" jsonb NOT NULL, CONSTRAINT "PK_98ee748c8a7a18d6f9ca995eaf4" PRIMARY KEY ("_id"))`,
|
||||
@@ -42,6 +43,7 @@ export class MigrationName1729682875503 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "DashboardLabel" DROP CONSTRAINT "FK_31a32c8d6d1d1cb734c77110509"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1730117995642 implements MigrationInterface {
|
||||
public name = "MigrationName1730117995642";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPage" ADD "allowSubscribersToChooseEventTypes" boolean NOT NULL DEFAULT false`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1730117995642 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageSubscriber" DROP COLUMN "statusPageEventTypes"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1730209089495 implements MigrationInterface {
|
||||
public name = "MigrationName1730209089495";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "MonitorTest" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "monitorType" character varying(100) NOT NULL, "monitorSteps" jsonb, "probeId" uuid NOT NULL, "testedAt" TIMESTAMP WITH TIME ZONE, "lastMonitoringLog" jsonb, CONSTRAINT "PK_7ce3477c7bb3d7b8961c8465935" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1730209089495 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "MonitorTest" DROP CONSTRAINT "FK_fd6b1e330eb08de988307b60524"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1730223198692 implements MigrationInterface {
|
||||
public name = "MigrationName1730223198692";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "MonitorTest" DROP COLUMN "lastMonitoringLog"`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1730223198692 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "MonitorTest" DROP COLUMN "isInQueue"`,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1731433043136 implements MigrationInterface {
|
||||
public name = "MigrationName1731433043136";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_5218e92f700d91afe6a8db79cb"`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX "IDX_5218e92f700d91afe6a8db79cb" ON "Incident" ("rootCause") `,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1731433309124 implements MigrationInterface {
|
||||
public name = "MigrationName1731433309124";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_fc40ea6a9ad55f29bca4f4a15d"`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX "IDX_fc40ea6a9ad55f29bca4f4a15d" ON "Alert" ("rootCause") `,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1731435267537 implements MigrationInterface {
|
||||
public name = "MigrationName1731435267537";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_01ac1d1ef9e72aeb6dac6575dd"`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX "IDX_01ac1d1ef9e72aeb6dac6575dd" ON "MonitorStatusTimeline" ("rootCause") `,
|
||||
|
||||
@@ -3,12 +3,14 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1731435514287 implements MigrationInterface {
|
||||
public name = "MigrationName1731435514287";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_7db6b1a8fbbc9eb44c2e7f5047"`,
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX "IDX_7db6b1a8fbbc9eb44c2e7f5047" ON "IncidentStateTimeline" ("rootCause") `,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1732553444010 implements MigrationInterface {
|
||||
public name = "MigrationName1732553444010";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "TelemetryException" ALTER COLUMN "message" TYPE text`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1732553444010 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
// revert changes made in up method - text to varchar
|
||||
await queryRunner.query(
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1734435866602 implements MigrationInterface {
|
||||
public name = "MigrationName1734435866602";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageSubscriber" ADD "isSubscriptionConfirmed" boolean NOT NULL DEFAULT false`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1734435866602 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "StatusPageSubscriber" DROP COLUMN "subscriptionConfirmationToken"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736364478985 implements MigrationInterface {
|
||||
public name = "MigrationName1736364478985";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "IncidentLog" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "incidentId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "logInMarkdown" text NOT NULL, "moreInformationInMarkdown" text NOT NULL, "incidentLogEvent" character varying NOT NULL, CONSTRAINT "PK_947cb9f32cf204561d10d64adeb" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1736364478985 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "IncidentLog" DROP CONSTRAINT "FK_bb1b8b83ffdfc702088b74f2e16"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736364957990 implements MigrationInterface {
|
||||
public name = "MigrationName1736364957990";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "AlertLog" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "alertId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "logInMarkdown" text NOT NULL, "moreInformationInMarkdown" text NOT NULL, "alertLogEvent" character varying NOT NULL, CONSTRAINT "PK_500826238fa54528b0026f55d47" PRIMARY KEY ("_id"))`,
|
||||
@@ -33,6 +34,7 @@ export class MigrationName1736364957990 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "AlertLog" DROP CONSTRAINT "FK_7ca9046915f6de6e7a199588d26"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736365532085 implements MigrationInterface {
|
||||
public name = "MigrationName1736365532085";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "ScheduledMaintenanceLog" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "scheduledMaintenanceId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "logInMarkdown" text NOT NULL, "moreInformationInMarkdown" text NOT NULL, "scheduledMaintenanceLogEvent" character varying NOT NULL, CONSTRAINT "PK_27b89f28bf48418fabba9a1ea14" PRIMARY KEY ("_id"))`,
|
||||
@@ -27,6 +28,7 @@ export class MigrationName1736365532085 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceLog" DROP CONSTRAINT "FK_a957f435d1504f41808f20a2c45"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736675947746 implements MigrationInterface {
|
||||
public name = "MigrationName1736675947746";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Incident" ADD "incidentNumber" integer`,
|
||||
@@ -12,6 +13,7 @@ export class MigrationName1736675947746 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_0eca9ce7d12a4c472386dfc781"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736703138918 implements MigrationInterface {
|
||||
public name = "MigrationName1736703138918";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "IncidentLog" ADD "incidentLogSeverity" character varying NOT NULL`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1736703138918 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceLog" DROP COLUMN "scheduledMaintenanceLogSeverity"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736780194077 implements MigrationInterface {
|
||||
public name = "MigrationName1736780194077";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "IncidentFeed" ("_id" uuid NOT NULL DEFAULT uuid_generate_v4(), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP WITH TIME ZONE, "version" integer NOT NULL, "projectId" uuid NOT NULL, "incidentId" uuid NOT NULL, "createdByUserId" uuid, "deletedByUserId" uuid, "feedInfoInMarkdown" text NOT NULL, "moreInformationInMarkdown" text NOT NULL, "incidentFeedEventType" character varying NOT NULL, "displayColor" character varying(7) NOT NULL, CONSTRAINT "PK_8188c79d1ed22013205ff324dea" PRIMARY KEY ("_id"))`,
|
||||
@@ -69,6 +70,7 @@ export class MigrationName1736780194077 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceFeed" DROP CONSTRAINT "FK_8374052884c5d75f5018c1dc908"`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736780194078 implements MigrationInterface {
|
||||
public name = "MigrationName1736780194078";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// drop tables IncidentLog, AlertLog, ScheduledMaintenanceLog
|
||||
await queryRunner.query(`DROP TABLE "IncidentLog"`);
|
||||
@@ -10,6 +11,7 @@ export class MigrationName1736780194078 implements MigrationInterface {
|
||||
await queryRunner.query(`DROP TABLE "ScheduledMaintenanceLog"`);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(_queryRunner: QueryRunner): Promise<void> {
|
||||
// do nothing.
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736787495707 implements MigrationInterface {
|
||||
public name = "MigrationName1736787495707";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "IncidentFeed" ALTER COLUMN "moreInformationInMarkdown" DROP NOT NULL`,
|
||||
@@ -15,6 +16,7 @@ export class MigrationName1736787495707 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceFeed" ALTER COLUMN "moreInformationInMarkdown" SET NOT NULL`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736787985322 implements MigrationInterface {
|
||||
public name = "MigrationName1736787985322";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Label" ALTER COLUMN "color" TYPE character varying(10)`,
|
||||
@@ -42,6 +43,7 @@ export class MigrationName1736787985322 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "Label" ALTER COLUMN "color" TYPE character varying(7)`,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class MigrationName1736788706141 implements MigrationInterface {
|
||||
public name = "MigrationName1736788706141";
|
||||
|
||||
@CaptureSpan()
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "IncidentFeed" ADD "userId" uuid`);
|
||||
await queryRunner.query(`ALTER TABLE "AlertFeed" ADD "userId" uuid`);
|
||||
@@ -20,6 +21,7 @@ export class MigrationName1736788706141 implements MigrationInterface {
|
||||
);
|
||||
}
|
||||
|
||||
@CaptureSpan()
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "ScheduledMaintenanceFeed" DROP CONSTRAINT "FK_541c2b40579cbf342c8850ced2b"`,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user