Migrations Class

Aurora\Database\Migrations Namespace


Properties

table

Table name

protected $table = 'migration': string

Methods

setup

Setup migrations support

Return Value

  • void

Signature

public function setup(): void

status

Get migration status

Return Value

  • mixed

Signature

public function status()

migrate

Execute pending migrations

Return Value

  • void

Signature

public function migrate(): void

rollback

Rollback applied migrations

Parameters

  • mixed $steps — How many steps to rollback

Return Value

  • void

Signature

public function rollback(mixed $steps): void

Go to top