Skip to content

Commit

Permalink
Merge pull request #120 from franzose/3.x
Browse files Browse the repository at this point in the history
fixed #115
  • Loading branch information
franzose committed May 18, 2014
2 parents 4d8b1f1 + 0b6cede commit 4a3929e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ class {{closure_class}} extends Migration {

public function up()
{
Schema::table('{{closure_table}}', function(Blueprint $table){
Schema::table('{{closure_table}}', function(Blueprint $table)
{
$table->engine = 'InnoDB';
Schema::create('{{closure_table}}', function(Blueprint $t){

Schema::create('{{closure_table}}', function(Blueprint $t)
{
$t->increments('ctid');

$t->integer('ancestor', false, true);
Expand All @@ -27,6 +30,6 @@ public function down()
Schema::table('{{closure_table}}', function(Blueprint $table)
{
Schema::dropIfExists('{{closure_table}}');
}
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ class {{entity_class}} extends Migration {

public function up()
{
Schema::table('{{entity_table}}', function(Blueprint $table){
Schema::table('{{entity_table}}', function(Blueprint $table)
{
$table->engine = 'InnoDB';
Schema::create('{{entity_table}}', function(Blueprint $t){

Schema::create('{{entity_table}}', function(Blueprint $t)
{
$t->increments('id');
$t->integer('parent_id')->unsigned()->nullable();
$t->integer('position', false, true);
Expand Down

0 comments on commit 4a3929e

Please sign in to comment.