What happened?
When changing a Column (FK) from NOT NULL to NULL with the data.ts file it isn't applied. Only way to fix it was to do an ALTER TABLE or DROP TABLE.
Steps to reproduce
Deployed Version
@uuid() customerSegment_id!: string;
@one(() => CustomerSegment) customerSegment!: CustomerSegment;
Changed Version to deploy
@uuid({ optional: true }) customerSegment_id?: string;
@one(() => CustomerSegment) customerSegment?: CustomerSegment;
Environment
- Windowss 11
- Node: v22.14.0
- npm: 11.12.1
- Rayfin CLI: 1.33.2 (built Jun 12, 2026, 09:18 PM UTC)
Logs or screenshots
What happened?
When changing a Column (FK) from NOT NULL to NULL with the
data.tsfile it isn't applied. Only way to fix it was to do anALTER TABLEorDROP TABLE.Steps to reproduce
Deployed Version
Changed Version to deploy
Environment
Logs or screenshots