PHP Class UpgradeToBouncer1Dot0, bouncer

Inheritance: extends Illuminate\Database\Migrations\Migration
Afficher le fichier Open project: JosephSilber/bouncer

Méthodes publiques

Méthode Description
down ( ) : void Reverse the migrations.
up ( ) : void Run the migrations.

Méthodes protégées

Méthode 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 méthode

Create the new tables in Bouncer 1.0.
protected createNewTables ( ) : void
Résultat void

deleteOldTables() protected méthode

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

down() public méthode

Reverse the migrations.
public down ( ) : void
Résultat void

migrateData() protected méthode

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

migrateRoleAbilities() protected méthode

Migrate the data from the role_abilities table.
protected migrateRoleAbilities ( ) : void
Résultat void

migrateUserAbilities() protected méthode

Migrate the data from the user_abilities table.
protected migrateUserAbilities ( ) : void
Résultat void

migrateUserRoles() protected méthode

Migrate the data from the user_roles table.
protected migrateUserRoles ( ) : void
Résultat void

toArray() protected méthode

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

up() public méthode

Run the migrations.
public up ( ) : void
Résultat void

updateIndex() protected méthode

Replace the old unique index on the abilities table.
protected updateIndex ( ) : void
Résultat void