3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 class AddEntitySoftDeletes extends Migration
16 Schema::table('bookshelves', function(Blueprint $table) {
17 $table->softDeletes();
19 Schema::table('books', function(Blueprint $table) {
20 $table->softDeletes();
22 Schema::table('chapters', function(Blueprint $table) {
23 $table->softDeletes();
25 Schema::table('pages', function(Blueprint $table) {
26 $table->softDeletes();
31 * Reverse the migrations.
35 public function down()
37 Schema::table('bookshelves', function(Blueprint $table) {
38 $table->dropSoftDeletes();
40 Schema::table('books', function(Blueprint $table) {
41 $table->dropSoftDeletes();
43 Schema::table('chapters', function(Blueprint $table) {
44 $table->dropSoftDeletes();
46 Schema::table('pages', function(Blueprint $table) {
47 $table->dropSoftDeletes();