Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
schema
migrations
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
}
SetRiverEnabledToYes\up
up()
Set the enabled state to 'yes' for all river items.
Definition:
20191015125417_set_river_enabled_to_yes.php:10
SetRiverEnabledToYes
Definition:
20191015125417_set_river_enabled_to_yes.php:5
AbstractMigration
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11