PHP Class UpgradeToBouncer1Dot0, bouncer

Inheritance: extends Illuminate\Database\Migrations\Migration
Show file Open project: JosephSilber/bouncer

Public Methods

Method Description
down ( ) : void Reverse the migrations.
up ( ) : void Run the migrations.

Protected Methods

Method Description
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.

Method Details

createNewTables() protected method

Create the new tables in Bouncer 1.0.
protected createNewTables ( ) : void
return void

deleteOldTables() protected method

Delete the old tables that are not in use anymore.
protected deleteOldTables ( ) : void
return void

down() public method

Reverse the migrations.
public down ( ) : void
return void

migrateData() protected method

Migrate the data from the old tables to the new ones.
protected migrateData ( ) : void
return void

migrateRoleAbilities() protected method

Migrate the data from the role_abilities table.
protected migrateRoleAbilities ( ) : void
return void

migrateUserAbilities() protected method

Migrate the data from the user_abilities table.
protected migrateUserAbilities ( ) : void
return void

migrateUserRoles() protected method

Migrate the data from the user_roles table.
protected migrateUserRoles ( ) : void
return void

toArray() protected method

Convert the given list into an array.
protected toArray ( array | Collection $list ) : array
$list array | Illuminate\Support\Collection
return array

up() public method

Run the migrations.
public up ( ) : void
return void

updateIndex() protected method

Replace the old unique index on the abilities table.
protected updateIndex ( ) : void
return void