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

class Migration_alter_comments_date extends Migration {

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

		if($this->has_table($table)) {
			$sql = 'ALTER TABLE `' . $table . '` CHANGE `date` `date` datetime NOT NULL AFTER `status`';
			DB::ask($sql);
		}
	}

	public function down() {}

}
Return current item: Anchor CMS