From 23fc9e18462af2d5bb0ac82f4d4554d77834b3be Mon Sep 17 00:00:00 2001 From: "alextselegidis@gmail.com" Date: Sat, 4 Jan 2014 17:35:20 +0000 Subject: [PATCH] add migration file --- .../migrations/001_specific_calendar_sync.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/application/migrations/001_specific_calendar_sync.php diff --git a/src/application/migrations/001_specific_calendar_sync.php b/src/application/migrations/001_specific_calendar_sync.php new file mode 100644 index 00000000..f5fec4fd --- /dev/null +++ b/src/application/migrations/001_specific_calendar_sync.php @@ -0,0 +1,25 @@ + 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. + */ \ No newline at end of file