Skip to content

Commit

Permalink
Merge pull request #20 from amiryousefi/update-migration-files
Browse files Browse the repository at this point in the history
Update 2020_04_17_160240_create_permission_table.php
  • Loading branch information
amiryousefi authored Nov 11, 2024
2 parents 1d21436 + 2cc2530 commit f1301dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function up()
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropForeign('role_id');
$table->dropForeign(['role_id']);
$table->dropColumn('role_id');
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists('permission');
Schema::dropIfExists('permissions');
}
}

0 comments on commit f1301dd

Please sign in to comment.