From a45b6352c6cea6a7e672d64e86f3984aa7dee96c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 12:49:59 +0200 Subject: new column `binary_packages`.`sub_pkgrel_omitted` --- misc/database-layout.dmf | 1490 +++++++++++++++++++++++---------------------- misc/database-layout.dump | 1 + 2 files changed, 749 insertions(+), 742 deletions(-) diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index 0b3a864..92dce62 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,13 +2,13 @@ Relational - + - 237 - 40 + 543 + 182 - ssh_keys + binary_packages_in_repositories#ffffff @@ -18,51 +18,81 @@ True - owner + package + BIGINT + True + False + + + repository MEDIUMINT True False - fingerprint - TEXT + is_to_be_deleted + BIT + True + False + + + last_moved + TIMESTAMP True False
- + - -68 - 71 + 42 + 135 - email_actions + ssh_log#ffffff id - MEDIUMINT + BIGINT True True - name + date + TIMESTAMP + True + False + + + build_slave + MEDIUMINT + False + False + + + action VARCHAR(32) True False + + parameters + TEXT + True + False +
- + - 68 - 49 + -55 + -72 - allowed_email_actions + email_log#ffffff @@ -72,62 +102,92 @@ True - gpg_key - BIGINT + date + TIMESTAMP + True + False + + + success + BIT True False action MEDIUMINT - True + False + False + + + count + MEDIUMINT + False + False + + + gpg_key + BIGINT + False + False + + + comment + TEXT + False False
- + - 106 - -51 + 494 + 427 - gpg_keys + repository_moves#ffffff id - BIGINT + MEDIUMINT True True - fingerprint - VARCHAR(40) + from_repository + MEDIUMINT True False - owner + to_repository MEDIUMINT True False + + upstream_package_repository + SMALLINT + True + False +
- + - 258 - -44 + 788 + 281 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -137,26 +197,38 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 788 - -60 + 53 + 501 - todo_links + build_dependency_loops#ffffff - dependent + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -164,55 +236,49 @@
- + - 945 - -70 + 540 + -64 - todos + dependency_types#ffffff id - BIGINT + SMALLINT True True - file - VARCHAR(64) + name + VARCHAR(32) True False - line - MEDIUMINT + relevant_for_building + BIT True False - description - TEXT + relevant_for_binary_packages + BIT True False - - importance - SMALLINT - False - False -
- + - 777 - 32 + 348 + -60 - statitstics + dependencies#ffffff @@ -222,111 +288,171 @@ True - date - TIMESTAMP + dependent + BIGINT True False - stable_packages_count - MEDIUMINT + depending_on + BIGINT True False - pending_tasks_count - MEDIUMINT + dependency_type + SMALLINT True False + +
+
+ + + 557 + 30 + + + install_targets + #ffffff + - staging_packages_count - MEDIUMINT + id + BIGINT True - False + True - testing_packages_count - MEDIUMINT + name + VARCHAR(64) True False + +
+
+ + + 415 + 321 + + + architectures + #ffffff + - broken_tasks_count - MEDIUMINT + id + SMALLINT True - False + True - dependency_loops_count - MEDIUMINT + name + VARCHAR(16) True False + +
+
+ + + 226 + 473 + + + package_sources + #ffffff + - dependency_looped_tasks_count - MEDIUMINT + id + BIGINT + True + True + + + pkgbase + VARCHAR(64) True False - locked_tasks_count - MEDIUMINT + git_revision + VARCHAR(40) True False - blocked_tasks_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - next_tasks_count - MEDIUMINT + upsream_package_repository + SMALLINT + True + False + + + uses_upstream + BIT + True + False + + + uses_modification + BIT + True + False + + + commit_time + TIMESTAMP True False
- + - 754 - 399 + 539 + 533 - repository_stability_relations + upstream_repositories#ffffff id - MEDIUMINT + SMALLINT True True - more_stable - MEDIUMINT + name + VARCHAR(64) True False - less_stable - MEDIUMINT + git_repository + SMALLINT True False
- + - -62 - 370 + 770 + 508 - fail_reasons + git_repositories#ffffff @@ -337,32 +463,38 @@ name - VARCHAR(32) + VARCHAR(64) True False - identifier - VARCHAR(64) + url + VARCHAR(128) True False - severity - SMALLINT + directory + VARCHAR(128) + True + False + + + head + VARCHAR(40) True False
- + - 53 - 346 + 549 + 301 - failed_builds + repositories#ffffff @@ -372,45 +504,69 @@ True - build_slave - MEDIUMINT + name + VARCHAR(64) True False - build_assignment - BIGINT + stability + SMALLINT True False - date - TIMESTAMP + is_on_master_mirror + BIT True False - reason + architecture SMALLINT True False + +
+
+ + + 549 + 105 + + + install_target_providers + #ffffff + + + id + BIGINT + True + True + + + package + BIGINT + True + False + - log_file - VARCHAR(512) + install_target + BIGINT True False
- + - 247 - 291 + 360 + 56 - build_assignments + binary_packages#ffffff @@ -420,47 +576,71 @@ True - package_source + build_assignment BIGINT True False - architecture - SMALLINT + epoch + MEDIUMINT True False - is_blocked - VARCHAR(128) - False + pkgver + VARCHAR(64) + True False - is_black_listed - VARCHAR(128) - False + pkgrel + MEDIUMINT + True False - is_broken + sub_pkgrel + MEDIUMINT + True + False + + + has_issues BIT True False - priority + is_tested + BIT + True + False + + + pkgname + VARCHAR(64) + True + False + + + architecture SMALLINT True False - return_date - TIMESTAMP + sha512sum + VARCHAR(128) False False + + sub_pkgrel_omitted + BIT + True + False +
@@ -530,13 +710,13 @@
- + - 360 - 56 + 247 + 291 - binary_packages + build_assignments#ffffff @@ -546,147 +726,105 @@ True - build_assignment + package_source BIGINT True False - epoch - MEDIUMINT - True - False - - - pkgver - VARCHAR(64) - True - False - - - pkgrel - MEDIUMINT + architecture + SMALLINT True False - sub_pkgrel - MEDIUMINT - True + is_blocked + VARCHAR(128) + False False - has_issues - BIT - True + is_black_listed + VARCHAR(128) + False False - is_tested + is_broken BIT True False - pkgname - VARCHAR(64) - True - False - - - architecture + priority SMALLINT True False - sha512sum - VARCHAR(128) + return_date + TIMESTAMP False False
- + - 549 - 105 + 53 + 346 - install_target_providers + failed_builds#ffffff id - BIGINT + MEDIUMINT True True - package - BIGINT + build_slave + MEDIUMINT True False - install_target + build_assignment BIGINT True False - -
-
- - - 549 - 301 - - - repositories - #ffffff - - - id - MEDIUMINT - True - True - - name - VARCHAR(64) + date + TIMESTAMP True False - stability + reason SMALLINT True False - is_on_master_mirror - BIT - True - False - - - architecture - SMALLINT + log_file + VARCHAR(512) True False
- + - 770 - 508 + -62 + 370 - git_repositories + fail_reasons#ffffff @@ -697,68 +835,62 @@ name - VARCHAR(64) - True - False - - - url - VARCHAR(128) + VARCHAR(32) True False - directory - VARCHAR(128) + identifier + VARCHAR(64) True False - head - VARCHAR(40) + severity + SMALLINT True False
- + - 539 - 533 + 754 + 399 - upstream_repositories + repository_stability_relations#ffffff id - SMALLINT + MEDIUMINT True True - name - VARCHAR(64) + more_stable + MEDIUMINT True False - git_repository - SMALLINT + less_stable + MEDIUMINT True False
- + - 226 - 473 + 777 + 32 - package_sources + statitstics#ffffff @@ -768,193 +900,133 @@ True - pkgbase - VARCHAR(64) + date + TIMESTAMP True False - git_revision - VARCHAR(40) + stable_packages_count + MEDIUMINT True False - mod_git_revision - VARCHAR(40) + pending_tasks_count + MEDIUMINT True False - upsream_package_repository - SMALLINT + staging_packages_count + MEDIUMINT True False - uses_upstream - BIT + testing_packages_count + MEDIUMINT True False - uses_modification - BIT + broken_tasks_count + MEDIUMINT True False - commit_time - TIMESTAMP + dependency_loops_count + MEDIUMINT True False - -
-
- - - 415 - 321 - - - architectures - #ffffff - - - id - SMALLINT - True - True - - name - VARCHAR(16) - True - False - - -
-
- - - 557 - 30 - - - install_targets - #ffffff - - - id - BIGINT - True - True - - - name - VARCHAR(64) + dependency_looped_tasks_count + MEDIUMINT True False - -
-
- - - 348 - -60 - - - dependencies - #ffffff - - - id - BIGINT - True - True - - dependent - BIGINT + locked_tasks_count + MEDIUMINT True False - depending_on - BIGINT + blocked_tasks_count + MEDIUMINT True False - dependency_type - SMALLINT + next_tasks_count + MEDIUMINT True False
- + - 540 - -64 + 945 + -70 - dependency_types + todos#ffffff id - SMALLINT + BIGINT True True - name - VARCHAR(32) + file + VARCHAR(64) True False - relevant_for_building - BIT + line + MEDIUMINT True False - relevant_for_binary_packages - BIT + description + TEXT True False + + importance + SMALLINT + False + False +
- + - 53 - 501 + 788 + -60 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -962,18 +1034,18 @@
- + - 788 - 281 + 258 + -44 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -983,58 +1055,46 @@ True False - - bugtracker_category - VARCHAR(32) - False - False -
- + - 494 - 427 + 106 + -51 - repository_moves + gpg_keys#ffffff id - MEDIUMINT + BIGINT True True - from_repository - MEDIUMINT + fingerprint + VARCHAR(40) True False - to_repository + owner MEDIUMINT True False - - upstream_package_repository - SMALLINT - True - False -
- + - -55 - -72 + 68 + 49 - email_log + allowed_email_actions#ffffff @@ -1044,93 +1104,51 @@ True - date - TIMESTAMP - True - False - - - success - BIT + gpg_key + BIGINT True False action MEDIUMINT - False - False - - - count - MEDIUMINT - False - False - - - gpg_key - BIGINT - False - False - - - comment - TEXT - False + True False
- + - 42 - 135 + -68 + 71 - ssh_log + email_actions#ffffff id - BIGINT + MEDIUMINT True True - date - TIMESTAMP - True - False - - - build_slave - MEDIUMINT - False - False - - - action + name VARCHAR(32) True False - - parameters - TEXT - True - False -
- + - 543 - 182 + 237 + 40 - binary_packages_in_repositories + ssh_keys#ffffff @@ -1140,83 +1158,71 @@ True - package - BIGINT - True - False - - - repository + owner MEDIUMINT True False - is_to_be_deleted - BIT - True - False - - - last_moved - TIMESTAMP + fingerprint + TEXT True False
- + - 549 - 346.906 + 647.922 + 273.812 - 180 - + 270 + - 509.547 - 345.906 + 633.703 + 301 - 0 - + 90 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 4 + 2 0 - + - 290.109 - 40 + 543 + 227.906 - 90 - + 180 + - 293.289 - 5.8125 + 525.859 + 182.542 - 270 - + 0 + @@ -1232,24 +1238,24 @@ - + - 255.727 - 122 + 153.531 + 180.906 - 90 - + 0 + - 290.109 - 103.812 + 185 + 195.906 - 270 - + 180 + @@ -1265,24 +1271,24 @@ - + - -9.85156 - 47.8125 + 612.133 + 504.812 270 - + - -19.2734 - 71 + 613.727 + 533 90 - + @@ -1298,24 +1304,24 @@ - + - 68 - 80.9062 + 572.755 + 427 - 180 - + 90 + - 29.4531 - 95.9062 + 605.469 + 392.812 - 0 - + 270 + @@ -1326,29 +1332,29 @@ Mandatory - 2 + 1 0 - + - 142.789 - 49 + 651.51 + 427 90 - + - 159.109 - 12.8125 + 661.938 + 392.812 270 - + @@ -1359,29 +1365,29 @@ Mandatory - 1 + 2 0 - + - 35.2969 - -12.0938 + 470.573 + 245.812 - 0 - + 270 + - 106 - -19.0938 + 462.273 + 321 - 180 - + 90 + @@ -1392,29 +1398,29 @@ Mandatory - 5 + 9 0 - + - 212.219 - -19.0938 + 499.672 + -34.0625 0 - + - 258 - -19.0938 + 540 + -25.0938 180 - + @@ -1425,29 +1431,29 @@ Mandatory - 2 + 3 0 - + - 915.234 - -43.3958 + 718.406 + 346.906 0 - + - 945 - -39.3958 + 788 + 312.906 180 - + @@ -1458,29 +1464,29 @@ Mandatory - 0 + 2 0 - + - 915.234 - -26.7917 + 499.672 + -8.125 0 - + - 945 - -8.79167 + 557 + 54.9062 180 - + @@ -1491,29 +1497,29 @@ Mandatory - 1 + 2 0 - + - 816.656 - 399 + 627.109 + 105 90 - + - 840.635 - 344.812 + 607.016 + 79.8125 270 - + @@ -1529,24 +1535,24 @@ - + - 879.312 - 399 + 423.836 + 17.8125 - 90 - + 270 + - 893.271 - 344.812 + 442.93 + 56 - 270 - + 90 + @@ -1562,24 +1568,24 @@ - + - 53 - 398.906 + 549 + 136.906 180 - + - 33.4375 - 408.906 + 525.859 + 119.271 0 - + @@ -1590,29 +1596,29 @@ Mandatory - 4 + 1 0 - + - 204.719 - 398.906 + 456.531 + 539.906 0 - + - 247 - 357.906 + 539 + 564.906 180 - + @@ -1623,29 +1629,29 @@ Mandatory - 2 + 4 0 - + - 128.859 - 346 + 688.453 + 564.906 - 90 - + 0 + - 232.151 - 269.812 + 770 + 553.906 - 270 - + 180 + @@ -1656,29 +1662,29 @@ Mandatory - 1 + 2 0 - + - 134.195 - 501 + 340.948 + 424.812 - 90 - + 270 + - 293.974 - 424.812 + 341.266 + 473 - 270 - + 90 + @@ -1689,29 +1695,29 @@ Mandatory - 2 + 1 0 - + - 279.302 - 269.812 + 387.922 + 357.906 - 270 - + 0 + - 293.974 - 291 + 415 + 345.906 - 90 - + 180 + @@ -1722,7 +1728,7 @@ Mandatory - 3 + 2 0 @@ -1732,8 +1738,8 @@ - 410.573 - 231.812 + 415.286 + 245.812 270 @@ -1760,24 +1766,24 @@ - + - 387.922 - 357.906 + 279.302 + 269.812 - 0 - + 270 + - 415 - 345.906 + 293.974 + 291 - 180 - + 90 + @@ -1788,29 +1794,29 @@ Mandatory - 2 + 3 0 - + - 340.948 - 424.812 + 134.195 + 501 - 270 - + 90 + - 341.266 - 473 + 293.974 + 424.812 - 90 - + 270 + @@ -1821,29 +1827,29 @@ Mandatory - 1 + 2 0 - + - 688.453 - 564.906 + 128.859 + 346 - 0 - + 90 + - 770 - 553.906 + 232.151 + 269.812 - 180 - + 270 + @@ -1854,29 +1860,29 @@ Mandatory - 2 + 1 0 - + - 456.531 - 539.906 + 204.719 + 398.906 0 - + - 539 - 564.906 + 247 + 357.906 180 - + @@ -1887,29 +1893,29 @@ Mandatory - 4 + 2 0 - + - 549 - 136.906 + 53 + 398.906 180 - + - 511.719 - 114.604 + 33.4375 + 408.906 0 - + @@ -1920,29 +1926,29 @@ Mandatory - 1 + 4 0 - + - 423.836 - 17.8125 + 816.656 + 399 - 270 - + 90 + - 435.859 - 56 + 840.635 + 344.812 - 90 - + 270 + @@ -1958,24 +1964,24 @@ - + - 627.109 - 105 + 879.312 + 399 90 - + - 607.016 - 79.8125 + 893.271 + 344.812 270 - + @@ -1991,24 +1997,24 @@ - + - 499.672 - -8.125 + 915.234 + -43.3958 0 - + - 557 - 54.9062 + 945 + -39.3958 180 - + @@ -2019,29 +2025,29 @@ Mandatory - 2 + 1 0 - + - 718.406 - 346.906 + 915.234 + -26.7917 0 - + - 788 - 312.906 + 945 + -8.79167 180 - + @@ -2052,29 +2058,29 @@ Mandatory - 2 + 0 0 - + - 499.672 - -34.0625 + 212.219 + -19.0938 0 - + - 540 - -25.0938 + 258 + -19.0938 180 - + @@ -2085,29 +2091,29 @@ Mandatory - 3 + 2 0 - + - 461.146 - 231.812 + 35.2969 + -12.0938 - 270 - + 0 + - 462.273 - 321 + 106 + -19.0938 - 90 - + 180 + @@ -2118,29 +2124,29 @@ Mandatory - 9 + 5 0 - + - 572.755 - 427 + 142.789 + 49 90 - + - 605.469 - 392.812 + 159.109 + 12.8125 270 - + @@ -2151,29 +2157,29 @@ Mandatory - 2 + 1 0 - + - 651.51 - 427 + 68 + 80.9062 - 90 - + 180 + - 661.938 - 392.812 + 29.4531 + 95.9062 - 270 - + 0 + @@ -2184,29 +2190,29 @@ Mandatory - 1 + 2 0 - + - 612.133 - 504.812 + -9.85156 + 47.8125 270 - + - 613.727 - 533 + -19.2734 + 71 90 - + @@ -2222,24 +2228,24 @@ - + - 153.531 - 180.906 + 255.727 + 122 - 0 - + 90 + - 185 - 195.906 + 290.109 + 103.812 - 180 - + 270 + @@ -2255,24 +2261,24 @@ - + - 543 - 227.906 + 290.109 + 40 - 180 - + 90 + - 511.719 - 173.208 + 293.289 + 5.8125 - 0 - + 270 + @@ -2288,35 +2294,35 @@ - + - 647.922 - 273.812 + 549 + 346.906 - 270 - + 180 + - 633.703 - 301 + 509.547 + 345.906 - 90 - + 0 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory - 2 + 4 0 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index 55ab902..0cd7493 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -351,6 +351,7 @@ binary_packages CREATE TABLE `binary_packages` ( `pkgname` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `architecture` smallint(6) NOT NULL, `sha512sum` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sub_pkgrel_omitted` bit(1) NOT NULL DEFAULT b'1', PRIMARY KEY (`id`), UNIQUE KEY `file_name` (`pkgname`,`epoch`,`pkgver`,`pkgrel`,`sub_pkgrel`,`architecture`), UNIQUE KEY `content` (`build_assignment`,`sub_pkgrel`,`pkgname`,`architecture`), -- cgit v1.2.3-70-g09d2