Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sql/000_base_structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ CREATE TABLE IF NOT EXISTS `shares` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `shares_archive` (
`id` bigint(30) NOT NULL AUTO_INCREMENT,
`share_id` bigint(30) NOT NULL,
`id` bigint(30) unsigned NOT NULL AUTO_INCREMENT,
`share_id` bigint(30) unsigned NOT NULL,
`username` varchar(120) NOT NULL,
`our_result` enum('Y','N') DEFAULT NULL,
`upstream_result` enum('Y','N') DEFAULT NULL,
Expand Down
6 changes: 3 additions & 3 deletions upgrade/definitions/0.0.10_to_0.0.11.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function run_0011() {
$db_version_now = $setting->getValue('DB_VERSION'); // Our actual version installed

// Upgrade specific variables
$aSql[] = "ALTER TABLE `shares_archive` MODIFY `id` bigint(30)";
$aSql[] = "ALTER TABLE `shares_archive` MODIFY `share_id` bigint(30)";
$aSql[] = "ALTER TABLE `shares_archive` CHANGE `id` `id` BIGINT(30) unsigned NOT NULL AUTO_INCREMENT";
$aSql[] = "ALTER TABLE `shares_archive` CHANGE `share_id` `share_id` BIGINT(30) unsigned NOT NULL";
$aSql[] = "UPDATE " . $setting->getTableName() . " SET value = '0.0.11' WHERE name = 'DB_VERSION'";

if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) {
Expand All @@ -28,4 +28,4 @@ function run_0011() {
}
}
}
?>
?>