openrat-cms

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

DBVersion000002.class.php (583B)


      1 <?php
      2 use database\DbVersion;
      3 /**
      4  * new table: version.
      5  *
      6  * @author dankert
      7  *
      8  */
      9 class DBVersion000002 extends DbVersion
     10 {
     11 	public function update()
     12 	{
     13 		$this->addTable('version');
     14 
     15 		$this->addColumn('version','version'  ,OR_DB_COLUMN_TYPE_INT,null,null,false);
     16 		$this->addColumn('version','status'   ,OR_DB_COLUMN_TYPE_INT,null,null,false);
     17 		$this->addColumn('version','installed',OR_DB_COLUMN_TYPE_INT,null,null,false);
     18 		
     19 		$this->addPrimaryKey ('version','id'      );
     20 		$this->addIndex      ('version','status'  );
     21 		$this->addUniqueIndex('version','version' );
     22 	}
     23 }
     24 
     25 ?>