A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-db-migrationinterface below:

MigrationInterface, yii\db\MigrationInterface | API Documentation for Yii 2.0

Interface yii\db\MigrationInterface

The MigrationInterface defines the minimum set of methods to be implemented by a database migration.

Each migration class should provide the up() method containing the logic for "upgrading" the database and the down() method for the "downgrading" logic.

Method Details

Hide inherited methods

This method contains the logic to be executed when removing this migration.

The default implementation throws an exception indicating the migration cannot be removed.

public abstract boolean down ( ) return boolean

Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

Source code

This method contains the logic to be executed when applying this migration.

public abstract boolean up ( ) return boolean

Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

Source code


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4