Rename user_bids table to bids
This commit is contained in:
@@ -13,7 +13,7 @@ class CreateBidsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_bids', function (Blueprint $table) {
|
||||
Schema::create('bids', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->string('flight_id', \App\Models\Flight::ID_MAX_LENGTH);
|
||||
@@ -31,6 +31,6 @@ class CreateBidsTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_bids');
|
||||
Schema::dropIfExists('bids');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ flight_fields:
|
||||
name: cost index
|
||||
value: 100
|
||||
|
||||
user_bids:
|
||||
bids:
|
||||
- id: 100
|
||||
user_id: 1
|
||||
flight_id: flightid_1
|
||||
|
||||
Reference in New Issue
Block a user