19 lines
603 B
PHP
19 lines
603 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
/** Metadata awal visibilitas akun; belum diterapkan ke permission maupun laporan. */
|
|
class Migration_Add_account_hidden_metadata extends CI_Migration
|
|
{
|
|
public function up()
|
|
{
|
|
if($this->db->table_exists('accounts')&&!$this->db->field_exists('is_hidden','accounts')){
|
|
$this->db->query('ALTER TABLE accounts ADD is_hidden TINYINT(1) NOT NULL DEFAULT 0 AFTER is_active');
|
|
}
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
// Metadata tidak dihapus agar konfigurasi visibilitas tidak hilang.
|
|
}
|
|
}
|