PHP 클래스 UpgradeToBouncer1Dot0, bouncer

상속: extends Illuminate\Database\Migrations\Migration
파일 보기 프로젝트 열기: JosephSilber/bouncer

공개 메소드들

메소드 설명
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