diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-22 20:58:21 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-22 20:58:21 -0400 |
commit | 40917992e775bd21a280eb267241c452e04e5ade (patch) | |
tree | c1bf82ab83564bc9ca749f026f54342cbd35374f /app/Schema/Sqlite.php | |
parent | 2230dd4e6b148346c0ec596b9e3e12996a762ed8 (diff) |
Add files upload
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r-- | app/Schema/Sqlite.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 0bb4de8d..94ef0316 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -2,7 +2,21 @@ namespace Schema; -const VERSION = 16; +const VERSION = 17; + +function version_17($pdo) +{ + $pdo->exec(" + CREATE TABLE task_has_files ( + id INTEGER PRIMARY KEY, + name TEXT COLLATE NOCASE, + path TEXT, + is_image INTEGER DEFAULT 0, + task_id INTEGER, + FOREIGN KEY(task_id) REFERENCES tasks(id) ON DELETE CASCADE + )" + ); +} function version_16($pdo) { |