mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add migration for sig and sig_info fields
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_add_signature_to_station_profile extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'station_sig varchar(50) DEFAULT NULL',
|
||||
'station_sig_info varchar(50) DEFAULT NULL',
|
||||
);
|
||||
|
||||
$this->dbforge->add_column('station_profile', $fields);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dbforge->drop_column('station_profile', 'station_sig');
|
||||
$this->dbforge->drop_column('station_profile', 'station_sig_info');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user