Author: Gawain Lynch (gawain.lynch@gmail.com)
Beispiel #1
0
 /**
  * Process a single table alter queries.
  *
  * @param string      $tableName
  * @param array       $tableAlter
  * @param SchemaCheck $response
  */
 protected function alterTable($tableName, array $tableAlter, SchemaCheck $response)
 {
     foreach ($tableAlter as $query) {
         if ($this->runQuery($tableName, $query)) {
             $response->addTitle($tableName, sprintf('Updated `%s` table to match current schema.', $tableName));
         }
     }
 }
Beispiel #2
0
 /**
  * Process a single table alter queries.
  *
  * @param string      $tableName
  * @param array       $tableAlter
  * @param SchemaCheck $response
  */
 protected function alterTable($tableName, array $tableAlter, SchemaCheck $response)
 {
     foreach ($tableAlter as $query) {
         if ($this->runQuery($tableName, $query) === null) {
             // Don't continue processing a table after exception is hit.
             return;
         }
         $response->addTitle($tableName, sprintf('Updated `%s` table to match current schema.', $tableName));
     }
 }