Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Update migration class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nielssp committed May 8, 2016
1 parent 15846f0 commit d84fb5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Migration/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
namespace Jivoo\Data\Migration;

use Jivoo\Data\Database\MigratableDatabase;
use Jivoo\Data\Database\SchemaBuilder;
use Jivoo\Models\DataType;
use Jivoo\Data\DefinitionBuilder;
use Jivoo\Data\DataType;

/**
* Base class for migrations.
Expand Down Expand Up @@ -71,14 +71,14 @@ public function __isset($table)
/**
* Create a table.
*
* @param SchemaBuilder $schema
* @param DefinitionBuilder $definition
* Schema for table.
*/
protected function createTable(DefinitionBuilder $schema)
protected function createTable(DefinitionBuilder $definition)
{
try {
$this->db->createTable($schema);
$this->schema->createTable($schema);
$this->db->createTable($definition);
$this->schema->createTable($definition);
} catch (\Exception $e) {
if (! $this->ignoreExceptions) {
throw $e;
Expand Down

0 comments on commit d84fb5c

Please sign in to comment.