/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('portfolio_projects', function (Blueprint $table) { $table->dropForeign('project_to_account'); $table->dropForeign('project_to_client'); }); Module::where('namespace', 'portfolio')->delete(); }
/** * Reverse the migrations. */ public function down() { Schema::drop('post_translations', function (Blueprint $table) { $table->dropForeign('post_translation_to_post'); }); Schema::drop('posts', function (Blueprint $table) { $table->dropForeign('post_to_user'); }); Module::where('namespace', 'blog')->delete(); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('page_translations', function (Blueprint $table) { $table->dropForeign('page_translation_to_page'); }); Schema::drop('pages', function (Blueprint $table) { $table->dropForeign('page_to_account'); $table->dropForeign('page_to_parent_page'); }); Module::where('namespace', 'pages')->delete(); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('account_team_memberships', function (Blueprint $table) { $table->dropForeign('team_membership_to_team'); $table->dropForeign('team_membership_to_membership'); }); Schema::drop('account_teams_translations', function (Blueprint $table) { $table->dropForeign('translations_to_teams'); }); Schema::drop('account_teams', function (Blueprint $table) { $table->dropForeign('teams_to_accounts'); }); Module::where('namespace', 'team')->delete(); }
/** * Reverse the migrations. * * @return void */ public function down() { Module::where('namespace', 'shop')->delete(); }
/** * Reverse the migrations. */ public function down() { Module::where('namespace', 'marketing')->delete(); }