From f09097f740f7760aaec72881aa6a0d034b7ad70b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 19 Feb 2019 08:58:40 +0100 Subject: new column in install_target_providers to reflect wether it is a group or a provides --- misc/database-layout.dmf | 1754 +++++++++++++++++++++++---------------------- misc/database-layout.dump | 3 +- 2 files changed, 882 insertions(+), 875 deletions(-) (limited to 'misc') diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index 72efaa4..7d08807 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,163 +2,133 @@ Relational - + - 29 - 569 + 956 + 420 - toolchain_order + mirror_statuses#ffffff - number - SMALLINT + id + BIGINT True True - pkgbase - VARCHAR(64) + protocol + VARCHAR(8) True False - -
-
- - - 483 - 57 - - - versions - #ffffff - - id - BIGINT + url + VARCHAR(128) True - True + False - order - BIGINT + country + VARCHAR(64) True False - epoch - MEDIUMINT + country_code + VARCHAR(4) True False - version - VARCHAR(32) + last_sync + BIGINT True False - -
-
- - - 398 - -74 - - - dependencies - #ffffff - - id - BIGINT + start + FLOAT True - True + False - dependent - BIGINT + stop + FLOAT True False - depending_on - BIGINT + isos + BIT True False - dependency_type - SMALLINT + ipv4 + BIT True False - version - BIGINT + ipv6 + BIT True False - version_relation - VARCHAR(2) + active + BIT True False
- + - 546 - 188 + 373 + 388 - binary_packages_in_repositories + architecture_compatibilities#ffffff id - BIGINT + MEDIUMINT True True - package - BIGINT + built_for + SMALLINT True False - repository - MEDIUMINT + runs_on + SMALLINT True False - is_to_be_deleted + fully_compatible BIT True False - - last_moved - TIMESTAMP - True - False -
- + - -52 - 134 + 229 + 20 - ssh_log + ssh_keys#ffffff @@ -168,25 +138,13 @@ True - date - TIMESTAMP - True - False - - - build_slave + owner MEDIUMINT - False - False - - - action - VARCHAR(32) True False - parameters + fingerprint TEXT True False @@ -194,108 +152,102 @@
- + - -55 - -72 + -54 + 70 - email_log + email_actions#ffffff id - BIGINT + MEDIUMINT True True - date - TIMESTAMP + name + VARCHAR(32) True False + +
+
+ + + 68 + 42 + + + allowed_email_actions + #ffffff + - success - BIT + id + BIGINT True - False - - - action - MEDIUMINT - False - False - - - count - MEDIUMINT - False - False + True gpg_key BIGINT - False + True False - comment - TEXT - False + action + MEDIUMINT + True False
- + - 488 - 475 + 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 -
- + - 770 - 345 + 240 + -66 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -305,38 +257,26 @@ True False - - bugtracker_category - VARCHAR(32) - False - False -
- + - 69 - 483 + 940 + 71 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -344,49 +284,55 @@
- + - 637 + 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 +
- + - 653 - 21 + 820 + 145 - install_targets + statitstics#ffffff @@ -396,135 +342,111 @@ True - name - VARCHAR(64) + date + TIMESTAMP True False - -
-
- - - 395 - 313 - - - architectures - #ffffff - - id - SMALLINT + stable_packages_count + MEDIUMINT True - True + False - name - VARCHAR(16) + pending_tasks_count + MEDIUMINT True False - -
-
- - - 248 - 499 - - - package_sources - #ffffff - - id - BIGINT + staging_packages_count + MEDIUMINT True - True + False - pkgbase - VARCHAR(64) + testing_packages_count + MEDIUMINT True False - git_revision - VARCHAR(40) + broken_tasks_count + MEDIUMINT True False - mod_git_revision - VARCHAR(40) + dependency_loops_count + MEDIUMINT True False - upsream_package_repository - SMALLINT + dependency_looped_tasks_count + MEDIUMINT True False - uses_upstream - BIT + locked_tasks_count + MEDIUMINT True False - uses_modification - BIT + blocked_tasks_count + MEDIUMINT True False - commit_time - TIMESTAMP + next_tasks_count + MEDIUMINT True False
- + - 528 - 571 + 756 + 452 - 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
- + - 811 - 553 + -53 + 240 - git_repositories + fail_reasons#ffffff @@ -535,38 +457,32 @@ 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
- + - 566 - 299 + -17 + 342 - repositories + failed_builds#ffffff @@ -576,75 +492,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 - -
-
- - - 618 - 100 - - - install_target_providers - #ffffff - - - id - BIGINT - True - True - - package - BIGINT - True - False - - - install_target - BIGINT + log_file + VARCHAR(512) True False - version - BIGINT + log_file_exists + BIT True False
- + - 299 - 99 + 196 + 326 - binary_packages + build_assignments#ffffff @@ -654,71 +546,47 @@ 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 - False -
@@ -788,13 +656,13 @@
- + - 196 - 326 + 299 + 99 - build_assignments + binary_packages#ffffff @@ -804,111 +672,165 @@ 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 +
- + - -17 - 342 + 613 + 86 - failed_builds + install_target_providers#ffffff id - MEDIUMINT + BIGINT True True - build_slave - MEDIUMINT + package + BIGINT True False - build_assignment + install_target BIGINT True False - date - TIMESTAMP + version + BIGINT True False - reason - SMALLINT + install_target_is_group + BIT True False + +
+
+ + + 566 + 299 + + + repositories + #ffffff + + + id + MEDIUMINT + True + True + - log_file - VARCHAR(512) + name + VARCHAR(64) True False - log_file_exists + stability + SMALLINT + True + False + + + is_on_master_mirror BIT True False + + architecture + SMALLINT + True + False +
- + - -53 - 240 + 811 + 553 - fail_reasons + git_repositories#ffffff @@ -919,62 +841,68 @@ 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
- + - 756 - 452 + 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
- + - 820 - 145 + 248 + 499 - statitstics + package_sources#ffffff @@ -984,133 +912,157 @@ True - date - TIMESTAMP + pkgbase + VARCHAR(64) True False - stable_packages_count - MEDIUMINT + git_revision + VARCHAR(40) True False - pending_tasks_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - staging_packages_count - MEDIUMINT + upsream_package_repository + SMALLINT True False - testing_packages_count - MEDIUMINT + uses_upstream + BIT True False - broken_tasks_count - MEDIUMINT + uses_modification + BIT True False - dependency_loops_count - MEDIUMINT + commit_time + TIMESTAMP True False + +
+
+ + + 395 + 313 + + + architectures + #ffffff + - dependency_looped_tasks_count - MEDIUMINT + id + SMALLINT True - False + True - locked_tasks_count - MEDIUMINT + name + VARCHAR(16) True False + +
+
+ + + 653 + 21 + + + install_targets + #ffffff + - blocked_tasks_count - MEDIUMINT + id + BIGINT True - False + True - next_tasks_count - MEDIUMINT + name + VARCHAR(64) True False
- + - 945 + 637 -70 - 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 -
- + - 940 - 71 + 69 + 483 - todo_links + build_dependency_loops#ffffff - dependent + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -1118,18 +1070,18 @@
- + - 240 - -66 + 770 + 345 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -1139,46 +1091,58 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 106 - -51 + 488 + 475 - 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 @@ -1188,51 +1152,51 @@ True - gpg_key - BIGINT + date + TIMESTAMP + True + False + + + success + BIT True False action MEDIUMINT - True + False False - -
-
- - - -54 - 70 - - - email_actions - #ffffff - - id + count MEDIUMINT - True - True + False + False - name - VARCHAR(32) - True + gpg_key + BIGINT + False + False + + + comment + TEXT + False False
- + - 229 - 20 + -52 + 134 - ssh_keys + ssh_log#ffffff @@ -1242,13 +1206,25 @@ True - owner + date + TIMESTAMP + True + False + + + build_slave MEDIUMINT + False + False + + + action + VARCHAR(32) True False - fingerprint + parameters TEXT True False @@ -1256,49 +1232,55 @@
- + - 373 - 388 + 546 + 188 - architecture_compatibilities + binary_packages_in_repositories#ffffff id - MEDIUMINT + BIGINT True True - built_for - SMALLINT + package + BIGINT True False - runs_on - SMALLINT + repository + MEDIUMINT True False - fully_compatible + is_to_be_deleted BIT True False + + last_moved + TIMESTAMP + True + False +
- + - 956 - 420 + 398 + -74 - mirror_statuses + dependencies#ffffff @@ -1308,125 +1290,149 @@ True - protocol - VARCHAR(8) + dependent + BIGINT True False - url - VARCHAR(128) + depending_on + BIGINT True False - country - VARCHAR(64) + dependency_type + SMALLINT True False - country_code - VARCHAR(4) + version + BIGINT True False - last_sync - BIGINT + version_relation + VARCHAR(2) True False + +
+
+ + + 483 + 57 + + + versions + #ffffff + - start - FLOAT + id + BIGINT True - False + True - stop - FLOAT + order + BIGINT True False - isos - BIT + epoch + MEDIUMINT True False - ipv4 - BIT + version + VARCHAR(32) True False + +
+
+ + + 29 + 569 + + + toolchain_order + #ffffff + - ipv6 - BIT + number + SMALLINT True - False + True - active - BIT + pkgbase + VARCHAR(64) True False
- + - 137.547 - 593.906 + 434.969 + 388 - 0 - + 90 + - 248 - 565.906 + 427.125 + 358.797 - 180 - + 270 + OneToOne - Optional - Optional + Mandatory + Mandatory 1 - 1 + 0 - + - 499.115 - 31.8125 + 496.938 + 388 - 270 - + 90 + - 524.594 - 57 + 459.25 + 358.797 - 90 - + 270 + @@ -1437,29 +1443,29 @@ Mandatory - 4 + 2 0 - + - 618 - 125.938 + 566 + 342.898 180 - + - 566.188 - 95.9062 + 491.375 + 335.898 0 - + @@ -1470,29 +1476,29 @@ Mandatory - 3 + 4 0 - + - 549.672 - -38.7292 + 282.078 + 20 - 0 - + 90 + - 637 - -31.0938 + 275.258 + -20.2031 - 180 - + 270 + @@ -1503,29 +1509,29 @@ Mandatory - 3 + 1 0 - + - 549.672 - -3.45833 + 190.617 + 148 - 0 - + 90 + - 653 - 45.9062 + 282.078 + 79.7969 - 180 - + 270 + @@ -1541,57 +1547,57 @@ - + - 650.922 - 279.812 + -10.2266 + 43.7969 270 - + - 650.703 - 299 + -5.02344 + 70 90 - + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory - 2 + 3 0 - + - 448.557 - 31.8125 + 68 + 71.8984 - 270 - + 180 + - 381.93 - 99 + 43.9531 + 92.8984 - 90 - + 0 + @@ -1602,29 +1608,29 @@ Mandatory - 1 + 2 0 - + - 546 - 233.906 + 143.469 + 42 - 180 - + 90 + - 464.859 - 225.542 + 159.078 + 8.79688 - 0 - + 270 + @@ -1640,24 +1646,24 @@ - + - 59.5312 - 179.906 + 34.5469 + -14.1016 0 - + - 118 - 221.906 + 106 + -21.1016 180 - + @@ -1668,29 +1674,29 @@ Mandatory - 2 + 5 0 - + - 606.133 - 552.812 + 212.156 + -21.1016 - 270 - + 0 + - 602.727 - 571 + 240 + -43.1016 - 90 - + 180 + @@ -1701,29 +1707,29 @@ Mandatory - 3 + 2 0 - + - 566.755 - 475 + 1024.78 + 71 90 - + - 622.469 - 390.812 + 1017.95 + 17.7969 270 - + @@ -1734,29 +1740,29 @@ Mandatory - 1 + 0 0 - + - 645.51 - 475 + 982.391 + 71 90 - + - 678.938 - 390.812 + 981.474 + 17.7969 270 - + @@ -1767,29 +1773,29 @@ Mandatory - 2 + 1 0 - + - 409.573 - 288.812 + 819.854 + 452 - 270 - + 90 + - 442.273 - 313 + 823.302 + 404.797 - 90 - + 270 + @@ -1800,28 +1806,28 @@ Mandatory - 9 + 2 0 - + - 735.406 - 344.906 + 883.708 + 452 - 0 - + 90 + - 770 - 376.906 + 876.604 + 404.797 - 180 + 270 @@ -1833,29 +1839,29 @@ Mandatory - 2 + 1 0 - + - 696.109 - 100 + 33.5521 + 342 90 - + - 703.016 - 70.8125 + -5.3125 + 313.797 270 - + @@ -1866,29 +1872,29 @@ Mandatory - 2 + 4 0 - + - 618 - 151.875 + 134.656 + 399.898 - 180 - + 0 + - 464.859 - 162.271 + 196 + 390.898 - 0 - + 180 + @@ -1899,29 +1905,29 @@ Mandatory - 1 + 2 0 - + - 478.531 - 565.906 + 84.1042 + 342 - 0 - + 90 + - 528 - 602.906 + 166.411 + 291.797 - 180 - + 270 + @@ -1932,29 +1938,29 @@ Mandatory - 4 + 1 0 - + - 677.453 - 602.906 + 150.555 + 483 - 0 - + 90 + - 811 - 598.906 + 242.953 + 455.797 - 180 - + 270 + @@ -1970,24 +1976,24 @@ - + - 289.948 - 459.812 + 214.823 + 291.797 270 - + - 363.266 - 499 + 242.953 + 326 90 - + @@ -1998,29 +2004,29 @@ Mandatory - 1 + 3 0 - + - 336.922 - 392.906 + 354.266 + 284.797 - 0 - + 270 + - 395 - 337.906 - - 180 - + 289.906 + 326 + + 90 + @@ -2031,29 +2037,29 @@ Mandatory - 2 + 1 0 - + - 354.286 - 288.812 + 336.859 + 390.898 - 270 - + 0 + - 289.948 - 326 + 395 + 335.898 - 90 - + 180 + @@ -2064,29 +2070,29 @@ Mandatory - 1 + 2 0 - + - 212.302 - 295.812 + 289.906 + 455.797 270 - + - 242.974 - 326 + 363.234 + 499 90 - + @@ -2097,29 +2103,29 @@ Mandatory - 3 + 1 0 - + - 150.195 - 483 + 679.281 + 600.898 - 90 - + 0 + - 242.974 - 459.812 + 811 + 596.898 - 270 - + 180 + @@ -2135,24 +2141,24 @@ - + - 84.1458 - 342 + 478.469 + 563.898 - 90 - + 0 + - 165.151 - 295.812 + 528 + 600.898 - 270 - + 180 + @@ -2163,29 +2169,29 @@ Mandatory - 1 + 4 0 - + - 134.719 - 401.906 + 613 + 144.531 - 0 - + 180 + - 196 - 392.906 + 464.797 + 160.932 - 180 - + 0 + @@ -2196,29 +2202,29 @@ Mandatory - 2 + 1 0 - + - 33.5729 - 342 + 706.172 + 86 90 - + - -5.28125 - 317.812 + 703.891 + 66.7969 270 - + @@ -2229,28 +2235,28 @@ Mandatory - 4 + 2 0 - + - 818.656 - 452 + 735.344 + 342.898 - 90 - + 0 + - 822.635 - 408.812 + 770 + 374.898 - 270 + 180 @@ -2262,29 +2268,29 @@ Mandatory - 1 + 2 0 - + - 881.312 - 452 + 409.531 + 284.797 - 90 - + 270 + - 875.271 - 408.812 + 443.188 + 313 - 270 - + 90 + @@ -2295,29 +2301,29 @@ Mandatory - 2 + 9 0 - + - 982.411 - 71 + 566.734 + 475 90 - + - 981.495 - 21.8125 + 622.448 + 386.797 270 - + @@ -2328,29 +2334,29 @@ Mandatory - 1 + 2 0 - + - 1024.82 - 71 + 645.469 + 475 90 - + - 1017.99 - 21.8125 + 678.896 + 386.797 270 - + @@ -2361,29 +2367,29 @@ Mandatory - 0 + 1 0 - + - 212.219 - -19.0938 + 606.102 + 548.797 - 0 - + 270 + - 240 - -41.0938 + 603.641 + 571 - 180 - + 90 + @@ -2394,29 +2400,29 @@ Mandatory - 2 + 3 0 - + - 35.2969 - -12.0938 + 59.4688 + 177.898 0 - + - 106 - -19.0938 + 118 + 219.898 180 - + @@ -2427,29 +2433,29 @@ Mandatory - 5 + 2 0 - + - 142.789 - 42 + 546 + 231.898 - 90 - + 180 + - 159.109 - 12.8125 + 464.797 + 222.865 - 270 - + 0 + @@ -2465,24 +2471,24 @@ - + - 68 - 73.9062 + 448.536 + 27.7969 - 180 - + 270 + - 43.4531 - 94.9062 + 381.898 + 99 - 0 - + 90 + @@ -2493,62 +2499,62 @@ Mandatory - 2 + 1 0 - + - -9.85156 - 47.8125 + 652.406 + 275.797 270 - + - -5.27344 - 70 + 650.672 + 299 90 - + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 3 + 2 0 - + - 188.727 - 148 + 549.609 + -6.13542 - 90 - + 0 + - 282.109 - 83.8125 + 653 + 43.8984 - 270 - + 180 + @@ -2564,24 +2570,24 @@ - + - 282.109 - 20 + 549.609 + -40.0677 - 90 - + 0 + - 275.289 - -16.1875 + 637 + -33.1016 - 270 - + 180 + @@ -2592,29 +2598,29 @@ Mandatory - 1 + 3 0 - + - 566 - 344.906 + 613 + 115.266 180 - + - 489.547 - 337.906 + 566.125 + 93.8984 0 - + @@ -2625,29 +2631,29 @@ Mandatory - 4 + 3 0 - + - 494.427 - 388 + 499.073 + 27.7969 - 90 - + 270 + - 458.031 - 362.812 + 524.562 + 57 - 270 - + 90 + @@ -2658,41 +2664,41 @@ Mandatory - 2 + 4 0 - + - 433.714 - 388 + 139.781 + 591.898 - 90 - + 0 + - 426.516 - 362.812 + 248 + 563.898 - 270 - + 180 + OneToOne - Mandatory - Mandatory + Optional + Optional 1 - 0 + 1 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index 664fbdb..4568bd9 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -780,8 +780,9 @@ install_target_providers CREATE TABLE `install_target_providers` ( `package` bigint(20) NOT NULL, `install_target` bigint(20) NOT NULL, `version` bigint(20) NOT NULL, + `install_target_is_group` bit(1) NOT NULL DEFAULT b'0', PRIMARY KEY (`id`), - UNIQUE KEY `content` (`package`,`install_target`,`version`), + UNIQUE KEY `content` (`package`,`install_target`,`version`,`install_target_is_group`), KEY `install_target_providers_ibfk_2` (`install_target`), KEY `version` (`version`), CONSTRAINT `install_target_providers_ibfk_1` FOREIGN KEY (`package`) REFERENCES `binary_packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, -- cgit v1.2.3-70-g09d2