PHP Класс UpgradeToBouncer1Dot0, bouncer

Наследование: extends Illuminate\Database\Migrations\Migration
Показать файл Открыть проект

Открытые методы

Метод Описание
down ( ) : void Reverse the migrations.
up ( ) : void Run the migrations.

Защищенные методы

Метод Описание
createNewTables ( ) : void Create the new tables in Bouncer 1.0.
deleteOldTables ( ) : void Delete the old tables that are not in use anymore.
migrateData ( ) : void Migrate the data from the old tables to the new ones.
migrateRoleAbilities ( ) : void Migrate the data from the role_abilities table.
migrateUserAbilities ( ) : void Migrate the data from the user_abilities table.
migrateUserRoles ( ) : void Migrate the data from the user_roles table.
toArray ( array | Collection $list ) : array Convert the given list into an array.
updateIndex ( ) : void Replace the old unique index on the abilities table.

Описание методов

createNewTables() защищенный Метод

Create the new tables in Bouncer 1.0.
protected createNewTables ( ) : void
Результат void

deleteOldTables() защищенный Метод

Delete the old tables that are not in use anymore.
protected deleteOldTables ( ) : void
Результат void

down() публичный Метод

Reverse the migrations.
public down ( ) : void
Результат void

migrateData() защищенный Метод

Migrate the data from the old tables to the new ones.
protected migrateData ( ) : void
Результат void

migrateRoleAbilities() защищенный Метод

Migrate the data from the role_abilities table.
protected migrateRoleAbilities ( ) : void
Результат void

migrateUserAbilities() защищенный Метод

Migrate the data from the user_abilities table.
protected migrateUserAbilities ( ) : void
Результат void

migrateUserRoles() защищенный Метод

Migrate the data from the user_roles table.
protected migrateUserRoles ( ) : void
Результат void

toArray() защищенный Метод

Convert the given list into an array.
protected toArray ( array | Collection $list ) : array
$list array | Illuminate\Support\Collection
Результат array

up() публичный Метод

Run the migrations.
public up ( ) : void
Результат void

updateIndex() защищенный Метод

Replace the old unique index on the abilities table.
protected updateIndex ( ) : void
Результат void