From 91fbe3980795b7ad88330ab29b0a975e4bde9ed5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 19 Jun 2019 10:16:57 +0200 Subject: `build_slaves`.`access_allowed` new --- misc/database-layout.dmf | 1922 +++++++++++++++++++++++---------------------- misc/database-layout.dump | 1 + 2 files changed, 965 insertions(+), 958 deletions(-) diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index ab07939..c310699 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,13 +2,13 @@ Relational - + - 632 - 498 + 901 + 641 - upstream_packages + mirror_statuses#ffffff @@ -18,159 +18,123 @@ True - pkgname - VARCHAR(64) + protocol + VARCHAR(8) True False - epoch - MEDIUMINT + url + VARCHAR(128) True False - pkgver + country VARCHAR(64) True False - pkgrel - MEDIUMINT + country_code + VARCHAR(4) True False - architecture - VARCHAR(6) + last_sync + BIGINT True False - repository - SMALLINT + start + FLOAT True False - -
-
- - - -23 - 750 - - - toolchain_order - #ffffff - - - number - SMALLINT - True - True - - pkgbase - VARCHAR(64) + stop + FLOAT True False - -
-
- - - 483 - 57 - - - versions - #ffffff - - id - BIGINT + isos + BIT True - True + False - order - BIGINT + ipv4 + BIT True False - epoch - MEDIUMINT + ipv6 + BIT True False - version - VARCHAR(32) + active + BIT True False
- + - 345 - -71 + 656 + 380 - 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
- + - 525 - 215 + 229 + 20 - binary_packages_in_repositories + ssh_keys#ffffff @@ -180,81 +144,51 @@ True - package - BIGINT - True - False - - - repository + owner MEDIUMINT True False - is_to_be_deleted - BIT - True - False - - - last_moved - TIMESTAMP + fingerprint + TEXT 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 -
- + - -55 - -72 + 68 + 42 - email_log + allowed_email_actions#ffffff @@ -264,92 +198,62 @@ 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
- + - 793 - 497 + 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 -
- + - 829 - 168 + 240 + -66 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -359,38 +263,26 @@ True False - - bugtracker_category - VARCHAR(32) - False - False -
- + - -8 - 572 + 821 + -49 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -398,49 +290,55 @@
- + - 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 +
- + - 653 - 21 + 357 + 455 - install_targets + statitstics#ffffff @@ -450,121 +348,85 @@ True - name - VARCHAR(64) + date + TIMESTAMP True False - -
-
- - - 382 - 378 - - - architectures - #ffffff - - id - SMALLINT + stable_packages_count + MEDIUMINT True - True + False - name - VARCHAR(16) + pending_tasks_count + MEDIUMINT True False - -
-
- - - 173 - 709 - - - package_sources - #ffffff - - id - BIGINT + pending_packages_count + MEDIUMINT True - True + False - pkgbase - VARCHAR(64) + staging_packages_count + MEDIUMINT True False - git_revision - VARCHAR(40) + testing_packages_count + MEDIUMINT True False - mod_git_revision - VARCHAR(40) + tested_packages_count + MEDIUMINT True False - upstream_package_repository - SMALLINT + broken_tasks_count + MEDIUMINT True False - uses_upstream - BIT + dependency_loops_count + MEDIUMINT True False - uses_modification - BIT + dependency_looped_tasks_count + MEDIUMINT True False - commit_time - TIMESTAMP + locked_tasks_count + MEDIUMINT True False - -
-
- - - 729 - 684 - - - upstream_repositories - #ffffff - - id - SMALLINT + blocked_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(64) + next_tasks_count + MEDIUMINT True False - git_repository + architecture SMALLINT True False @@ -572,83 +434,65 @@
- + - 598 - 736 + 816 + 57 - git_repositories + repository_stability_relations#ffffff id - SMALLINT + MEDIUMINT True True - name - VARCHAR(64) - True - False - - - url - VARCHAR(128) - True - False - - - directory - VARCHAR(128) + more_stable + MEDIUMINT True False - head - VARCHAR(40) + less_stable + MEDIUMINT True False
- + - 803 - 261 + -53 + 240 - repositories + fail_reasons#ffffff id - MEDIUMINT + SMALLINT True True name - VARCHAR(64) - True - False - - - stability - SMALLINT + VARCHAR(32) True False - is_on_master_mirror - BIT + identifier + VARCHAR(64) True False - architecture + severity SMALLINT True False @@ -656,41 +500,53 @@
- + - 604 - 88 + -19 + 365 - 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 - version - BIGINT + date + TIMESTAMP True False - install_target_is_group + reason + SMALLINT + True + False + + + log_file + VARCHAR(512) + True + False + + + log_file_exists BIT True False @@ -698,13 +554,13 @@
- + - 299 - 99 + 164 + 408 - binary_packages + build_assignments#ffffff @@ -714,75 +570,57 @@ 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 - sub_pkgrel_omitted - BIT - True + currently_blocking + MEDIUMINT + False False
- + 118 148 @@ -845,16 +683,22 @@ True False + + access_allowed + BIT(n) + True + False + - + - 164 - 408 + 299 + 99 - build_assignments + binary_packages#ffffff @@ -864,103 +708,109 @@ 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 - currently_blocking - MEDIUMINT - False + sub_pkgrel_omitted + BIT + True False
- + - -19 - 365 + 604 + 88 - failed_builds + install_target_providers#ffffff id - MEDIUMINT + BIGINT True True - build_slave - MEDIUMINT - True - False - - - build_assignment + package BIGINT True False - date - TIMESTAMP - True - False - - - reason - SMALLINT + install_target + BIGINT True False - log_file - VARCHAR(512) + version + BIGINT True False - log_file_exists + install_target_is_group BIT True False @@ -968,35 +818,41 @@
- + - -53 - 240 + 803 + 261 - fail_reasons + repositories#ffffff id - SMALLINT + MEDIUMINT True True name - VARCHAR(32) + VARCHAR(64) True False - identifier - VARCHAR(64) + stability + SMALLINT True False - severity + is_on_master_mirror + BIT + True + False + + + architecture SMALLINT True False @@ -1004,197 +860,245 @@
- + - 816 - 57 + 598 + 736 - repository_stability_relations + git_repositories#ffffff id - MEDIUMINT + SMALLINT True True - more_stable - MEDIUMINT + name + VARCHAR(64) True False - less_stable - MEDIUMINT + url + VARCHAR(128) + True + False + + + directory + VARCHAR(128) + True + False + + + head + VARCHAR(40) True False
- + - 357 - 455 + 729 + 684 - statitstics + upstream_repositories#ffffff id - BIGINT + SMALLINT True True - date - TIMESTAMP + name + VARCHAR(64) True False - stable_packages_count - MEDIUMINT + git_repository + SMALLINT True False + +
+
+ + + 173 + 709 + + + package_sources + #ffffff + - pending_tasks_count - MEDIUMINT + id + BIGINT True - False + True - pending_packages_count - MEDIUMINT + pkgbase + VARCHAR(64) True False - staging_packages_count - MEDIUMINT + git_revision + VARCHAR(40) True False - testing_packages_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - tested_packages_count - MEDIUMINT + upstream_package_repository + SMALLINT True False - broken_tasks_count - MEDIUMINT + uses_upstream + BIT True False - dependency_loops_count - MEDIUMINT + uses_modification + BIT True False - dependency_looped_tasks_count - MEDIUMINT + commit_time + TIMESTAMP True False + +
+
+ + + 382 + 378 + + + architectures + #ffffff + - locked_tasks_count - MEDIUMINT + id + SMALLINT True - False + True - blocked_tasks_count - MEDIUMINT + name + VARCHAR(16) True False + +
+
+ + + 653 + 21 + + + install_targets + #ffffff + - next_tasks_count - MEDIUMINT + id + BIGINT True - False + True - architecture - SMALLINT + name + VARCHAR(64) True False
- + - 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 -
- + - 821 - -49 + -8 + 572 - todo_links + build_dependency_loops#ffffff - dependent + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -1202,18 +1106,18 @@
- + - 240 - -66 + 829 + 168 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -1223,46 +1127,58 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 106 - -51 + 793 + 497 - 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 +
- + - 68 - 42 + -55 + -72 - allowed_email_actions + email_log#ffffff @@ -1272,51 +1188,93 @@ 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
- + - -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 +
- + - 229 - 20 + 525 + 215 - ssh_keys + binary_packages_in_repositories#ffffff @@ -1326,69 +1284,87 @@ True - owner + package + BIGINT + True + False + + + repository MEDIUMINT True False - fingerprint - TEXT + is_to_be_deleted + BIT + True + False + + + last_moved + TIMESTAMP True False
- + - 656 - 380 + 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
- + - 901 - 641 + 483 + 57 - mirror_statuses + versions#ffffff @@ -1398,125 +1374,155 @@ True - protocol - VARCHAR(8) + order + BIGINT True False - url - VARCHAR(128) + epoch + MEDIUMINT True False - country - VARCHAR(64) + version + VARCHAR(32) True False + +
+
+ + + -23 + 750 + + + toolchain_order + #ffffff + + + number + SMALLINT + True + True + - country_code - VARCHAR(4) + pkgbase + VARCHAR(64) True False + +
+
+ + + 632 + 498 + + + upstream_packages + #ffffff + - last_sync + id BIGINT True - False + True - start - FLOAT + pkgname + VARCHAR(64) True False - stop - FLOAT + epoch + MEDIUMINT True False - isos - BIT + pkgver + VARCHAR(64) True False - ipv4 - BIT + pkgrel + MEDIUMINT True False - ipv6 - BIT + architecture + VARCHAR(6) True False - active - BIT + repository + SMALLINT True False
- + - 483.75 - 455 + 656 + 441.875 - 90 - + 180 + - 429.273 - 428.813 + 476.547 + 416.109 - 270 + 0 - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory - 14 + 1 0 - + - 699.898 - 618.813 + 656 + 410.938 - 270 - + 180 + - 778.818 - 684 + 476.547 + 403.406 - 90 - + 0 + @@ -1527,62 +1533,29 @@ Mandatory - 6 + 2 0 - + - 85.5469 - 775.406 - - 0 - - - - - 173 - 776.406 + 803 + 322.875 180 - - - - - - OneToOne - - Optional - Optional - - - 1 - 1 - - - - - - - - - 446.115 - 35.8125 - - 270 - + - 524.594 - 57 + 476.547 + 390.703 - 90 - + 0 + @@ -1598,24 +1571,24 @@ - + - 604 - 118.938 + 282.328 + 20 - 180 - + 90 + - 566.188 - 96.4063 + 275.289 + -15.1875 - 0 - + 270 + @@ -1626,29 +1599,29 @@ Mandatory - 3 + 1 0 - + - 496.672 - -35.3958 + 188.727 + 148 - 0 - + 90 + - 580 - -31.5938 + 282.328 + 84.8125 - 180 - + 270 + @@ -1659,29 +1632,29 @@ Mandatory - 3 + 2 0 - + - 496.672 - 0.208333 + -9.85156 + 48.8125 - 0 - + 270 + - 653 - 46.4063 + -5.27344 + 70 - 180 - + 90 + @@ -1692,37 +1665,37 @@ Mandatory - 2 + 3 0 - + - 734.844 - 261.406 + 68 + 74.4063 - 0 - + 180 + - 803 - 291.938 + 43.4531 + 95.4063 - 180 - + 0 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory 2 @@ -1730,24 +1703,24 @@ - + - 395.557 - 35.8125 + 142.789 + 42 - 270 - + 90 + - 381.93 - 99 + 159.328 + 13.8125 - 90 - + 270 + @@ -1763,24 +1736,24 @@ - + - 525 - 261.406 + 35.2969 + -11.5938 - 180 - + 0 + - 464.859 - 226.208 + 106 + -18.5938 - 0 - + 180 + @@ -1791,29 +1764,29 @@ Mandatory - 1 + 5 0 - + - 59.5313 - 180.406 + 212.656 + -18.5938 0 - + - 118 - 222.406 + 240 + -40.5938 180 - + @@ -1829,24 +1802,24 @@ - + - 911.133 - 575.813 + 948.234 + -32.0625 - 270 - + 0 + - 828.635 - 684 + 971 + -38.0625 - 90 - + 180 + @@ -1857,29 +1830,29 @@ Mandatory - 3 + 0 0 - + - - 871.755 - 497 + + 948.234 + -15.125 - 90 - + 0 + - 859.469 - 353.813 + 971 + -7.125 - 270 - + 180 + @@ -1895,24 +1868,24 @@ - + - 950.51 - 497 + 941.313 + 121.813 - 90 - + 270 + - 915.938 - 353.813 + 934.271 + 168 - 270 - + 90 + @@ -1928,24 +1901,24 @@ - + - 409.573 - 289.813 + 878.656 + 121.813 270 - + - 429.273 - 378 + 881.635 + 168 90 - + @@ -1956,29 +1929,29 @@ Mandatory - 9 + 1 0 - + - 887.703 - 261 + 31.5729 + 365 90 - + - 907.953 - 232.813 + -5.0625 + 318.813 270 - + @@ -1989,29 +1962,29 @@ Mandatory - 2 + 4 0 - + - 697.203 - 88 + 132.719 + 425.406 - 90 - + 0 + - 703.016 - 71.8125 + 164 + 457.604 - 270 - + 180 + @@ -2027,24 +2000,24 @@ - + - 604 - 149.875 + 82.1458 + 365 - 180 - + 90 + - 464.859 - 162.604 + 165.151 + 310.813 - 0 - + 270 + @@ -2060,24 +2033,24 @@ - + - 409.266 - 776.406 + 73.1953 + 572 - 0 - + 90 + - 729 - 716.406 + 164 + 507.208 180 - + @@ -2088,29 +2061,29 @@ Mandatory - 4 + 2 0 - + - 803.727 - 748.813 + 212.302 + 310.813 270 - + - 705.609 - 782.406 + 211.927 + 408 - 0 - + 90 + @@ -2121,29 +2094,29 @@ Mandatory - 2 + 3 0 - + - 235.891 - 556.813 + 354.286 + 289.813 270 - + - 291.133 - 709 + 259.854 + 408 90 - + @@ -2159,7 +2132,7 @@ - + @@ -2192,24 +2165,24 @@ - + - 354.286 - 289.813 + 235.891 + 556.813 270 - + - 259.854 - 408 + 291.133 + 709 90 - + @@ -2225,24 +2198,24 @@ - + - 212.302 - 296.813 + 803.727 + 748.813 270 - + - 211.927 - 408 + 705.609 + 782.406 - 90 - + 0 + @@ -2253,29 +2226,29 @@ Mandatory - 3 + 2 0 - + - 73.1953 - 572 + 409.266 + 776.406 - 90 - + 0 + - 164 - 507.208 + 729 + 716.406 180 - + @@ -2286,29 +2259,29 @@ Mandatory - 2 + 4 0 - + - 82.1458 - 365 + 604 + 149.875 - 90 - + 180 + - 165.151 - 296.813 + 464.859 + 162.604 - 270 - + 0 + @@ -2324,24 +2297,24 @@ - + - 132.719 - 425.406 + 697.203 + 88 - 0 - + 90 + - 164 - 457.604 + 703.016 + 71.8125 - 180 - + 270 + @@ -2357,24 +2330,24 @@ - + - 31.5729 - 365 + 887.703 + 261 90 - + - -5.0625 - 318.813 + 907.953 + 232.813 270 - + @@ -2385,29 +2358,62 @@ Mandatory - 4 + 2 0 - + - 941.313 - 121.813 + 409.573 + 289.813 + + 270 + + + + + 429.273 + 378 + + 90 + + + + + + OneToOne + + Mandatory + Mandatory + + + 9 + 0 + + + + + + + + + 871.755 + 497 - 270 - + 90 + - 934.271 - 168 + 859.469 + 353.813 - 90 - + 270 + @@ -2418,29 +2424,29 @@ Mandatory - 1 + 2 0 - + - 878.656 - 121.813 + 950.51 + 497 - 270 - + 90 + - 881.635 - 168 + 915.938 + 353.813 - 90 - + 270 + @@ -2451,29 +2457,29 @@ Mandatory - 2 + 1 0 - + - 948.234 - -32.0625 + 911.133 + 575.813 - 0 - + 270 + - 971 - -38.0625 + 828.635 + 684 - 180 - + 90 + @@ -2484,29 +2490,29 @@ Mandatory - 1 + 3 0 - + - 948.234 - -15.125 + 59.5313 + 180.406 0 - + - 971 - -7.125 + 118 + 229.406 180 - + @@ -2517,29 +2523,29 @@ Mandatory - 0 + 2 0 - + - 212.656 - -18.5938 + 525 + 261.406 - 0 - + 180 + - 240 - -40.5938 + 464.859 + 226.208 - 180 - + 0 + @@ -2550,29 +2556,29 @@ Mandatory - 2 + 1 0 - + - 35.2969 - -11.5938 + 395.557 + 35.8125 - 0 - + 270 + - 106 - -18.5938 + 381.93 + 99 - 180 - + 90 + @@ -2583,62 +2589,62 @@ Mandatory - 5 + 1 0 - + - 142.789 - 42 + 734.844 + 261.406 - 90 - + 0 + - 159.328 - 13.8125 + 803 + 291.938 - 270 - + 180 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 1 + 2 0 - + - 68 - 74.4063 + 496.672 + 0.208333 - 180 - + 0 + - 43.4531 - 95.4063 + 653 + 46.4063 - 0 - + 180 + @@ -2654,24 +2660,24 @@ - + - -9.85156 - 48.8125 + 496.672 + -35.3958 - 270 - + 0 + - -5.27344 - 70 + 580 + -31.5938 - 90 - + 180 + @@ -2687,24 +2693,24 @@ - + - 188.727 - 148 + 604 + 118.938 - 90 - + 180 + - 282.328 - 84.8125 + 566.188 + 96.4063 - 270 - + 0 + @@ -2715,29 +2721,29 @@ Mandatory - 2 + 3 0 - + - 282.328 - 20 + 446.115 + 35.8125 - 90 - + 270 + - 275.289 - -15.1875 + 524.594 + 57 - 270 - + 90 + @@ -2748,62 +2754,62 @@ Mandatory - 1 + 4 0 - + - 803 - 322.875 + 85.5469 + 775.406 - 180 - + 0 + - 476.547 - 390.703 + 173 + 776.406 - 0 - + 180 + OneToOne - Mandatory - Mandatory + Optional + Optional - 4 - 0 + 1 + 1 - + - 656 - 441.875 + 699.898 + 618.813 - 180 - + 270 + - 476.547 - 416.109 + 778.818 + 684 - 0 - + 90 + @@ -2814,40 +2820,40 @@ Mandatory - 2 + 6 0 - + - 656 - 410.938 + 483.75 + 455 - 180 - + 90 + - 476.547 - 403.406 + 429.273 + 428.813 - 0 + 270 - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 1 + 14 0 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index ff8debe..2ae42c4 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -603,6 +603,7 @@ build_slaves CREATE TABLE `build_slaves` ( `ssh_key` bigint(20) NOT NULL, `trials` mediumint(9) DEFAULT NULL, `is_sane` bit(1) NOT NULL, + `access_allowed` bit(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `currently_building` (`currently_building`), -- cgit v1.2.3-70-g09d2