Refactor page layout tab and widgets migration (#16367)

# Introduction
Making columns nullable instead of required + metadata on the fly
migration in typeorm migration that could affect other breaking change
migrations to be run
This commit is contained in:
Paul Rastoin
2025-12-06 10:23:24 +01:00
committed by GitHub
parent 223082a4da
commit 3e57aa14d3
9 changed files with 186 additions and 109 deletions
@@ -1,21 +0,0 @@
import { Column, Index, JoinColumn, ManyToOne, Relation } from 'typeorm';
import type { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
@Index(['workspaceId', 'universalIdentifier'], {
unique: true,
})
export abstract class StrictSyncableEntity {
@Column({ nullable: false, type: 'uuid' })
universalIdentifier: string;
@Column({ nullable: false, type: 'uuid' })
applicationId: string;
@ManyToOne('ApplicationEntity', {
onDelete: 'CASCADE',
nullable: false,
})
@JoinColumn({ name: 'applicationId' })
application: Relation<ApplicationEntity>;
}