Migrations: add hasSchema helper method

This commit is contained in:
Thomas Gelf 2016-03-05 17:22:54 +01:00
parent f23c074143
commit ca71bf5420
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ class Migrations
}
}
public function hasSchema()
{
return $this->listPendingMigrations() !== array(0);
}
public function hasPendingMigrations()
{
return $this->countPendingMigrations() > 0;