Skip to content

Commit

Permalink
更新命名错误 scheme => schema #2488
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Jan 4, 2017
1 parent ca22221 commit 35a6c72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Migration/V20161120150627CreateNavsTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class V20161120150627CreateNavsTables extends BaseMigration
*/
public function up()
{
$this->scheme->table('navs')
$this->schema->table('navs')
->id()
->int('appId')
->string('type', 16)->comment('导航的类型')
Expand All @@ -27,7 +27,7 @@ public function up()
->int('updateUser')
->exec();

$this->scheme->table('navLinks')
$this->schema->table('navLinks')
->id()
->int('navId')
->int('parentId')->comment('父链接编号')
Expand All @@ -54,7 +54,7 @@ public function up()
*/
public function down()
{
$this->scheme->dropIfExists('navs');
$this->scheme->dropIfExists('navLinks');
$this->schema->dropIfExists('navs');
$this->schema->dropIfExists('navLinks');
}
}

0 comments on commit 35a6c72

Please sign in to comment.