Elgg  Version 5.1
20200130162616_remove_river_enabled_column.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class RemoveRiverEnabledColumn extends AbstractMigration
6 {
10  public function change() {
11 
12  if ($this->hasTable('river')) {
13  $table = $this->table('river');
14 
15  if ($table->hasColumn('enabled')) {
16  $table->removeColumn('enabled');
17  }
18 
19  $table->save();
20  }
21  }
22 }
change()
Removes enabled from river table.
$table
Definition: user.php:37