yesodweb / yesodweb/persistent

Sqlite CHECKs

Open
#1,562 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
486
Forks
306
PR merge metrics
No merged PRs in 30d

Description

I'd really like to add some CHECKs in the database table definitions.
See section 3.7 here: https://www.sqlite.org/lang_createtable.html

To also solve #1542 in one go, just some verbatim property verbatim that is spliced into the migration would be enough.

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.

Research direction

Start with SQLite's CREATE TABLE CHECK constraint documentation linked in the issue, then trace the repository's database table-definition and migration entry points. Determine how CHECK expressions and a verbatim migration property should be represented, and verify that both this request and #1542 are covered across the supported migration path.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, sqlite
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.