Skip to content

[Database] NOT NULL / NULL Constraints #34

Description

@Daandamhuis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions