Merge pull request 'change emp id to dtr emp id in dtr uploading' (#46) from paulcortezl5 into main
Reviewed-on: #46pull/47/head
commit
fc96c9751b
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Database\Migrations;
|
||||||
|
|
||||||
|
use CodeIgniter\Database\Migration;
|
||||||
|
|
||||||
|
class AddDTREmpIDOnEmployee extends Migration
|
||||||
|
{
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = [
|
||||||
|
'dtr_emp_id' => [
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => 25,
|
||||||
|
'null' => true,
|
||||||
|
'after' => 'company_issued_id',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->forge->addColumn('employee', $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$this->forge->dropColumn('employee', 'dtr_emp_id');
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Database\Migrations;
|
||||||
|
|
||||||
|
use CodeIgniter\Database\Migration;
|
||||||
|
|
||||||
|
class RenameCompIssuedIDTodtrempidOnattlogsummary extends Migration
|
||||||
|
{
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = [
|
||||||
|
'company_issued_id' => [
|
||||||
|
'name' => 'dtr_emp_id',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => 25,
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->forge->modifyColumn('att_log_summary', $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$fields = [
|
||||||
|
'dtr_emp_id' => [
|
||||||
|
'name' => 'company_issued_id',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => 25,
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->forge->modifyColumn('att_log_summary', $fields);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Database\Migrations;
|
||||||
|
|
||||||
|
use CodeIgniter\Database\Migration;
|
||||||
|
|
||||||
|
class RenameCompIssuedIDTodtrempidOnrawattlog extends Migration
|
||||||
|
{
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = [
|
||||||
|
'company_issued_id' => [
|
||||||
|
'name' => 'dtr_emp_id',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => 25,
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->forge->modifyColumn('raw_att_log', $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$fields = [
|
||||||
|
'dtr_emp_id' => [
|
||||||
|
'name' => 'company_issued_id',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => 25,
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->forge->modifyColumn('raw_att_log', $fields);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue