Fix: Persist hide empty groups setting on backend (BREAKING: deploy server first) (#16385)

Closes #13754 and [core team issue
#414](https://github.com/twentyhq/core-team-issues/issues/414)
This commit is contained in:
Abdul Rahman
2025-12-10 19:10:29 +05:30
committed by GitHub
parent 20f2ca6864
commit 1839f8e946
22 changed files with 119 additions and 19 deletions
@@ -0,0 +1,19 @@
import { type MigrationInterface, type QueryRunner } from 'typeorm';
export class AddViewShouldHideEmptyGroups1765153412696
implements MigrationInterface
{
name = 'AddViewShouldHideEmptyGroups1765153412696';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."view" ADD "shouldHideEmptyGroups" boolean NOT NULL DEFAULT false`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."view" DROP COLUMN "shouldHideEmptyGroups"`,
);
}
}