NOW MANAGED ON CODEBERG
Reverted shift change to old migration
Dan Brown6f75aa9cdcf4
diff --git a/database/migrations/2018_08_04_115700_create_bookshelves_table.php b/database/migrations/2018_08_04_115700_create_bookshelves_table.phpindex 8dc2a72e9..bb1aec95b 100644--- a/database/migrations/2018_08_04_115700_create_bookshelves_table.php+++ b/database/migrations/2018_08_04_115700_create_bookshelves_table.php@@ -2,6 +2,7 @@use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Schema;class CreateBookshelvesTable extends Migration@@ -120,11 +121,11 @@ class CreateBookshelvesTable extends MigrationSchema::dropIfExists('bookshelves');// Drop related polymorphic items- DB::table('activities')->where('entity_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();- DB::table('views')->where('viewable_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();- DB::table('entity_permissions')->where('restrictable_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();- DB::table('tags')->where('entity_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();- DB::table('search_terms')->where('entity_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();- DB::table('comments')->where('entity_type', '=', \BookStack\Entities\Models\Bookshelf::class)->delete();+ DB::table('activities')->where('entity_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();+ DB::table('views')->where('viewable_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();+ DB::table('entity_permissions')->where('restrictable_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();+ DB::table('tags')->where('entity_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();+ DB::table('search_terms')->where('entity_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();+ DB::table('comments')->where('entity_type', '=', 'BookStack\Entities\Models\Bookshelf')->delete();}}