Skip to content

Commit

Permalink
Returned to version 3.0 (dev).
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Jun 4, 2014
1 parent d3fbb88 commit e0a358c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions ContributionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ public function hookUpgrade($args)
$db->query($sql);
$sql = "ALTER TABLE `$db->ContributionTypeElement` ADD `long_text` BOOLEAN DEFAULT TRUE";
$db->query($sql);
$sql = "ALTER TABLE `$db->ContributionType` ADD COLUMN `add_tags` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'";
$db->query($sql);

$contributionTypeElements = $db->getTable('ContributionTypeElement')->findAll();
foreach ($contributionTypeElements as $typeElement) {
Expand All @@ -214,12 +216,6 @@ public function hookUpgrade($args)
Zend_Registry::get('bootstrap')->getResource('jobs')->sendLongRunning('ContributionImportUsers');
//if the optional UserProfiles plugin is installed, handle the upgrade via the configuration page
}

if (version_compare($oldVersion, '3.1', '<')) {
$db = $this->_db;
$sql = "ALTER TABLE `$db->ContributionType` ADD COLUMN `add_tags` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'";
$db->query($sql);
}
}

public function hookUninstallMessage()
Expand Down
2 changes: 1 addition & 1 deletion plugin.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ link = "http://omeka.org/codex/Plugins/Contribution"
support_link = "http://omeka.org/forums/forum/plugins"
omeka_minimum_version = "2.0"
omeka_tested_against = "2.0"
version = "3.1"
version = "3.0"
tags = "social, items"
license = "GPLv3"
required_plugins = "GuestUser"
Expand Down

0 comments on commit e0a358c

Please sign in to comment.