diff --git a/composer.json b/composer.json index d6bf685..773087a 100644 --- a/composer.json +++ b/composer.json @@ -38,5 +38,8 @@ ] } }, - "minimum-stability": "dev" -} \ No newline at end of file + "minimum-stability": "dev", + "scripts": { + "test": "./vendor/bin/phpunit tests" + } +} diff --git a/migrations/2014_01_07_073615_create_tags_table.php b/migrations/2014_01_07_073615_create_tags_table.php index 12d922b..1a3a747 100644 --- a/migrations/2014_01_07_073615_create_tags_table.php +++ b/migrations/2014_01_07_073615_create_tags_table.php @@ -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(); diff --git a/migrations/2020_03_13_083515_add_description_to_tags_table.php b/migrations/2020_03_13_083515_add_description_to_tags_table.php new file mode 100644 index 0000000..b11ed68 --- /dev/null +++ b/migrations/2020_03_13_083515_add_description_to_tags_table.php @@ -0,0 +1,23 @@ +text('description')->nullable(); + }); + + } + + + public function down() + { + Schema::table('tags', function ($table) { + $table->dropColumn('description'); + }); + } +}