You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kwpayroll/app/Database/Migrations/2024-09-19-095336_AddWorkDa...

31 lines
614 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddWorkDaysOnEmpPayInfo extends Migration
{
public function up()
{
$fields = [
'work_days' => [
'type' => 'DECIMAL',
'constraint' => '12,4',
'null' => false,
'after' => 'savings_account',
],
];
$this->forge->addColumn('emp_pay_info', $fields);
}
public function down()
{
$fields = [
'work_days',
];
$this->forge->dropColumn('emp_pay_info', $fields);
}
}