From 4ed4e82423a1fe619b8663dc0f92b34d3d034a11 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 11 Jun 2019 13:32:51 +0200 Subject: some adaption in db layout --- misc/database-layout.dmf | 1927 ++++++++++++++++++++++++---------------------- 1 file changed, 989 insertions(+), 938 deletions(-) (limited to 'misc') diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index e48b80a..019de29 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,13 +2,13 @@ Relational - + - 956 - 420 + 817 + 461 - mirror_statuses + upstream_packages#ffffff @@ -18,123 +18,159 @@ True - protocol - VARCHAR(8) + pkgname + VARCHAR(64) True False - url - VARCHAR(128) + epoch + MEDIUMINT True False - country + pkgver VARCHAR(64) True False - country_code - VARCHAR(4) + pkgrel + MEDIUMINT True False - last_sync - BIGINT + architecture + VARCHAR(6) True False - start - FLOAT + repository + SMALLINT True False + +
+
+ + + 29 + 569 + + + toolchain_order + #ffffff + - stop - FLOAT + number + SMALLINT True - False + True - isos - BIT + pkgbase + VARCHAR(64) True False + +
+
+ + + 483 + 57 + + + versions + #ffffff + - ipv4 - BIT + id + BIGINT + True + True + + + order + BIGINT True False - ipv6 - BIT + epoch + MEDIUMINT True False - active - BIT + version + VARCHAR(32) True False
- + - 371 - 392 + 345 + -71 - architecture_compatibilities + dependencies#ffffff id - MEDIUMINT + BIGINT True True - built_for - SMALLINT + dependent + BIGINT True False - runs_on + depending_on + BIGINT + True + False + + + dependency_type SMALLINT True False - fully_compatible - BIT + version + BIGINT True False - build_slave_compatible - BIT(n) + version_relation + VARCHAR(2) True False
- + - 229 - 20 + 546 + 188 - ssh_keys + binary_packages_in_repositories#ffffff @@ -144,51 +180,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
- + - -54 - 70 + -52 + 134 - 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 - 42 + -55 + -72 - allowed_email_actions + email_log#ffffff @@ -198,62 +264,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 + 570 + 404 - 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 +
- + - 240 - -66 + 899 + 390 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -263,26 +359,38 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 821 - -49 + 69 + 483 - todo_links + build_dependency_loops#ffffff - dependent + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -290,55 +398,49 @@
- + - 971 - -69 + 580 + -71 - 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 -
- + - 822 - 31 + 653 + 21 - statitstics + install_targets#ffffff @@ -348,111 +450,135 @@ True - date - TIMESTAMP + name + VARCHAR(64) True False + +
+
+ + + 395 + 313 + + + architectures + #ffffff + - stable_packages_count - MEDIUMINT + id + SMALLINT True - False + True - pending_tasks_count - MEDIUMINT + name + VARCHAR(16) True False + +
+
+ + + 248 + 499 + + + package_sources + #ffffff + - staging_packages_count - MEDIUMINT + id + BIGINT True - False + True - testing_packages_count - MEDIUMINT + pkgbase + VARCHAR(64) True False - broken_tasks_count - MEDIUMINT + git_revision + VARCHAR(40) True False - dependency_loops_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - dependency_looped_tasks_count - MEDIUMINT + upstream_package_repository + SMALLINT True False - locked_tasks_count - MEDIUMINT + uses_upstream + BIT True False - blocked_tasks_count - MEDIUMINT + uses_modification + BIT True False - next_tasks_count - MEDIUMINT + commit_time + TIMESTAMP True False
- + - 883 - 242 + 528 + 571 - 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
- + - -53 - 240 + 817 + 586 - fail_reasons + git_repositories#ffffff @@ -463,32 +589,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
- + - -17 - 342 + 694 + 300 - failed_builds + repositories#ffffff @@ -498,51 +630,39 @@ True - build_slave - MEDIUMINT - True - False - - - build_assignment - BIGINT - True - False - - - date - TIMESTAMP + name + VARCHAR(64) True False - reason + stability SMALLINT True False - log_file - VARCHAR(512) + is_on_master_mirror + BIT True False - log_file_exists - BIT + architecture + SMALLINT True False
- + - 196 - 326 + 613 + 86 - build_assignments + install_target_providers#ffffff @@ -552,193 +672,175 @@ True - package_source + package BIGINT True False - architecture - SMALLINT + install_target + BIGINT True False - is_blocked - VARCHAR(128) - False - False - - - is_black_listed - VARCHAR(128) - False - False - - - is_broken - BIT + version + BIGINT True False - priority - SMALLINT + install_target_is_group + BIT True False - - return_date - TIMESTAMP - False - False -
- + - 118 - 148 + 299 + 99 - build_slaves + binary_packages#ffffff id - MEDIUMINT + BIGINT True True - name - VARCHAR(32) + build_assignment + BIGINT True False - ssh_key - BIGINT + epoch + MEDIUMINT True False - currently_building - BIGINT - False + pkgver + VARCHAR(64) + True False - last_connection - TIME + pkgrel + MEDIUMINT True False - logged_lines - BIGINT - False + sub_pkgrel + MEDIUMINT + True False - last_action - VARCHAR(32) - False - False - - - trials - MEDIUMINT - False + has_issues + BIT + True False - is_sane + is_tested BIT True False - -
-
- - - 299 - 99 - - - binary_packages - #ffffff - - id - BIGINT + pkgname + VARCHAR(64) True - True + False - build_assignment - BIGINT + architecture + SMALLINT True False - epoch - MEDIUMINT - True + sha512sum + VARCHAR(128) + False False - pkgver - VARCHAR(64) + sub_pkgrel_omitted + BIT True False + +
+
+ + + 118 + 148 + + + build_slaves + #ffffff + - pkgrel + id MEDIUMINT True - False + True - sub_pkgrel - MEDIUMINT + name + VARCHAR(32) True False - has_issues - BIT + ssh_key + BIGINT True False - is_tested - BIT - True + currently_building + BIGINT + False False - pkgname - VARCHAR(64) + last_connection + TIME True False - architecture - SMALLINT - True + logged_lines + BIGINT + False False - sha512sum - VARCHAR(128) + last_action + VARCHAR(32) False False - sub_pkgrel_omitted + trials + MEDIUMINT + False + False + + + is_sane BIT True False @@ -746,13 +848,13 @@
- + - 613 - 86 + 196 + 326 - install_target_providers + build_assignments#ffffff @@ -762,39 +864,57 @@ True - package + package_source BIGINT True False - install_target - BIGINT + architecture + SMALLINT True False - version - BIGINT - True + is_blocked + VARCHAR(128) + False False - install_target_is_group + is_black_listed + VARCHAR(128) + False + False + + + is_broken BIT True False + + priority + SMALLINT + True + False + + + return_date + TIMESTAMP + False + False +
- + - 566 - 299 + -17 + 342 - repositories + failed_builds#ffffff @@ -804,39 +924,51 @@ True - name - VARCHAR(64) + build_slave + MEDIUMINT True False - stability - SMALLINT + build_assignment + BIGINT True False - is_on_master_mirror - BIT + date + TIMESTAMP True False - architecture + reason SMALLINT True False + + log_file + VARCHAR(512) + True + False + + + log_file_exists + BIT + True + False +
- + - 811 - 553 + -53 + 240 - git_repositories + fail_reasons#ffffff @@ -847,68 +979,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
- + - 528 - 571 + 883 + 288 - 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
- + - 248 - 499 + 826 + 33 - package_sources + statitstics#ffffff @@ -918,157 +1044,151 @@ 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 + pending_packages_count + MEDIUMINT True False - uses_upstream - BIT + staging_packages_count + MEDIUMINT True False - uses_modification - BIT + testing_packages_count + MEDIUMINT True False - commit_time - TIMESTAMP + tested_packages_count + MEDIUMINT True False - -
-
- - - 395 - 313 - - - architectures - #ffffff - - id - SMALLINT + broken_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(16) - True + dependency_loops_count + MEDIUMINT + True False - -
-
- - - 653 - 21 - - - install_targets - #ffffff - - id - BIGINT + dependency_looped_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(64) + locked_tasks_count + MEDIUMINT + True + False + + + blocked_tasks_count + MEDIUMINT + True + False + + + next_tasks_count + MEDIUMINT + True + False + + + architecture + SMALLINT True False
- + - 580 - -71 + 971 + -69 - 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 +
- + - 69 - 483 + 821 + -49 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -1076,18 +1196,18 @@
- + - 895 - 332 + 240 + -66 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -1097,58 +1217,46 @@ True False - - bugtracker_category - VARCHAR(32) - False - False -
- + - 570 - 404 + 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 + 42 - email_log + allowed_email_actions#ffffff @@ -1158,93 +1266,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
- + - -52 - 134 + -54 + 70 - 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 -
- + - 546 - 188 + 229 + 20 - binary_packages_in_repositories + ssh_keys#ffffff @@ -1254,87 +1320,69 @@ True - package - BIGINT - True - False - - - repository + owner MEDIUMINT True False - is_to_be_deleted - BIT - True - False - - - last_moved - TIMESTAMP + fingerprint + TEXT True False
- + - 345 - -71 + 371 + 392 - dependencies + architecture_compatibilities#ffffff id - BIGINT + MEDIUMINT True True - dependent - BIGINT - True - False - - - depending_on - BIGINT + built_for + SMALLINT True False - dependency_type + runs_on SMALLINT True False - version - BIGINT + fully_compatible + BIT True False - version_relation - VARCHAR(2) + build_slave_compatible + BIT(n) True False
- + - 483 - 57 + 961 + 462 - versions + mirror_statuses#ffffff @@ -1344,122 +1392,125 @@ True - order - BIGINT + protocol + VARCHAR(8) True False - epoch - MEDIUMINT + url + VARCHAR(128) True False - version - VARCHAR(32) + country + VARCHAR(64) True False - -
-
- - - 29 - 569 - - - toolchain_order - #ffffff - - - number - SMALLINT - True - True - - pkgbase - VARCHAR(64) + country_code + VARCHAR(4) True False - -
-
- - - 811 - 428 - - - upstream_packages - #ffffff - - id + last_sync BIGINT True - True + False - pkgname - VARCHAR(64) + start + FLOAT True False - epoch - MEDIUMINT + stop + FLOAT True False - pkgver - VARCHAR(64) + isos + BIT True False - pkgrel - MEDIUMINT + ipv4 + BIT True False - architecture - VARCHAR(6) + ipv6 + BIT True False - repository - SMALLINT + active + BIT True False
- + + + + + + 826 + 148.922 + + 180 + + + + + 490.5 + 329.615 + + 0 + + + + + + OneToMany + + Optional + Optional + + + 14 + 0 + + + + - 434.229 - 392 + 817 + 520.922 - 90 - + 180 + - 426.516 - 362.812 + 678.984 + 592.281 - 270 - + 0 + @@ -1470,62 +1521,62 @@ Mandatory - 1 + 6 0 - + - 497.458 - 392 + 138.656 + 593.922 - 90 - + 0 + - 458.031 - 362.812 + 248 + 565.922 - 270 - + 180 + OneToOne - Mandatory - Mandatory + Optional + Optional - 2 - 0 + 1 + 1 - + - 566 - 344.906 + 447.167 + 34.8438 - 180 - + 270 + - 489.547 - 337.906 + 525.008 + 57 - 0 - + 90 + @@ -1541,24 +1592,24 @@ - + - 282.109 - 20 + 613 + 116.615 - 90 - + 180 + - 275.289 - -16.1875 + 567.016 + 95.9219 - 270 - + 0 + @@ -1569,29 +1620,29 @@ Mandatory - 1 + 3 0 - + - 188.727 - 148 + 498.25 + -35.7188 - 90 - + 0 + - 282.109 - 83.8125 + 580 + -32.0781 - 270 - + 180 + @@ -1602,29 +1653,29 @@ Mandatory - 2 + 3 0 - + - -9.85156 - 47.8125 + 498.25 + -0.4375 - 270 - + 0 + - -5.27344 - 70 + 653 + 45.9219 - 90 - + 180 + @@ -1635,37 +1686,37 @@ Mandatory - 3 + 2 0 - + - 68 - 73.9062 + 652.008 + 279.844 - 180 - + 270 + - 43.4531 - 94.9062 + 779.547 + 300 - 0 - + 90 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional 2 @@ -1673,24 +1724,24 @@ - + - 142.789 - 42 + 396.083 + 34.8438 - 90 - + 270 + - 159.109 - 12.8125 + 382.773 + 99 - 270 - + 90 + @@ -1706,24 +1757,24 @@ - + - 35.2969 - -12.0938 + 546 + 233.922 - 0 - + 180 + - 106 - -19.0938 + 466.547 + 225.562 - 180 - + 0 + @@ -1734,29 +1785,29 @@ Mandatory - 5 + 1 0 - + - 212.219 - -19.0938 + 60.6406 + 179.922 0 - + - 240 - -41.0938 + 118 + 221.922 180 - + @@ -1772,24 +1823,24 @@ - + - 948.234 - -32.3958 + 689.336 + 481.844 - 0 - + 270 + - 971 - -38.3958 + 603.492 + 571 - 180 - + 90 + @@ -1800,29 +1851,29 @@ Mandatory - 0 + 3 0 - + - 948.234 - -15.7917 + 649.557 + 404 - 0 - + 90 + - 971 - -7.79167 + 808.062 + 391.844 - 180 - + 270 + @@ -1838,24 +1889,24 @@ - + - 1008.31 - 305.812 + 729.115 + 404 - 270 - + 90 + - 1000.27 - 332 + 751.031 + 391.844 - 90 - + 270 + @@ -1871,24 +1922,24 @@ - + - 945.656 - 305.812 + 410.698 + 288.844 270 - + - 947.635 - 332 + 442.75 + 313 90 - + @@ -1899,29 +1950,29 @@ Mandatory - 1 + 9 0 - + - 33.5729 - 342 + 865.094 + 345.922 - 90 - + 0 + - -5.28125 - 317.812 + 899 + 421.922 - 270 - + 180 + @@ -1932,29 +1983,29 @@ Mandatory - 4 + 2 0 - + - 134.719 - 401.906 + 707.117 + 86 - 0 - + 90 + - 196 - 392.906 + 703.516 + 70.8438 - 180 - + 270 + @@ -1970,24 +2021,24 @@ - + - 84.1458 - 342 + 613 + 147.229 - 90 - + 180 + - 165.151 - 295.812 + 466.547 + 162.281 - 270 - + 0 + @@ -2003,24 +2054,24 @@ - + - 150.195 - 483 + 486.672 + 565.922 - 90 - + 0 + - 242.974 - 459.812 + 528 + 602.922 - 270 - + 180 + @@ -2031,29 +2082,29 @@ Mandatory - 2 + 4 0 - + - 212.302 - 295.812 + 678.984 + 613.562 - 270 - + 0 + - 242.974 - 326 + 817 + 631.922 - 90 - + 180 + @@ -2064,29 +2115,29 @@ Mandatory - 3 + 2 0 - + - 354.286 - 288.812 + 290.906 + 459.844 270 - + - 289.948 - 326 + 367.336 + 499 90 - + @@ -2107,8 +2158,8 @@ - 336.922 - 392.906 + 338.359 + 392.922 0 @@ -2116,7 +2167,7 @@ 395 - 337.906 + 337.922 180 @@ -2135,24 +2186,24 @@ - + - 289.948 - 459.812 + 354.849 + 288.844 270 - + - 363.266 - 499 + 290.906 + 326 90 - + @@ -2168,24 +2219,24 @@ - + - 677.453 - 613.542 + 213.26 + 295.844 - 0 - + 270 + - 811 - 598.906 + 243.453 + 326 - 180 - + 90 + @@ -2196,29 +2247,29 @@ Mandatory - 2 + 3 0 - + - 478.531 - 565.906 + 151.016 + 483 - 0 - + 90 + - 528 - 602.906 + 243.453 + 459.844 - 180 - + 270 + @@ -2229,29 +2280,29 @@ Mandatory - 4 + 2 0 - + - 613 - 147.208 + 85.1458 + 342 - 180 - + 90 + - 464.859 - 162.271 + 165.63 + 295.844 - 0 - + 270 + @@ -2267,24 +2318,24 @@ - + - 706.203 - 86 + 136.219 + 401.922 - 90 - + 0 + - 703.016 - 70.8125 + 196 + 392.922 - 270 - + 180 + @@ -2300,24 +2351,24 @@ - + - 735.406 - 344.906 + 34.0729 + 342 - 0 - + 90 + - 895 - 363.906 + -4.80469 + 317.844 - 180 - + 270 + @@ -2328,29 +2379,29 @@ Mandatory - 2 + 4 0 - + - 409.573 - 288.812 + 1009.6 + 351.844 270 - + - 442.273 - 313 + 952.182 + 390 90 - + @@ -2361,29 +2412,29 @@ Mandatory - 9 + 1 0 - + - 648.755 - 404 + 946.302 + 351.844 - 90 - + 270 + - 622.469 - 390.812 + 1005.36 + 390 - 270 - + 90 + @@ -2399,24 +2450,24 @@ - + - 727.51 - 404 + 949.578 + -32.3854 - 90 - + 0 + - 678.938 - 390.812 + 971 + -7.77083 - 270 - + 180 + @@ -2432,24 +2483,24 @@ - + - 688.133 - 481.812 + 949.578 + -15.7708 - 270 - + 0 + - 602.727 - 571 + 971 + -38.3854 - 90 - + 180 + @@ -2460,29 +2511,29 @@ Mandatory - 3 + 0 0 - + - 59.5312 - 179.906 + 213.297 + -19.0781 0 - + - 118 - 221.906 + 240 + -41.0781 180 - + @@ -2498,24 +2549,24 @@ - + - 546 - 233.906 + 36.1719 + -12.0781 - 180 - + 0 + - 464.859 - 225.542 + 106 + -19.0781 - 0 - + 180 + @@ -2526,29 +2577,29 @@ Mandatory - 1 + 5 0 - + - 395.557 - 34.8125 + 143.531 + 42 - 270 - + 90 + - 381.93 - 99 + 159.648 + 12.8438 - 90 - + 270 + @@ -2564,32 +2615,32 @@ - + - 650.922 - 279.812 + 68 + 73.9219 - 270 - + 180 + - 650.703 - 299 + 44.4062 + 94.9219 - 90 - + 0 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory 2 @@ -2597,24 +2648,24 @@ - + - 496.672 - -0.458333 + -9.41406 + 47.8438 - 0 - + 270 + - 653 - 45.9062 + -4.79688 + 70 - 180 - + 90 + @@ -2625,29 +2676,29 @@ Mandatory - 2 + 3 0 - + - 496.672 - -35.7292 + 189.445 + 148 - 0 - + 90 + - 580 - -32.0938 + 282.648 + 83.8438 - 180 - + 270 + @@ -2658,29 +2709,29 @@ Mandatory - 3 + 2 0 - + - 613 - 116.604 + 282.648 + 20 - 180 - + 90 + - 566.188 - 95.9062 + 275.641 + -16.1562 - 0 - + 270 + @@ -2691,29 +2742,29 @@ Mandatory - 3 + 1 0 - + - 446.115 - 34.8125 + 694 + 345.922 - 270 - + 180 + - 524.594 - 57 + 490.5 + 346.229 - 90 - + 0 + @@ -2729,57 +2780,57 @@ - + - 137.547 - 593.906 + 434.854 + 392 - 0 - + 90 + - 248 - 565.906 + 458.667 + 362.844 - 180 - + 270 + OneToOne - Optional - Optional + Mandatory + Mandatory - 1 - 1 + 2 + 0 - + - 811 - 487.906 + 498.708 + 392 - 180 - + 90 + - 677.453 - 592.271 + 426.833 + 362.844 - 0 - + 270 + @@ -2790,7 +2841,7 @@ Mandatory - 6 + 1 0 -- cgit v1.2.3-70-g09d2