microsoft / microsoft/rayfin

[Database] NOT NULL / NULL Constraints

Open
#34 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.