Skip to content

Commit

Permalink
Merge pull request #860 from uasoft-indonesia/hotfix/v2/migrations
Browse files Browse the repository at this point in the history
Update 2022_11_15_081356_add_phone_number_to_badaso_users_table.php
  • Loading branch information
rizkiheryandi authored Jan 18, 2023
2 parents 7e57ffa + 49436e2 commit 394cf54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AddPhoneNumberToBadasoUsersTable extends Migration
*/
public function up()
{
Schema::table('badaso_users', function (Blueprint $table) {
Schema::table(config('badaso.database.prefix').'users', function (Blueprint $table) {
$table->string('phone', 20)->nullable()->after('avatar');
});
}
Expand All @@ -25,7 +25,7 @@ public function up()
*/
public function down()
{
Schema::table('badaso_users', function (Blueprint $table) {
Schema::table(config('badaso.database.prefix').'users', function (Blueprint $table) {
$table->dropColumn('phone');
});
}
Expand Down

0 comments on commit 394cf54

Please sign in to comment.