prework
This commit is contained in:
parent
a0dee0f351
commit
6772bbed3f
@ -41,7 +41,6 @@ class CreatePVTables extends Migration {
|
|||||||
$this->forge->addField([
|
$this->forge->addField([
|
||||||
'PVADTID' => ['type' => 'INT', 'unsigned' => true, 'auto_increment' => true],
|
'PVADTID' => ['type' => 'INT', 'unsigned' => true, 'auto_increment' => true],
|
||||||
'InternalPVID'=> ['type' => 'INT', 'null' => true],
|
'InternalPVID'=> ['type' => 'INT', 'null' => true],
|
||||||
'Sequence' => ['type' => 'INT', 'null' => true],
|
|
||||||
'ADTCode' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
'ADTCode' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
||||||
'LocationID' => ['type' => 'INT', 'constraint' => 11, 'null' => true],
|
'LocationID' => ['type' => 'INT', 'constraint' => 11, 'null' => true],
|
||||||
'AttDoc' => ['type' => 'INT', 'constraint' => 11, 'null' => true],
|
'AttDoc' => ['type' => 'INT', 'constraint' => 11, 'null' => true],
|
||||||
|
|||||||
@ -83,14 +83,14 @@ class DummySeeder extends Seeder {
|
|||||||
$this->db->table('patvisit')->insertBatch($data);
|
$this->db->table('patvisit')->insertBatch($data);
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
['InternalPVID'=>1, "Sequence"=>1, "ADTCode"=>"X01", "LocationID"=>1, "AttDoc"=>null, "CreateDate"=>"$now"],
|
['InternalPVID'=>1, "ADTCode"=>"X01", "LocationID"=>1, "AttDoc"=>null, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>1, "Sequence"=>2, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>1, "CreateDate"=>"$now"],
|
['InternalPVID'=>1, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>1, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>1, "Sequence"=>3, "ADTCode"=>"X01", "LocationID"=>2, "AttDoc"=>null, "CreateDate"=>"$now"],
|
['InternalPVID'=>1, "ADTCode"=>"X01", "LocationID"=>2, "AttDoc"=>null, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>1, "Sequence"=>4, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>2, "CreateDate"=>"$now"],
|
['InternalPVID'=>1, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>2, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>2, "Sequence"=>1, "ADTCode"=>"X01", "LocationID"=>1, "AttDoc"=>null, "CreateDate"=>"$now"],
|
['InternalPVID'=>2, "ADTCode"=>"X01", "LocationID"=>1, "AttDoc"=>null, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>2, "Sequence"=>2, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>1, "CreateDate"=>"$now"],
|
['InternalPVID'=>2, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>1, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>2, "Sequence"=>3, "ADTCode"=>"X01", "LocationID"=>2, "AttDoc"=>null, "CreateDate"=>"$now"],
|
['InternalPVID'=>2, "ADTCode"=>"X01", "LocationID"=>2, "AttDoc"=>null, "CreateDate"=>"$now"],
|
||||||
['InternalPVID'=>2, "Sequence"=>4, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>2, "CreateDate"=>"$now"],
|
['InternalPVID'=>2, "ADTCode"=>"X02", "LocationID"=>null, "AttDoc"=>2, "CreateDate"=>"$now"],
|
||||||
];
|
];
|
||||||
$this->db->table('patvisitadt')->insertBatch($data);
|
$this->db->table('patvisitadt')->insertBatch($data);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user