From: Michael J. Rubinsky Date: Tue, 5 Oct 2010 00:10:17 +0000 (-0400) Subject: Silly netbeans. Fix filenames X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fed568b23993122c3c87dc91c2e5857c898cbd0b;p=horde.git Silly netbeans. Fix filenames --- diff --git a/kronolith/migration/11_kronolith_upgrade_resourceemail.php b/kronolith/migration/11_kronolith_upgrade_resourceemail.php new file mode 100644 index 000000000..a3a0adce7 --- /dev/null +++ b/kronolith/migration/11_kronolith_upgrade_resourceemail.php @@ -0,0 +1,37 @@ + + * @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 diff --git a/kronolith/migration/11_kronolith_upgrade_resourceemail.php.php b/kronolith/migration/11_kronolith_upgrade_resourceemail.php.php deleted file mode 100644 index a3a0adce7..000000000 --- a/kronolith/migration/11_kronolith_upgrade_resourceemail.php.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @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 diff --git a/kronolith/migration/12_kronolith_upgrade_addzoom.php b/kronolith/migration/12_kronolith_upgrade_addzoom.php new file mode 100644 index 000000000..332c4276c --- /dev/null +++ b/kronolith/migration/12_kronolith_upgrade_addzoom.php @@ -0,0 +1,37 @@ + + * @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 diff --git a/kronolith/migration/12_kronolith_upgrade_addzoom.php.php b/kronolith/migration/12_kronolith_upgrade_addzoom.php.php deleted file mode 100644 index 332c4276c..000000000 --- a/kronolith/migration/12_kronolith_upgrade_addzoom.php.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @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 diff --git a/kronolith/migration/13_kronolith_upgrade_systemshares.php b/kronolith/migration/13_kronolith_upgrade_systemshares.php new file mode 100644 index 000000000..d847a2de3 --- /dev/null +++ b/kronolith/migration/13_kronolith_upgrade_systemshares.php @@ -0,0 +1,33 @@ + + * @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 diff --git a/kronolith/migration/13_kronolith_upgrade_systemshares.php.php b/kronolith/migration/13_kronolith_upgrade_systemshares.php.php deleted file mode 100644 index d847a2de3..000000000 --- a/kronolith/migration/13_kronolith_upgrade_systemshares.php.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @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 diff --git a/kronolith/migration/6_kronolith_upgrade_addresources.php b/kronolith/migration/6_kronolith_upgrade_addresources.php new file mode 100644 index 000000000..aeceae5bb --- /dev/null +++ b/kronolith/migration/6_kronolith_upgrade_addresources.php @@ -0,0 +1,48 @@ + + * @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 diff --git a/kronolith/migration/6_kronolith_upgrade_addresources.php.php b/kronolith/migration/6_kronolith_upgrade_addresources.php.php deleted file mode 100644 index aeceae5bb..000000000 --- a/kronolith/migration/6_kronolith_upgrade_addresources.php.php +++ /dev/null @@ -1,48 +0,0 @@ - - * @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 diff --git a/kronolith/migration/8_kronolith_upgrade_addgeo.php b/kronolith/migration/8_kronolith_upgrade_addgeo.php new file mode 100644 index 000000000..046ce113e --- /dev/null +++ b/kronolith/migration/8_kronolith_upgrade_addgeo.php @@ -0,0 +1,41 @@ + + * @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 diff --git a/kronolith/migration/8_kronolith_upgrade_addgeo.php.php b/kronolith/migration/8_kronolith_upgrade_addgeo.php.php deleted file mode 100644 index 046ce113e..000000000 --- a/kronolith/migration/8_kronolith_upgrade_addgeo.php.php +++ /dev/null @@ -1,41 +0,0 @@ - - * @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 diff --git a/kronolith/migration/9_kronolith_upgrade_addurl.php b/kronolith/migration/9_kronolith_upgrade_addurl.php new file mode 100644 index 000000000..212496d9a --- /dev/null +++ b/kronolith/migration/9_kronolith_upgrade_addurl.php @@ -0,0 +1,37 @@ + + * @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 diff --git a/kronolith/migration/9_kronolith_upgrade_addurl.php.php b/kronolith/migration/9_kronolith_upgrade_addurl.php.php deleted file mode 100644 index 212496d9a..000000000 --- a/kronolith/migration/9_kronolith_upgrade_addurl.php.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @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