Skip to content

Commit 80f626a

Browse files
author
Andrew Farries
committed
Change length of applicationCluster field
1 parent 339dcb9 commit 80f626a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

components/gitpod-db/src/typeorm/entity/db-workspace-cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class DBWorkspaceCluster implements WorkspaceCluster {
8787

8888
@Column({
8989
type: "varchar",
90-
length: 255,
90+
length: 60,
9191
})
9292
applicationCluster: string;
9393
}

components/gitpod-db/src/typeorm/migration/1665071320428-AddColumnToWorkspaceClusterTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class AddColumnToWorkspaceClusterTable1665071320428 implements MigrationI
1111
const installationShortname = process.env.GITPOD_INSTALLATION_SHORTNAME ?? "";
1212

1313
await queryRunner.query(
14-
`ALTER TABLE d_b_workspace_cluster ADD COLUMN applicationCluster varchar(255) NOT NULL DEFAULT ''`,
14+
`ALTER TABLE d_b_workspace_cluster ADD COLUMN applicationCluster varchar(60) NOT NULL DEFAULT ''`,
1515
);
1616

1717
await queryRunner.query(`UPDATE d_b_workspace_cluster SET applicationCluster = '${installationShortname}'`);

components/gitpod-protocol/src/workspace-cluster.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface WorkspaceCluster {
1616
name: string;
1717

1818
// The name of the application cluster to which this cluster should be registered.
19+
// The name can be at most 60 characters.
1920
applicationCluster: string;
2021

2122
// URL of the cluster's ws-manager API

0 commit comments

Comments
 (0)