Files
wavelog/application/migrations/195_add_clublog_ignore.php
2024-04-21 16:42:57 +02:00

25 lines
562 B
PHP

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