--- /dev/null
+<?php
+/**
+ * Adds url field
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeResourceEmail extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $t = $this->_connection->table('kronolith_resources');
+ $cols = $t->getColumns();
+ if (!in_array('resource_email', array_keys($cols))) {
+ $this->addColumn('kronolith_resources', 'resource_email', 'string', array('limit' => 255));
+ }
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->removeColumn('kronolith_resources', 'resource_email');
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds url field
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeResourceEmail extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $t = $this->_connection->table('kronolith_resources');
- $cols = $t->getColumns();
- if (!in_array('resource_email', array_keys($cols))) {
- $this->addColumn('kronolith_resources', 'resource_email', 'string', array('limit' => 255));
- }
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->removeColumn('kronolith_resources', 'resource_email');
- }
-
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Adds url field
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeAddZoom extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $t = $this->_connection->table('kronolith_events_geo');
+ $cols = $t->getColumns();
+ if (!in_array('event_zoom', array_keys($cols))) {
+ $this->addColumn('kronolith_events_geo', 'event_zoom', 'integer', array('default' => 0, 'null' => false));
+ }
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->removeColumn('kronolith_events_geo', 'event_zoom');
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds url field
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeAddZoom extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $t = $this->_connection->table('kronolith_events_geo');
- $cols = $t->getColumns();
- if (!in_array('event_zoom', array_keys($cols))) {
- $this->addColumn('kronolith_events_geo', 'event_zoom', 'integer', array('default' => 0, 'null' => false));
- }
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->removeColumn('kronolith_events_geo', 'event_zoom');
- }
-
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Adds url field
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeSystemShares extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $this->changeColumn('kronolith_shares', 'share_owner', 'string', array('limit' => 255));
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->changeColumn('kronolith_shares', 'share_owner', 'string', array('limit' => 255, 'null' => false));
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds url field
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeSystemShares extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $this->changeColumn('kronolith_shares', 'share_owner', 'string', array('limit' => 255));
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->changeColumn('kronolith_shares', 'share_owner', 'string', array('limit' => 255, 'null' => false));
- }
-
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Adds resource table.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeAddResources extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $tableList = $this->tables();
+ if (!in_array('kronolith_resources', $tableList)) {
+ $t = $this->createTable('kronolith_resources', array('primaryKey' => false));
+ $t->column('resource_id', 'integer', array('null' => false));
+ $t->column('resource_name', 'string', array('limit' => 255));
+ $t->column('resource_calendar', 'string', array('limit' => 255));
+ $t->column('resource_description', 'text');
+ $t->column('resource_response_type', 'integer', array('default' => 0));
+ $t->column('resource_type', 'string', array('limit' => 255, 'null' => false));
+ $t->column('resource_members', 'text');
+ $t->primaryKey(array('resource_id'));
+ $t->end();
+
+ $this->addIndex('kronolith_resources', 'resource_calendar');
+ $this->addIndex('kronolith_resources', 'resource_type');
+ }
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->dropTable('kronolith_resources');
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds resource table.
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeAddResources extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $tableList = $this->tables();
- if (!in_array('kronolith_resources', $tableList)) {
- $t = $this->createTable('kronolith_resources', array('primaryKey' => false));
- $t->column('resource_id', 'integer', array('null' => false));
- $t->column('resource_name', 'string', array('limit' => 255));
- $t->column('resource_calendar', 'string', array('limit' => 255));
- $t->column('resource_description', 'text');
- $t->column('resource_response_type', 'integer', array('default' => 0));
- $t->column('resource_type', 'string', array('limit' => 255, 'null' => false));
- $t->column('resource_members', 'text');
- $t->primaryKey(array('resource_id'));
- $t->end();
-
- $this->addIndex('kronolith_resources', 'resource_calendar');
- $this->addIndex('kronolith_resources', 'resource_type');
- }
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->dropTable('kronolith_resources');
- }
-
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Adds geospatial data table for NON-MYSQL SPATIAL EXTENSIONS ONLY.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeAddGeo extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $tableList = $this->tables();
+ if (!in_array('kronolith_events_geo', $tableList)) {
+ $t = $this->createTable('kronolith_events_geo', array('primaryKey' => false));
+ $t->column('event_id', 'string', array('limit' => 32, 'null' => false));
+ $t->column('event_lat', 'string', array('limit' => 32, 'null' => false));
+ $t->column('event_lon', 'string', array('limit' => 32, 'null' => false));
+ $t->primaryKey(array('event_id'));
+ $t->end();
+ }
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->dropTable('kronolith_events_geo');
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds geospatial data table for NON-MYSQL SPATIAL EXTENSIONS ONLY.
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeAddGeo extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $tableList = $this->tables();
- if (!in_array('kronolith_events_geo', $tableList)) {
- $t = $this->createTable('kronolith_events_geo', array('primaryKey' => false));
- $t->column('event_id', 'string', array('limit' => 32, 'null' => false));
- $t->column('event_lat', 'string', array('limit' => 32, 'null' => false));
- $t->column('event_lon', 'string', array('limit' => 32, 'null' => false));
- $t->primaryKey(array('event_id'));
- $t->end();
- }
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->dropTable('kronolith_events_geo');
- }
-
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Adds url field
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael J. Rubinsky <mrubinsk@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Kronolith
+ */
+class KronolithUpgradeAddUrl extends Horde_Db_Migration_Base
+{
+ /**
+ * Upgrade.
+ */
+ public function up()
+ {
+ $t = $this->_connection->table('kronolith_events');
+ $cols = $t->getColumns();
+ if (!in_array('event_url', array_keys($cols))) {
+ $this->addColumn('kronolith_events', 'event_url', 'text');
+ }
+ }
+
+ /**
+ * Downgrade
+ */
+ public function down()
+ {
+ $this->removeColumn('kronolith_events', 'event_url');
+ }
+
+}
\ No newline at end of file
+++ /dev/null
-<?php
-/**
- * Adds url field
- *
- * Copyright 2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- * @category Horde
- * @license http://www.fsf.org/copyleft/gpl.html GPL
- * @package Kronolith
- */
-class KronolithUpgradeAddUrl extends Horde_Db_Migration_Base
-{
- /**
- * Upgrade.
- */
- public function up()
- {
- $t = $this->_connection->table('kronolith_events');
- $cols = $t->getColumns();
- if (!in_array('event_url', array_keys($cols))) {
- $this->addColumn('kronolith_events', 'event_url', 'text');
- }
- }
-
- /**
- * Downgrade
- */
- public function down()
- {
- $this->removeColumn('kronolith_events', 'event_url');
- }
-
-}
\ No newline at end of file