Bolt\Storage\Database\Schema\SchemaCheck::addTitle PHP Method

addTitle() public method

Add title message.
public addTitle ( string $tableName, string $title )
$tableName string
$title string
    public function addTitle($tableName, $title)
    {
        $this->pending[$tableName] = true;
        $this->titles[$tableName] = $title;
    }

Usage Example

Esempio n. 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));
         }
     }
 }
All Usage Examples Of Bolt\Storage\Database\Schema\SchemaCheck::addTitle