File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
'untag_on_delete ' => true ,
19
19
20
20
// 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 ,
22
22
23
23
// Model to use to store the tags in the database
24
24
'tag_model ' =>'\Conner\Tagging\Model\Tag ' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public function up()
17
17
18
18
public function down ()
19
19
{
20
+ Schema::disableForeignKeyConstraints ();
20
21
Schema::table ('tagging_tags ' , function ($ table ) {
21
22
$ table ->dropForeign ('tagging_tags_tag_group_id_foreign ' );
22
23
$ table ->dropColumn ('tag_group_id ' );
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ public static function untagOnDelete()
376
376
*/
377
377
public static function shouldDeleteUnused (): bool
378
378
{
379
- return config ('tagging.delete_unused_tags ' , true );
379
+ return config ('tagging.delete_unused_tags ' , false );
380
380
}
381
381
382
382
/**
You can’t perform that action at this time.
0 commit comments