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

class Migration_alter_users_password extends Migration {

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

		if($this->has_table_column($table, 'password')) {
			$sql = 'ALTER TABLE `' . $table . '` CHANGE `password` `password` text NOT NULL AFTER `username`';
			DB::ask($sql);
		}
	}

	public function down() {}

}
Return current item: Anchor CMS