change emp id to dtr emp id in dtr uploading
change emp id to dtr emp id in dtr uploadingpull/46/head
parent
0d77290d4e
commit
d1573e6e46
@ -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