File modules/cms/update/version/DBVersion000026.class.php
Last commit: Sat Feb 20 01:34:41 2021 +0100 Jan Dankert New: Publish-switch for templates.
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 }
Downloadmodules/cms/update/version/DBVersion000026.class.php
History Sat, 20 Feb 2021 01:34:41 +0100 Jan Dankert New: Publish-switch for templates.