diff options
author | Malf Furious <m@lfurio.us> | 2018-10-20 21:49:32 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-20 21:49:32 -0400 |
commit | b690505b0e1e255e5081adcf49c724186bb831c2 (patch) | |
tree | 71195ab44722aa2c6cc03824c2757ad3e209e0e3 | |
parent | b093b3affe3ac6878e2242bff310dc466687a825 (diff) | |
download | scrott-b690505b0e1e255e5081adcf49c724186bb831c2.tar.gz scrott-b690505b0e1e255e5081adcf49c724186bb831c2.zip |
issue: Add assigned timestamp
Diffstat (limited to '')
-rw-r--r-- | app/class/issue.class.php | 2 | ||||
-rw-r--r-- | srvs/mysql.sql | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php index 5d1daec..57fc588 100644 --- a/app/class/issue.class.php +++ b/app/class/issue.class.php @@ -37,6 +37,7 @@ class issue extends obj "seen", "description", "opened", + "assigned", "authored", "closed", "due", @@ -89,6 +90,7 @@ class issue extends obj { $this->seen = 0; $this->assignee = $assignee->guid; + $this->assigned = self::getCurrentTimestamp(); $this->saveObj(); } diff --git a/srvs/mysql.sql b/srvs/mysql.sql index 9f3193b..9bad437 100644 --- a/srvs/mysql.sql +++ b/srvs/mysql.sql @@ -185,6 +185,7 @@ CREATE TABLE issues ( seen int(1) NOT NULL DEFAULT 0, /* has the assignee seen this yet? */ description text NOT NULL, opened varchar(64) NOT NULL DEFAULT '', + assigned varchar(64) NOT NULL DEFAULT '', authored varchar(64) NOT NULL DEFAULT '', closed varchar(64) NOT NULL DEFAULT '', due varchar(64) NOT NULL DEFAULT '', |