fix proposals table unable to rollback

This commit is contained in:
2018-08-11 18:50:27 +02:00
parent 20f4694ec4
commit bc960e80aa
@@ -53,6 +53,11 @@ class CreateProposalsTable extends Migration
*/
public function down()
{
// remove the FK
Schema::table('revisions', function (Blueprint $table) {
$table->dropForeign('revisions_proposal_id_foreign');
});
Schema::dropIfExists('proposals');
}
}