Skip to content
Snippets Groups Projects
Commit 56d8d054 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#43 La til lengde-constraint på Word

parent e7faa122
No related branches found
No related tags found
1 merge request!31#42 og #43 Kodebok-GUI
......@@ -11,7 +11,8 @@ DBPATH = os.path.join(CURDIR, DBNAME)
# DDL-statements for creating tables
CODEBOOK = "CREATE TABLE CodeBook" \
"(Word VARCHAR PRIMARY KEY NOT NULL, Category VARCHAR, " \
"(Word VARCHAR PRIMARY KEY NOT NULL CHECK(length(Word) > 0), " \
"Category VARCHAR, " \
"Type VARCHAR DEFAULT 'Stor' CHECK(Type='Stor' OR Type='Liten'), " \
"Code VARCHAR UNIQUE)"
CATEGORYWORDS = "CREATE TABLE CategoryWords" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment