PHP Classes

File: Schema/Mysql.php

Recommend this page to a friend!
  Classes of kiran   Kanboard Subtask Date   Schema/Mysql.php   Download  
File: Schema/Mysql.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Kanboard Subtask Date
Kanboard plugin to add due date to sub-tasks
Author: By
Last change:
Date: 3 years ago
Size: 197 bytes
 

Contents

Class file image Download
<?php

namespace Kanboard\Plugin\Subtaskdate\Schema;

use
PDO;

const
VERSION = 1;

function
version_1(PDO $pdo)
{
   
$pdo->exec("ALTER TABLE `subtasks` ADD COLUMN `due_date` INT DEFAULT '0'");
}