@artilleryio/platform-fargate
Version:
Fargate support for Artillery
1 lines • 918 B
JavaScript
const{MigrationInterface,QueryRunner}=require("typeorm");module.exports=class{static name="migrate01InitialDb1652173578530";async up(queryRunner){await queryRunner.query('CREATE TABLE "test_run" ("id" SERIAL NOT NULL, "testRunId" character varying NOT NULL, "status" character varying, "createdTime" TIMESTAMP, "startedAt" TIMESTAMP, "endedAt" TIMESTAMP, "metadata" jsonb, "launchConfig" jsonb, "tasks" text, "tags" jsonb, CONSTRAINT "PK_011c050f566e9db509a0fadb9b9" PRIMARY KEY ("id"))'),await queryRunner.query('CREATE TABLE "tag" ("id" SERIAL NOT NULL, "tagString" character varying NOT NULL, "name" character varying NOT NULL, "value" character varying NOT NULL, CONSTRAINT "UQ_89afdbf8c60805ec429a25c5aa5" UNIQUE ("tagString"), CONSTRAINT "PK_8e4052373c579afc1471f526760" PRIMARY KEY ("id"))')}async down(queryRunner){await queryRunner.query('DROP TABLE "tag"'),await queryRunner.query('DROP TABLE "test_run"')}};