Elgg  Version master
20191015125417_set_river_enabled_to_yes.php
Go to the documentation of this file.
1 <?php
2 
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 &#39;yes&#39; for all river items.