File modules/cms/update/version/DBVersion000002.class.php
Last commit: Wed Jul 7 22:29:06 2021 +0200 Jan Dankert Refactoring: Split values and content, new table "content".
1 <?php 2 3 namespace cms\update\version; 4 5 use database\DbVersion; 6 use database\Column; 7 8 /** 9 * new table: version. 10 * 11 * @author dankert 12 * 13 */ 14 class DBVersion000002 extends DbVersion 15 { 16 public function update() 17 { 18 $table = $this->table('version')->add(); 19 20 $table->column('version' )->type(Column::TYPE_INT)->add(); 21 $table->column('status' )->type(Column::TYPE_INT)->add(); 22 $table->column('installed')->type(Column::TYPE_INT)->add(); 23 24 $table->addPrimaryKey (); 25 $table->addIndex ('status'); 26 $table->addUniqueIndex('version'); 27 } 28 }
Downloadmodules/cms/update/version/DBVersion000002.class.php
History Wed, 7 Jul 2021 22:29:06 +0200 Jan Dankert Refactoring: Split values and content, new table "content". 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'.