Skip to content

NOT NULL constraints for DB #962

@ethantkoenig

Description

@ethantkoenig

A lot of database fields that conceptually should always be populated do not have NOT NULL constraints. For instance, the num_stars, num_forks, num_watches, etc. fields in the repository table do not have NOT NULL constraints. This is problematic, because if those columns have null entries, increment/decrement operations will have no effect.

Is there a reason that these columns don't have NOT NULL constraints?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions