File modules/cms/update/version/DBVersion000012.class.php
Last commit: Sun Oct 1 02:58:08 2023 +0200 Jan Dankert Refactoring: No it is possible to use 8 byte integers in the database
1 <?php 2 3 namespace cms\update\version; 4 5 use database\DbVersion; 6 use database\Column; 7 8 /** 9 * Objects gets new columns for storing the publish date. 10 * 11 * @author dankert 12 * 13 */ 14 class DBVersion000012 extends DbVersion 15 { 16 /** 17 * 18 */ 19 public function update() 20 { 21 $table = $this->table('object'); 22 $table->column('published_date' )->type(Column::TYPE_INT)->nullable()->add(); 23 $table->column('published_userid')->type(Column::TYPE_INT)->nullable()->add(); 24 $table->addConstraint('published_userid', 'user'); 25 } 26 }
Downloadmodules/cms/update/version/DBVersion000012.class.php
History Sun, 1 Oct 2023 02:58:08 +0200 Jan Dankert Refactoring: No it is possible to use 8 byte integers in the database 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'.