migrations/20131222204549_article_searchable.php
public function up()
    {
		$table = $this->table('article');
		$table->addColumn('searchable', 'boolean', array(
			'comment' => 'Should web crawlers index this?',
			'null' => false,
			'after' => 'hidden',
			'default' => 1,
		))
		->addIndex(array('searchable'))
		->save();

		$this->execute('UPDATE `article` SET searchable = 0 WHERE `id` IN (1378, 1450)');
    }
public function up()
    {
		$table = $this->table('article');
		$table->addColumn('searchable', 'boolean', array(
			'comment' => 'Should web crawlers index this?',
			'null' => false,
			'after' => 'hidden',
			'default' => 1,
		))
		->addIndex(array('searchable'))
		->save();

		$this->execute('UPDATE `article` SET searchable = 0 WHERE `id` IN (1378, 1450)');
    }
public function up ( ) { $ table = $ this -> table ( 'article' ) ; $ table -> addColumn ( 'searchable' , 'boolean' , array ( 'comment' => 'Should web crawlers index this?' , 'null' => false , 'after' => 'hidden' , 'default' => 1 , ) ) -> addIndex ( array ( 'searchable' ) ) -> save ( ) ; $ this -> execute ( 'UPDATE `article` SET searchable = 0 WHERE `id` IN (1378, 1450)' ) ; }
Up Method.
Up Method .