refactor: Add MigrationName1718203144945 to SchemaMigrations/Index.ts

The SchemaMigrations/Index.ts file has been updated to include the MigrationName1718203144945 migration. This change ensures that the new migration is included in the list of schema migrations, allowing for proper database versioning and management.
This commit is contained in:
Simon Larsen 2024-06-12 15:39:55 +01:00
parent fd13e91aac
commit 2de2926d79
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class MigrationName1718203144945 implements MigrationInterface {
public name = 'MigrationName1718203144945'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "CodeRepository" ADD "organizationName" character varying(100) NOT NULL`);
await queryRunner.query(`ALTER TABLE "CodeRepository" ADD "repositoryName" character varying(100) NOT NULL`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "CodeRepository" DROP COLUMN "repositoryName"`);
await queryRunner.query(`ALTER TABLE "CodeRepository" DROP COLUMN "organizationName"`);
}
}

View File

@ -10,6 +10,7 @@ import { MigrationName1718119926223 } from './1718119926223-MigrationName';
import { MigrationName1718124277321 } from './1718124277321-MigrationName';
import { MigrationName1718126316684 } from './1718126316684-MigrationName';
import { MigrationName1718188920011 } from './1718188920011-MigrationName';
import { MigrationName1718203144945 } from './1718203144945-MigrationName';
export default [
InitialMigration,
@ -24,4 +25,5 @@ export default [
MigrationName1718124277321,
MigrationName1718126316684,
MigrationName1718188920011,
MigrationName1718203144945
];