File modules/cms/update/version/DBVersion000004.class.php
Last commit: Fri Sep 25 01:00:58 2020 +0200 Jan Dankert Refactoring: More OO in the database updater :)
1 <?php 2 3 namespace cms\update\version; 4 5 use database\DbVersion; 6 use database\Column; 7 8 /** 9 * Add Columns for user language and user timezone. 10 * 11 * @author dankert 12 * 13 */ 14 class DBVersion000004 extends DbVersion 15 { 16 public function update() 17 { 18 // Add user language 19 $table = $this->table('user'); 20 21 $table->column('language')->type(Column::TYPE_VARCHAR)->size( 2)->nullable()->add(); 22 23 // Add user timezone 24 $table->column('timezone')->type(Column::TYPE_VARCHAR)->size(64)->nullable()->add(); 25 26 } 27 }
Downloadmodules/cms/update/version/DBVersion000004.class.php
History Fri, 25 Sep 2020 01:00:58 +0200 Jan Dankert Refactoring: More OO in the database updater :) Sun, 23 Feb 2020 00:30:10 +0100 Jan Dankert Refactoring: Namespacing for module 'database-update', now called 'cms\update'.