mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
add migration file
This commit is contained in:
parent
7ac98c1e8d
commit
23fc9e1846
1 changed files with 25 additions and 0 deletions
25
src/application/migrations/001_specific_calendar_sync.php
Normal file
25
src/application/migrations/001_specific_calendar_sync.php
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<?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',
|
||||||
|
'default' => 'null')
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->dbforge->add_column('ea_user_settings', $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down() {
|
||||||
|
$this->dbforge->drop_column('ea_user_settings', 'google_calendar');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This migration class adds the "google_calendar" field to the database
|
||||||
|
* "user_settings" table in order to be able to select a specific calendar
|
||||||
|
* for google synchronization.
|
||||||
|
*/
|
Loading…
Reference in a new issue