Files
wavelog/application/migrations/183_jcc_bandxuser.php
2024-02-23 22:38:03 +01:00

24 lines
467 B
PHP

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