Update besar apk finance
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user