mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
update migration
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ class RenameBookingForeignkeyFromSupplierbookingTable extends Migration
|
|||||||
{
|
{
|
||||||
$table->dropForeign(['book_id']);
|
$table->dropForeign(['book_id']);
|
||||||
$table->dropColumn('book_id');
|
$table->dropColumn('book_id');
|
||||||
$table->integer('booking_id')->unsigned();
|
$table->integer('booking_id')->unsigned()->nullable;
|
||||||
$table->foreign('booking_id')->references('id')->on('bookings');
|
$table->foreign('booking_id')->references('id')->on('bookings');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -26,6 +26,8 @@ class AddBillingFieldToSupplierbookingTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
//
|
Schema::table('supplier_bookings', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('billing_amount');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -26,6 +26,8 @@ class AddSalestaxFieldToSupplierbookingTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
//
|
Schema::table('supplier_bookings', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('salestax_amount');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class AddMarkingToUserTable extends Migration
|
|||||||
{
|
{
|
||||||
Schema::table('users', function($table)
|
Schema::table('users', function($table)
|
||||||
{
|
{
|
||||||
$table->string('marking');
|
$table->string('marking')->nullable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,10 @@ class AddMarkingToUserTable extends Migration
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
//
|
Schema::table('users', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('marking');
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user