Skip to content

Commit f2eb740

Browse files
committed
Few small cleanup items
1 parent 29b1910 commit f2eb740

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

config/tagging.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'untag_on_delete' => true,
1919

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

2323
// Model to use to store the tags in the database
2424
'tag_model'=>'\Conner\Tagging\Model\Tag',

migrations/2016_06_29_073615_update_tags_table.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function up()
1717

1818
public function down()
1919
{
20+
Schema::disableForeignKeyConstraints();
2021
Schema::table('tagging_tags', function ($table) {
2122
$table->dropForeign('tagging_tags_tag_group_id_foreign');
2223
$table->dropColumn('tag_group_id');

src/Taggable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public static function untagOnDelete()
376376
*/
377377
public static function shouldDeleteUnused(): bool
378378
{
379-
return config('tagging.delete_unused_tags', true);
379+
return config('tagging.delete_unused_tags', false);
380380
}
381381

382382
/**

0 commit comments

Comments
 (0)