Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
yii
db
Migration
safeDown
yii\db\Migration::safeDown PHP Method
Migration Class Documentation
Exibir arquivo
Open project: yiisoft/yii2
safeDown()
public
method
This method differs from
Migration::down
in that the DB logic implemented here will be enclosed within a DB transaction. Child classes may implement this method instead of
Migration::down
if the DB logic needs to be within a transaction.
public
safeDown
( ) :
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 safeDown() { }
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