diff options
| author | rzeka <piotr@rzeka.net> | 2014-03-04 20:17:26 +0100 |
|---|---|---|
| committer | rzeka <piotr@rzeka.net> | 2014-03-04 20:17:26 +0100 |
| commit | ccc54c65cf2191e35bd0294c0ffbae761b29f151 (patch) | |
| tree | 98040c247f1a3165c83266ceeccc7b618f6f2303 /models/schema.php | |
| parent | 86bee367846491be2a7f703affc1052318dac63d (diff) | |
Added basic comments on tasks
Diffstat (limited to 'models/schema.php')
| -rw-r--r-- | models/schema.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/models/schema.php b/models/schema.php index f98f0e69..2c3ba7e8 100644 --- a/models/schema.php +++ b/models/schema.php @@ -2,6 +2,21 @@ namespace Schema; +function version_8($pdo) +{ + $pdo->exec( + 'CREATE TABLE comments ( + id INTEGER PRIMARY KEY, + task_id INTEGER, + user_id INTEGER, + date INTEGER, + comment TEXT, + FOREIGN KEY(task_id) REFERENCES tasks(id) ON DELETE CASCADE, + FOREIGN KEY(user_id) REFERENCES tasks(id) ON DELETE CASCADE + )' + ); +} + function version_7($pdo) { $pdo->exec(" |
