-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.5.0: Made column changes to be one per migration to support sqlite
- Fixed bug causing seeding to not work
- Loading branch information
Ben Freke
committed
Apr 30, 2017
1 parent
c4a3bc8
commit cb71d83
Showing
5 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php namespace BenFreke\MenuManager\Updates; | ||
|
||
use Schema; | ||
use October\Rain\Database\Updates\Migration; | ||
|
||
class AddEnabledParametersQueryFields1 extends Migration | ||
{ | ||
|
||
public function up() | ||
{ | ||
Schema::table('benfreke_menumanager_menus', function($table) | ||
{ | ||
$table->integer('enabled')->default(1); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::table('benfreke_menumanager_menus', function($table) | ||
{ | ||
$table->dropColumn('enabled'); | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php namespace BenFreke\MenuManager\Updates; | ||
|
||
use Schema; | ||
use October\Rain\Database\Updates\Migration; | ||
|
||
class AddEnabledParametersQueryFields2 extends Migration | ||
{ | ||
|
||
public function up() | ||
{ | ||
Schema::table('benfreke_menumanager_menus', function($table) | ||
{ | ||
$table->string('parameters')->nullable(); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::table('benfreke_menumanager_menus', function($table) | ||
{ | ||
$table->dropColumn('parameters'); | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters