mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
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:
parent
fd13e91aac
commit
2de2926d79
@ -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"`);
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user