Elgg  Version master
20191015125417_set_river_enabled_to_yes.php
Go to the documentation of this file.
1 <?php
2 
3 use Phinx\Migration\AbstractMigration;
4 
5 class SetRiverEnabledToYes extends AbstractMigration {
6 
10  public function up() {
11  $prefix = $this->getAdapter()->getOption('table_prefix');
12 
13  $this->execute("
14  UPDATE {$prefix}river SET enabled = 'yes'
15  WHERE enabled = 'no'
16  ");
17  }
18 }
up()
Set the enabled state to 'yes' for all river items.