diff --git a/app/Models/Company.php b/app/Models/Company.php index c6a2b5d7f080..1af881b9ed00 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -125,7 +125,7 @@ class Company extends BaseModel */ public function company_gateways() { - return $this->hasMany(CompanyGateway::class)->orderBy('sort_id','ASC'); + return $this->hasMany(CompanyGateway::class)->orderBy('priority_id','ASC'); } /** diff --git a/database/migrations/2014_10_13_000000_create_users_table.php b/database/migrations/2014_10_13_000000_create_users_table.php index 9baf4b020473..d57cd07a8314 100644 --- a/database/migrations/2014_10_13_000000_create_users_table.php +++ b/database/migrations/2014_10_13_000000_create_users_table.php @@ -359,7 +359,7 @@ class CreateUsersTable extends Migration $table->boolean('show_shipping_address')->default(true)->nullable(); $table->boolean('update_details')->default(false)->nullable(); $table->text('config'); - $table->unsignedInteger('sort_id')->default(0); + $table->unsignedInteger('priority_id')->default(0); $table->decimal('min_limit', 13, 2)->nullable(); $table->decimal('max_limit', 13, 2)->nullable();