Interface Yiisoft\Db\Migration\TransactionalMigrationInterface
| Extends | Yiisoft\Db\Migration\MigrationInterface |
|---|
Allowing to use transaction in migration.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| up() | This method contains the logic to be executed when applying this migration. | Yiisoft\Db\Migration\MigrationInterface |
Method Details
Defined in: Yiisoft\Db\Migration\MigrationInterface::up()
This method contains the logic to be executed when applying this migration.
The DB logic implemented here will be enclosed within a DB transaction.
Child classes may implement this method instead of {@see \Yiisoft\Db\Migration\up()} if the DB logic needs to be within a transaction.
Note: Not all DBMS support transactions. And some DB queries cannot be put into a transaction. For some examples, please refer to implicit commit.
| public abstract void up ( Yiisoft\Db\Migration\MigrationBuilder $b ) | ||
| $b | Yiisoft\Db\Migration\MigrationBuilder | |
public function up(MigrationBuilder $b): void;
Signup or Login in order to comment.