Skip to content

Commit

Permalink
Merge pull request #185 from mateusjunges/feature/short-description
Browse files Browse the repository at this point in the history
Change descritpion field to a new migration
  • Loading branch information
rtconner authored Mar 15, 2020
2 parents 19331f7 + 5127d21 commit fa13edb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
]
}
},
"minimum-stability": "dev"
}
"minimum-stability": "dev",
"scripts": {
"test": "./vendor/bin/phpunit tests"
}
}
1 change: 0 additions & 1 deletion migrations/2014_01_07_073615_create_tags_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public function up()
$table->increments('id');
$table->string('slug', 125)->index();
$table->string('name', 125);
$table->text('description')->nullable();
$table->boolean('suggest')->default(false);
$table->integer('count')->unsigned()->default(0); // count of how many times this tag was used
$table->integer('tag_group_id')->unsigned()->nullable();
Expand Down
23 changes: 23 additions & 0 deletions migrations/2020_03_13_083515_add_description_to_tags_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class AddDescriptionToTagsTable extends Migration {

public function up()
{
Schema::table('tagging_tags', function ($table) {
$table->text('description')->nullable();
});

}


public function down()
{
Schema::table('tagging_tags', function ($table) {
$table->dropColumn('description');
});
}
}

0 comments on commit fa13edb

Please sign in to comment.