summaryrefslogtreecommitdiff
path: root/plugins/Timetrackingeditor/Schema/Postgres.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Timetrackingeditor/Schema/Postgres.php')
-rw-r--r--plugins/Timetrackingeditor/Schema/Postgres.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Timetrackingeditor/Schema/Postgres.php b/plugins/Timetrackingeditor/Schema/Postgres.php
new file mode 100644
index 00000000..b735e931
--- /dev/null
+++ b/plugins/Timetrackingeditor/Schema/Postgres.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Kanboard\Plugin\Timetrackingeditor\Schema;
+
+const VERSION = 2;
+
+function vesion_2($pdo)
+{
+ $pdo->exec("ALTER TABLE subtasks add time_billable INTEGER default 0");
+}
+
+function version_1($pdo)
+{
+ $pdo->exec("ALTER TABLE subtask_time_tracking add comment TEXT");
+ $pdo->exec("ALTER TABLE subtask_time_tracking add is_billable BOOLEAN");
+}