Migrations: add hasSchema helper method
This commit is contained in:
parent
f23c074143
commit
ca71bf5420
|
@ -40,6 +40,11 @@ class Migrations
|
|||
}
|
||||
}
|
||||
|
||||
public function hasSchema()
|
||||
{
|
||||
return $this->listPendingMigrations() !== array(0);
|
||||
}
|
||||
|
||||
public function hasPendingMigrations()
|
||||
{
|
||||
return $this->countPendingMigrations() > 0;
|
||||
|
|
Loading…
Reference in New Issue