Skip to content

Commit f1301dd

Browse files
authored
Merge pull request #20 from amiryousefi/update-migration-files
Update 2020_04_17_160240_create_permission_table.php
2 parents 1d21436 + 2cc2530 commit f1301dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Database/migrations/2020_04_17_155932_add_role_id_to_users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function up()
3030
public function down()
3131
{
3232
Schema::table('users', function (Blueprint $table) {
33-
$table->dropForeign('role_id');
33+
$table->dropForeign(['role_id']);
3434
$table->dropColumn('role_id');
3535
});
3636
}

src/Database/migrations/2020_04_17_160240_create_permission_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public function up()
2727
*/
2828
public function down()
2929
{
30-
Schema::dropIfExists('permission');
30+
Schema::dropIfExists('permissions');
3131
}
3232
}

0 commit comments

Comments
 (0)