mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
update database to be strict and fix migration
This commit is contained in:
@@ -17,7 +17,7 @@ class CreateSettingSuppliersTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->string('company_name');
|
||||
$table->string('gst_no');
|
||||
$table->string('supplier_reg_no');
|
||||
$table->string('supplier_reg_no')->nullable();
|
||||
$table->string('bank_name');
|
||||
$table->string('acc_no');
|
||||
$table->timestamps();
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class AddBookingidForeignkeyToChinabankslipTable extends Migration
|
||||
{
|
||||
Schema::table('china_bank_slips', function($table)
|
||||
{
|
||||
$table->integer('booking_id')->unsigned();
|
||||
$table->integer('booking_id')->unsigned()->nullable();
|
||||
$table->foreign('booking_id')->references('id')->on('bookings');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user