Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
schema
migrations
20200130162616_remove_river_enabled_column.php
Go to the documentation of this file.
1
<?php
2
3
use
Phinx\Migration\AbstractMigration
;
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
}
RemoveRiverEnabledColumn
Definition:
20200130162616_remove_river_enabled_column.php:5
RemoveRiverEnabledColumn\change
change()
Removes enabled from river table.
Definition:
20200130162616_remove_river_enabled_column.php:10
$table
$table
Definition:
user.php:37
AbstractMigration
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11