Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
yii
db
Migration
safeUp
yii\db\Migration::safeUp PHP Method
Migration Class Documentation
Mostrar archivo
Open project: yiisoft/yii2
safeUp()
public
method
This method differs from
Migration::up
in that the DB logic implemented here will be enclosed within a DB transaction. Child classes may implement this method instead of
Migration::up
if the DB logic needs to be within a transaction.
public
safeUp
( ) :
boolean
return
boolean
return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.
public function safeUp() { }
Migration
addColumn
addCommentOnColumn
addCommentOnTable
addForeignKey
addPrimaryKey
alterColumn
batchInsert
createIndex
createTable
delete
down
dropColumn
dropCommentFromColumn
dropCommentFromTable
dropForeignKey
dropIndex
dropPrimaryKey
dropTable
execute
getDb
init
insert
renameColumn
renameTable
safeDown
safeUp
truncateTable
up
update