コード例 #1
0
ファイル: Migration.php プロジェクト: natedrake/fast-forward
 /**
  * Returns false when there are no tables at all
  *
  * @return bool
  */
 private function hasTables()
 {
     $sql = 'SELECT COUNT(*) FROM sqlite_master';
     $count = (int) DBA::execute($sql)->fetchColumn();
     return $count !== 0;
 }