fix proposals table unable to rollback

pull/35/head
Ondřej Hruška 6 years ago
parent 20f4694ec4
commit bc960e80aa
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      database/migrations/2018_07_08_194000_create_proposals_table.php

@ -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');
}
}

Loading…
Cancel
Save