openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

DBVersion000012.class.php (540B)


      1 <?php
      2 
      3 use database\DbVersion;
      4 use security\Password;
      5 
      6 /**
      7  * Objects gets new columns for storing the publish date.
      8  *
      9  * @author dankert
     10  *
     11  */
     12 class DBVersion000012 extends DbVersion
     13 {
     14     /**
     15      *
     16      */
     17     public function update()
     18     {
     19         $this->addColumn('object','published_date'  ,OR_DB_COLUMN_TYPE_INT,0,null,OR_DB_COLUMN_NULLABLE);
     20         $this->addColumn('object','published_userid',OR_DB_COLUMN_TYPE_INT,0,null,OR_DB_COLUMN_NULLABLE);
     21         $this->addConstraint('object','published_userid','user','id');
     22     }
     23 }
     24 
     25 ?>