Location: PHPKode > projects > Anchor CMS > anchor-cms-0.9.1/anchor/migrations/110_alter_session_date.php
<?php

class Migration_alter_session_date extends Migration {

	public function up() {
		$table = Base::table('sessions');

		if($this->has_table_column($table, 'date')) {
			$sql = 'ALTER TABLE `' . $table . '` CHANGE `date` `expire` int(10) NOT NULL AFTER `id`';
			DB::ask($sql);
		}
	}

	public function down() {}

}
Return current item: Anchor CMS