Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
migrations
m120409_092636_remove_superuser_field.php
1
<?php
2
/**
3
* Gentics Portal.Node PHP
4
* Author & Copyright (c) by Gentics Software GmbH
5
* sales@gentics.com
6
* http://www.gentics.com
7
* Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8
* You must not use this software without a valid license agreement.
9
*/
10
class
m120409_092636_remove_superuser_field
extends
CDbMigration
11
{
12
public
function
up()
13
{
14
try
{
15
$this->dropColumn(
'{{users}}'
,
'superuser'
);
16
}
catch
(Exception $e){}
17
}
18
19
public
function
down()
20
{
21
$this->addColumn(
'{{users}}'
,
'superuser'
,
"boolean NOT NULL DEFAULT '0'"
);
22
$this->createIndex(
'superuser'
,
'{{users}}'
,
'superuser'
,
false
);
23
return
true
;
24
}
25
26
/*
27
// Use safeUp/safeDown to do migration with transaction
28
public function safeUp()
29
{
30
}
31
32
public function safeDown()
33
{
34
}
35
*/
36
}
Generated on Thu Jun 20 2013 14:45:15 for Gentics Portal.Node PHP API by
1.8.1.2