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

class Migration_alter_comments_status extends Migration {

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

		if($this->has_table($table)) {
			$sql = 'ALTER TABLE `' . $table . '` CHANGE `status` `status` enum(\'pending\',\'approved\',\'spam\') NOT NULL AFTER `post`';
			DB::ask($sql);
		}
	}

	public function down() {}

}
Return current item: Anchor CMS