Files
wavelog/application/migrations/181_add_h26_bandxuser.php
2024-02-16 23:23:09 +01:00

24 lines
471 B
PHP

<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_add_h26_bandxuser extends CI_Migration
{
public function up()
{
$fields = array(
'h26 TINYINT NOT NULL DEFAULT 1',
);
if (!$this->db->field_exists('h26', 'bandxuser')) {
$this->dbforge->add_column('bandxuser', $fields);
}
}
public function down()
{
if ($this->db->field_exists('h26', 'bandxuser')) {
$this->dbforge->drop_column('bandxuser', 'h26');
}
}
}