Skip to content

feat(schema): improve constraints support #6

@graduenz

Description

@graduenz

Context

Right now, ormshift only supports creating primary keys besides the table columns. To be considered production-ready, it would be a good idea to start supporting other types of constraints.

Requirements

Start supporting more constraint types, improving the schema features and changing the DDL generators.

Table level:

  • Primary keys (already supported)
  • Foreign keys
  • Unique keys

Column level:

  • Not null (already supported)
  • Checks
  • Default values

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions