openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

DBVersion000026.class.php (381B)


      1 <?php
      2 
      3 namespace cms\update\version;
      4 
      5 use database\DbVersion;
      6 use database\Column;
      7 
      8 /**
      9  * Templates now have a type.
     10  *
     11  * @author Jan Dankert
     12  *
     13  */
     14 class DBVersion000026 extends DbVersion
     15 {
     16     /**
     17      *
     18      */
     19     public function update() {
     20 
     21 		$templateTable = $this->table('template');
     22 		$templateTable->column('type')->type( Column::TYPE_INT)->defaultValue(1 )->add();
     23 	}
     24 }