Merge pull request #943 from kerrickstaley/patch-1

Add comment explaining why sfld column has type integer
This commit is contained in:
Damien Elmes 2021-01-25 20:44:50 +10:00 committed by GitHub
commit 110a481a24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -73,6 +73,8 @@ rye761 <ryebread761@gmail.com>
Guillem Palau Salvà <guillempalausalva@gmail.com>
Meredith Derecho <meredithderecho@gmail.com>
Daniel Wallgren <github.com/wallgrenen>
Kerrick Staley <kerrick@kerrickstaley.com>
********************
The text of the 3 clause BSD license follows:

View file

@ -21,6 +21,8 @@ CREATE TABLE notes (
usn integer NOT NULL,
tags text NOT NULL,
flds text NOT NULL,
-- The use of type integer for sfld is deliberate, because it means that integer values in this
-- field will sort numerically.
sfld integer NOT NULL,
csum integer NOT NULL,
flags integer NOT NULL,