Files
accounting_dev_v2/application/migrations/20260911000400_add_technician_document_location.php
T
2026-09-11 16:03:00 +07:00

8 lines
619 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_Add_technician_document_location extends CI_Migration
{
public function up(){if($this->db->table_exists('technician_equipment_documents')&&!$this->db->field_exists('installation_location','technician_equipment_documents')){$this->load->dbforge();$this->dbforge->add_column('technician_equipment_documents',array('installation_location'=>array('type'=>'VARCHAR','constraint'=>255,'null'=>true,'after'=>'work_order_no')));}}
public function down(){throw new RuntimeException('Lokasi pemasangan dipertahankan untuk audit.');}
}