[Database] NOT NULL / NULL Constraints
Open
@seanwat-msft is already working on this.
Since Jul 15, 2026.
bug
issue-mapped
triaged
- Dominant language
- No language data
- Stars
- 610
- Forks
- 62
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.