Skip to content

Commit

Permalink
Few small cleanup items
Browse files Browse the repository at this point in the history
  • Loading branch information
rtconner committed Mar 20, 2019
1 parent 29b1910 commit f2eb740
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/tagging.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'untag_on_delete' => true,

// Auto-delete unused tags from the 'tags' database table (when they are used zero times)
'delete_unused_tags' => true,
'delete_unused_tags' => false,

// Model to use to store the tags in the database
'tag_model'=>'\Conner\Tagging\Model\Tag',
Expand Down
1 change: 1 addition & 0 deletions migrations/2016_06_29_073615_update_tags_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function up()

public function down()
{
Schema::disableForeignKeyConstraints();
Schema::table('tagging_tags', function ($table) {
$table->dropForeign('tagging_tags_tag_group_id_foreign');
$table->dropColumn('tag_group_id');
Expand Down
2 changes: 1 addition & 1 deletion src/Taggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public static function untagOnDelete()
*/
public static function shouldDeleteUnused(): bool
{
return config('tagging.delete_unused_tags', true);
return config('tagging.delete_unused_tags', false);
}

/**
Expand Down

0 comments on commit f2eb740

Please sign in to comment.