Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size increase for namespace column #2639

Merged
merged 13 commits into from
May 21, 2024
14 changes: 14 additions & 0 deletions npm/migration/mariadb/1714417013715-md_namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class MdNamespace1714417013715 implements MigrationInterface {
name = 'MdNamespace1714417013715'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(256) NULL`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(64) NULL`);
}

}
14 changes: 14 additions & 0 deletions npm/migration/mssql/1714421718208-mss_namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class MssNamespace1714421718208 implements MigrationInterface {
name = 'MssNamespace1714421718208'

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

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

}
14 changes: 14 additions & 0 deletions npm/migration/mysql/1714419315556-ms_namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class MsNamespace1714419315556 implements MigrationInterface {
name = 'MsNamespace1714419315556'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(256) NULL`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(64) NULL`);
}

}
14 changes: 14 additions & 0 deletions npm/migration/planetscale/1714457285484-ms_namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class MsNamespace1714457285484 implements MigrationInterface {
name = 'MsNamespace1714457285484'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(256) NULL`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`jackson_store\` MODIFY \`namespace\` varchar(64) NULL`);
}

}
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)`);
}

}
2 changes: 1 addition & 1 deletion npm/src/db/planetscale/entity/JacksonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class JacksonStore {
@Index('_jackson_store_namespace')
@Column({
type: 'varchar',
length: 64,
length: 256,
nullable: true,
})
namespace?: string;
Expand Down
2 changes: 1 addition & 1 deletion npm/src/db/sql/entity/JacksonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class JacksonStore {
@Index('_jackson_store_namespace')
@Column({
type: 'varchar',
length: 64,
length: 256,
nullable: true,
})
namespace?: string;
Expand Down
2 changes: 1 addition & 1 deletion npm/src/db/sql/mariadb/entity/JacksonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class JacksonStore {
@Index('_jackson_store_namespace')
@Column({
type: 'varchar',
length: 64,
length: 256,
nullable: true,
})
namespace?: string;
Expand Down
2 changes: 1 addition & 1 deletion npm/src/db/sql/mssql/entity/JacksonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class JacksonStore {
@Index('_jackson_store_namespace')
@Column({
type: 'varchar',
length: 64,
length: 256,
nullable: true,
})
namespace?: string;
Expand Down
Loading