Skip to content

Commit

Permalink
Postgres migration
Browse files Browse the repository at this point in the history
  • Loading branch information
niwsa committed Apr 30, 2024
1 parent f9b21a5 commit cb5e443
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions npm/migration/postgres/1714452929542-pg_namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class PgNamespace1714452929542 implements MigrationInterface {
name = 'PgNamespace1714452929542'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "jackson_store" ALTER COLUMN "namespace" TYPE VARCHAR(256)`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "jackson_store" ALTER COLUMN "namespace" TYPE VARCHAR(64)`);
}

}

0 comments on commit cb5e443

Please sign in to comment.