Added import transit migration file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$sql = <<<'SQL'
|
||||||
|
CREATE TABLE import_transits (
|
||||||
|
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
|
||||||
|
|
||||||
|
cri_rfq_number TEXT DEFAULT NULL,
|
||||||
|
mail_received_date DATE DEFAULT NULL,
|
||||||
|
pricol_ref_number TEXT DEFAULT NULL,
|
||||||
|
requester TEXT DEFAULT NULL,
|
||||||
|
shipper TEXT DEFAULT NULL,
|
||||||
|
shipper_location TEXT DEFAULT NULL,
|
||||||
|
shipper_invoice TEXT DEFAULT NULL,
|
||||||
|
shipper_invoice_date DATE DEFAULT NULL,
|
||||||
|
customs_agent_name TEXT DEFAULT NULL,
|
||||||
|
eta_date DATE DEFAULT NULL,
|
||||||
|
status TEXT DEFAULT NULL,
|
||||||
|
delivery_location TEXT DEFAULT NULL,
|
||||||
|
etd_date DATE DEFAULT NULL,
|
||||||
|
mode TEXT DEFAULT NULL,
|
||||||
|
inco_terms TEXT DEFAULT NULL,
|
||||||
|
port_of_loading TEXT DEFAULT NULL,
|
||||||
|
port_of_discharge TEXT DEFAULT NULL,
|
||||||
|
delivery_city TEXT DEFAULT NULL,
|
||||||
|
packages TEXT DEFAULT NULL,
|
||||||
|
type_of_package TEXT DEFAULT NULL,
|
||||||
|
gross_weight TEXT DEFAULT NULL,
|
||||||
|
volume TEXT DEFAULT NULL,
|
||||||
|
bill_number TEXT DEFAULT NULL,
|
||||||
|
bill_received_date DATE DEFAULT NULL,
|
||||||
|
vessel_number TEXT DEFAULT NULL,
|
||||||
|
|
||||||
|
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||||
|
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||||
|
created_by TEXT DEFAULT NULL,
|
||||||
|
updated_by TEXT DEFAULT NULL,
|
||||||
|
deleted_at TIMESTAMP
|
||||||
|
);
|
||||||
|
SQL;
|
||||||
|
DB::statement($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('import_transits');
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user