mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
clublogignore in database
This commit is contained in:
@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
||||
|
|
||||
*/
|
||||
|
||||
$config['migration_version'] = 194;
|
||||
$config['migration_version'] = 195;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
24
application/migrations/195_add_clublog_ignore.php
Normal file
24
application/migrations/195_add_clublog_ignore.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user