summaryrefslogtreecommitdiff
path: root/src/Database/Migration/Migrate.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Database/Migration/Migrate.php')
-rw-r--r--src/Database/Migration/Migrate.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Database/Migration/Migrate.php b/src/Database/Migration/Migrate.php
index 3a08bb6e..cec8bc4a 100644
--- a/src/Database/Migration/Migrate.php
+++ b/src/Database/Migration/Migrate.php
@@ -18,7 +18,7 @@ class Migrate
protected $app;
/** @var SchemaBuilder */
- protected $scheme;
+ protected $schema;
/** @var callable */
protected $output;
@@ -29,13 +29,13 @@ class Migrate
/**
* Migrate constructor
*
- * @param SchemaBuilder $scheme
+ * @param SchemaBuilder $schema
* @param Application $app
*/
- public function __construct(SchemaBuilder $scheme, Application $app)
+ public function __construct(SchemaBuilder $schema, Application $app)
{
$this->app = $app;
- $this->scheme = $scheme;
+ $this->schema = $schema;
$this->output = function () { };
}
@@ -160,11 +160,11 @@ class Migrate
*/
protected function initMigration()
{
- if ($this->scheme->hasTable($this->table)) {
+ if ($this->schema->hasTable($this->table)) {
return;
}
- $this->scheme->create($this->table, function (Blueprint $table) {
+ $this->schema->create($this->table, function (Blueprint $table) {
$table->increments('id');
$table->string('migration');
});
@@ -177,7 +177,7 @@ class Migrate
*/
protected function getTableQuery()
{
- return $this->scheme->getConnection()->table($this->table);
+ return $this->schema->getConnection()->table($this->table);
}
/**