diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-11-16 10:04:03 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-11-16 10:04:03 +0100 |
| commit | 1e336ff6e808aed1cbace1fd13f6857d45447ef6 (patch) | |
| tree | 2b863149580aa7349d59112a61cfcb3cb22d904d /sql | |
| parent | 900c967912064f5b9363de0f1ee7130dce2a0cd2 (diff) | |
Add every "NOT NULL" needed int SQL init script
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/init.sql | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/init.sql b/sql/init.sql index 259a591..11aa59e 100644 --- a/sql/init.sql +++ b/sql/init.sql @@ -1,20 +1,20 @@ CREATE TABLE tags ( id integer NOT NULL PRIMARY KEY, - name varchar(255), + name varchar(255) NOT NULL, description text ); CREATE TABLE files ( id integer NOT NULL PRIMARY KEY, - canonical_name varchar(255), - full_name varchar(255), + canonical_name varchar(255) NOT NULL, + full_name varchar(255) NOT NULL, description text, - date varchar(255) + date varchar(255) NOT NULL ); CREATE TABLE file_tags ( - file integer, - tag integer, + file integer NOT NULL, + tag integer NOT NULL, FOREIGN KEY(file) REFERENCES files(id), FOREIGN KEY(tag) REFERENCES tags(id) ); |
