summaryrefslogtreecommitdiff
path: root/plugins/Timetrackingeditor/Schema/Mysql.php
blob: 8fda41c7d93815a22fabfca2ee7d1859616df136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Kanboard\Plugin\Timetrackingeditor\Schema;

const VERSION = 2;

function version_2($pdo)
{
  $pdo->exec("ALTER TABLE subtasks add time_billable INT 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 TINYINT");
}