2014-01-04 19:35:20 +02:00
|
|
|
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
|
|
|
|
class Migration_Specific_calendar_sync extends CI_Migration {
|
|
|
|
|
|
|
|
public function up() {
|
|
|
|
$fields = array(
|
|
|
|
'google_calendar' => array(
|
|
|
|
'type' => 'VARCHAR',
|
|
|
|
'constraint' => '128',
|
2014-01-04 21:14:24 +02:00
|
|
|
'null' => TRUE)
|
2014-01-04 19:35:20 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
$this->dbforge->add_column('ea_user_settings', $fields);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down() {
|
|
|
|
$this->dbforge->drop_column('ea_user_settings', 'google_calendar');
|
|
|
|
}
|
2014-01-04 21:14:24 +02:00
|
|
|
}
|