From 5b18b6f2cfe011660f2c49b69caf91092b32b0fb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Sep 2018 12:30:33 +0200 Subject: misc/database-layout.dump, misc/database-layout.dmf: represent toolchain_order correctly --- misc/database-layout.dmf | 1735 +++++++++++++++++++++++---------------------- misc/database-layout.dump | 14 + 2 files changed, 910 insertions(+), 839 deletions(-) (limited to 'misc') diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index 2c38a3c..72efaa4 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,133 +2,163 @@ Relational - + - 956 - 420 + 29 + 569 - mirror_statuses + toolchain_order#ffffff - id - BIGINT + number + SMALLINT True True - protocol - VARCHAR(8) + pkgbase + VARCHAR(64) True False + +
+
+ + + 483 + 57 + + + versions + #ffffff + - url - VARCHAR(128) + id + BIGINT True - False + True - country - VARCHAR(64) + order + BIGINT True False - country_code - VARCHAR(4) + epoch + MEDIUMINT True False - last_sync - BIGINT + version + VARCHAR(32) True False + +
+
+ + + 398 + -74 + + + dependencies + #ffffff + - start - FLOAT + id + BIGINT True - False + True - stop - FLOAT + dependent + BIGINT True False - isos - BIT + depending_on + BIGINT True False - ipv4 - BIT + dependency_type + SMALLINT True False - ipv6 - BIT + version + BIGINT True False - active - BIT + version_relation + VARCHAR(2) True False
- + - 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 +
- + - 229 - 20 + -52 + 134 - ssh_keys + ssh_log#ffffff @@ -138,13 +168,25 @@ True - owner + date + TIMESTAMP + True + False + + + build_slave MEDIUMINT + False + False + + + action + VARCHAR(32) True False - fingerprint + parameters TEXT True False @@ -152,102 +194,108 @@
- + - -54 - 70 + -55 + -72 - email_actions + email_log#ffffff id - MEDIUMINT + BIGINT True True - name - VARCHAR(32) + date + TIMESTAMP True False - -
-
- - - 68 - 42 - - - allowed_email_actions - #ffffff - - id - BIGINT + success + BIT True - True + False + + + action + MEDIUMINT + False + False + + + count + MEDIUMINT + False + False gpg_key BIGINT - True + False False - action - MEDIUMINT - True + comment + TEXT + 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 +
- + - 240 - -66 + 770 + 345 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -257,26 +305,38 @@ True False + + bugtracker_category + VARCHAR(32) + 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 @@ -284,55 +344,49 @@
- + - 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 -
- + - 820 - 145 + 653 + 21 - statitstics + install_targets#ffffff @@ -342,111 +396,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 + upsream_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
- + - 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
- + - -53 - 240 + 811 + 553 - fail_reasons + git_repositories#ffffff @@ -457,32 +535,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 + 566 + 299 - failed_builds + repositories#ffffff @@ -492,51 +576,75 @@ 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 + +
+
+ + + 618 + 100 + + + install_target_providers + #ffffff + - log_file - VARCHAR(512) + id + BIGINT + True + True + + + package + BIGINT True False - log_file_exists - BIT + install_target + BIGINT + True + False + + + version + BIGINT True False
- + - 196 - 326 + 299 + 99 - build_assignments + binary_packages#ffffff @@ -546,47 +654,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 +
@@ -656,13 +788,13 @@
- + - 299 - 99 + 196 + 326 - binary_packages + build_assignments#ffffff @@ -672,159 +804,111 @@ True - build_assignment + package_source BIGINT True False - epoch - MEDIUMINT + architecture + SMALLINT True False - pkgver - VARCHAR(64) - True - False - - - pkgrel - MEDIUMINT - 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 -
- + - 618 - 100 + -17 + 342 - install_target_providers + failed_builds#ffffff id - BIGINT + MEDIUMINT True True - package - BIGINT - True - False - - - install_target - BIGINT + build_slave + MEDIUMINT True False - version + build_assignment BIGINT True False - -
-
- - - 566 - 299 - - - repositories - #ffffff - - id - MEDIUMINT - True - True - - - name - VARCHAR(64) + date + TIMESTAMP True False - stability + reason SMALLINT True False - is_on_master_mirror - BIT + log_file + VARCHAR(512) True False - architecture - SMALLINT + log_file_exists + BIT True False
- + - 811 - 553 + -53 + 240 - git_repositories + fail_reasons#ffffff @@ -835,68 +919,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 + 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
- + - 21 - 510 + 820 + 145 - package_sources + statitstics#ffffff @@ -906,157 +984,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 - -
-
- - - 395 - 313 - - - architectures - #ffffff - - id - SMALLINT + dependency_looped_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(16) + locked_tasks_count + MEDIUMINT True False - -
-
- - - 653 - 21 - - - install_targets - #ffffff - - id - BIGINT + blocked_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(64) + next_tasks_count + MEDIUMINT True False
- + - 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 +
- + - 282 - 497 + 940 + 71 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -1064,18 +1118,18 @@
- + - 770 - 345 + 240 + -66 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -1085,58 +1139,46 @@ True False - - bugtracker_category - VARCHAR(32) - False - 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 -
- + - -55 - -72 + 68 + 42 - email_log + allowed_email_actions#ffffff @@ -1146,51 +1188,51 @@ True - date - TIMESTAMP - True - False - - - success - BIT + gpg_key + BIGINT True False action MEDIUMINT - False + True False + +
+
+ + + -54 + 70 + + + email_actions + #ffffff + - count + id MEDIUMINT - False - False - - - gpg_key - BIGINT - False - False + True + True - comment - TEXT - False + name + VARCHAR(32) + True False
- + - -52 - 134 + 229 + 20 - ssh_log + ssh_keys#ffffff @@ -1200,25 +1242,13 @@ True - date - TIMESTAMP - True - False - - - build_slave + owner MEDIUMINT - False - False - - - action - VARCHAR(32) True False - parameters + fingerprint TEXT True False @@ -1226,55 +1256,49 @@
- + - 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 -
- + - 398 - -74 + 956 + 420 - dependencies + mirror_statuses#ffffff @@ -1284,125 +1308,125 @@ True - dependent - BIGINT + protocol + VARCHAR(8) True False - depending_on - BIGINT + url + VARCHAR(128) True False - dependency_type - SMALLINT + country + VARCHAR(64) + True + False + + + country_code + VARCHAR(4) + True + False + + + last_sync + BIGINT True False - version - BIGINT + start + FLOAT True False - version_relation - VARCHAR(2) + 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
- + - 433.714 - 388 + 137.547 + 593.906 - 90 - + 0 + - 426.516 - 362.812 + 248 + 565.906 - 270 - + 180 + OneToOne - Mandatory - Mandatory + Optional + Optional 1 - 0 + 1 - + - 494.427 - 388 + 499.115 + 31.8125 - 90 - + 270 + - 458.031 - 362.812 + 524.594 + 57 - 270 - + 90 + @@ -1413,29 +1437,29 @@ Mandatory - 2 + 4 0 - + - 566 - 344.906 + 618 + 125.938 180 - + - 489.547 - 337.906 + 566.188 + 95.9062 0 - + @@ -1446,29 +1470,29 @@ Mandatory - 4 + 3 0 - + - 282.109 - 20 + 549.672 + -38.7292 - 90 - + 0 + - 275.289 - -16.1875 + 637 + -31.0938 - 270 - + 180 + @@ -1479,29 +1503,29 @@ Mandatory - 1 + 3 0 - + - 188.727 - 148 + 549.672 + -3.45833 - 90 - + 0 + - 282.109 - 83.8125 + 653 + 45.9062 - 270 - + 180 + @@ -1517,24 +1541,57 @@ - + - -9.85156 - 47.8125 + 650.922 + 279.812 270 - + - -5.27344 - 70 + 650.703 + 299 90 - + + + + + + OneToMany + + Optional + Optional + + + 2 + 0 + + + + + + + + + 448.557 + 31.8125 + + 270 + + + + + 381.93 + 99 + + 90 + @@ -1545,29 +1602,29 @@ Mandatory - 3 + 1 0 - + - 68 - 73.9062 + 546 + 233.906 180 - + - 43.4531 - 94.9062 + 464.859 + 225.542 0 - + @@ -1578,29 +1635,29 @@ Mandatory - 2 + 1 0 - + - 142.789 - 42 + 59.5312 + 179.906 - 90 - + 0 + - 159.109 - 12.8125 + 118 + 221.906 - 270 - + 180 + @@ -1611,29 +1668,29 @@ Mandatory - 1 + 2 0 - + - 35.2969 - -12.0938 + 606.133 + 552.812 - 0 - + 270 + - 106 - -19.0938 + 602.727 + 571 - 180 - + 90 + @@ -1644,29 +1701,29 @@ Mandatory - 5 + 3 0 - + - 212.219 - -19.0938 + 566.755 + 475 - 0 - + 90 + - 240 - -41.0938 + 622.469 + 390.812 - 180 - + 270 + @@ -1677,29 +1734,29 @@ Mandatory - 2 + 1 0 - + - 982.411 - 71 + 645.51 + 475 90 - + - 981.495 - 21.8125 + 678.938 + 390.812 270 - + @@ -1710,29 +1767,29 @@ Mandatory - 0 + 2 0 - + - 1024.82 - 71 + 409.573 + 288.812 - 90 - + 270 + - 1017.99 - 21.8125 + 442.273 + 313 - 270 - + 90 + @@ -1743,28 +1800,28 @@ Mandatory - 1 + 9 0 - + - 818.656 - 452 + 735.406 + 344.906 - 90 - + 0 + - 822.635 - 408.812 + 770 + 376.906 - 270 + 180 @@ -1781,24 +1838,24 @@ - + - 881.312 - 452 + 696.109 + 100 90 - + - 875.271 - 408.812 + 703.016 + 70.8125 270 - + @@ -1809,29 +1866,29 @@ Mandatory - 1 + 2 0 - + - 33.5729 - 342 + 618 + 151.875 - 90 - + 180 + - -5.28125 - 317.812 + 464.859 + 162.271 - 270 - + 0 + @@ -1842,29 +1899,29 @@ Mandatory - 4 + 1 0 - + - 134.719 - 401.906 + 478.531 + 565.906 0 - + - 196 - 392.906 + 528 + 602.906 180 - + @@ -1875,29 +1932,29 @@ Mandatory - 2 + 4 0 - + - 84.1458 - 342 + 677.453 + 602.906 - 90 - + 0 + - 165.151 - 295.812 + 811 + 598.906 - 270 - + 180 + @@ -1908,22 +1965,14 @@ Mandatory - 1 + 2 0 - + - - - 363.195 - 497 - - 90 - - 289.948 @@ -1932,6 +1981,14 @@ 270 + + + 363.266 + 499 + + 90 + + @@ -1941,29 +1998,29 @@ Mandatory - 2 + 1 0 - + - 212.302 - 295.812 + 336.922 + 392.906 - 270 - + 0 + - 242.974 - 326 + 395 + 337.906 - 90 - + 180 + @@ -1974,7 +2031,7 @@ Mandatory - 3 + 2 0 @@ -2012,24 +2069,24 @@ - + - 336.922 - 392.906 + 212.302 + 295.812 - 0 - + 270 + - 395 - 337.906 + 242.974 + 326 - 180 - + 90 + @@ -2040,29 +2097,29 @@ Mandatory - 2 + 3 0 - + - 242.974 - 459.812 + 150.195 + 483 - 270 - + 90 + - 136.266 - 510 + 242.974 + 459.812 - 90 - + 270 + @@ -2073,29 +2130,29 @@ Mandatory - 1 + 2 0 - + - 677.453 - 602.906 + 84.1458 + 342 - 0 - + 90 + - 811 - 598.906 + 165.151 + 295.812 - 180 - + 270 + @@ -2106,29 +2163,29 @@ Mandatory - 2 + 1 0 - + - 251.531 - 576.906 + 134.719 + 401.906 0 - + - 528 - 602.906 + 196 + 392.906 180 - + @@ -2139,29 +2196,29 @@ Mandatory - 4 + 2 0 - + - 618 - 151.875 + 33.5729 + 342 - 180 - + 90 + - 464.859 - 162.271 + -5.28125 + 317.812 - 0 - + 270 + @@ -2172,29 +2229,29 @@ Mandatory - 1 + 4 0 - + - 696.109 - 100 + 818.656 + 452 90 - + - 703.016 - 70.8125 + 822.635 + 408.812 270 - + @@ -2205,28 +2262,28 @@ Mandatory - 2 + 1 0 - + - 735.406 - 344.906 + 881.312 + 452 - 0 - + 90 + - 770 - 376.906 + 875.271 + 408.812 - 180 + 270 @@ -2243,24 +2300,24 @@ - + - 409.573 - 288.812 + 982.411 + 71 - 270 - + 90 + - 442.273 - 313 + 981.495 + 21.8125 - 90 - + 270 + @@ -2271,29 +2328,29 @@ Mandatory - 9 + 1 0 - + - 566.755 - 475 + 1024.82 + 71 90 - + - 622.469 - 390.812 + 1017.99 + 21.8125 270 - + @@ -2304,29 +2361,29 @@ Mandatory - 2 + 0 0 - + - 645.51 - 475 + 212.219 + -19.0938 - 90 - + 0 + - 678.938 - 390.812 + 240 + -41.0938 - 270 - + 180 + @@ -2337,29 +2394,29 @@ Mandatory - 1 + 2 0 - + - 606.133 - 552.812 + 35.2969 + -12.0938 - 270 - + 0 + - 602.727 - 571 + 106 + -19.0938 - 90 - + 180 + @@ -2370,29 +2427,29 @@ Mandatory - 3 + 5 0 - + - 59.5312 - 179.906 + 142.789 + 42 - 0 - + 90 + - 118 - 221.906 + 159.109 + 12.8125 - 180 - + 270 + @@ -2403,29 +2460,29 @@ Mandatory - 2 + 1 0 - + - 546 - 233.906 + 68 + 73.9062 180 - + - 464.859 - 225.542 + 43.4531 + 94.9062 0 - + @@ -2436,29 +2493,29 @@ Mandatory - 1 + 2 0 - + - 448.557 - 31.8125 + -9.85156 + 47.8125 270 - + - 381.93 - 99 + -5.27344 + 70 90 - + @@ -2469,37 +2526,37 @@ Mandatory - 1 + 3 0 - + - 650.922 - 279.812 + 188.727 + 148 - 270 - + 90 + - 650.703 - 299 + 282.109 + 83.8125 - 90 - + 270 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory 2 @@ -2507,24 +2564,24 @@ - + - 549.672 - -3.45833 + 282.109 + 20 - 0 - + 90 + - 653 - 45.9062 + 275.289 + -16.1875 - 180 - + 270 + @@ -2535,29 +2592,29 @@ Mandatory - 2 + 1 0 - + - 549.672 - -38.7292 + 566 + 344.906 - 0 - + 180 + - 637 - -31.0938 + 489.547 + 337.906 - 180 - + 0 + @@ -2568,29 +2625,29 @@ Mandatory - 3 + 4 0 - + - 618 - 125.938 + 494.427 + 388 - 180 - + 90 + - 566.188 - 95.9062 + 458.031 + 362.812 - 0 - + 270 + @@ -2601,29 +2658,29 @@ Mandatory - 3 + 2 0 - + - 499.115 - 31.8125 + 433.714 + 388 - 270 - + 90 + - 524.594 - 57 + 426.516 + 362.812 - 90 - + 270 + @@ -2634,7 +2691,7 @@ Mandatory - 4 + 1 0 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index 7862557..0db5f96 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -910,6 +910,13 @@ todos CREATE TABLE `todos` ( `importance` smallint(6) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci +toolchain_order CREATE TABLE `toolchain_order` ( + `number` smallint(6) NOT NULL, + `pkgbase` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`number`), + KEY `pkgbase` (`pkgbase`), + CONSTRAINT `pkgbase` FOREIGN KEY (`pkgbase`) REFERENCES `package_sources` (`pkgbase`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci upstream_repositories CREATE TABLE `upstream_repositories` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, @@ -1047,6 +1054,13 @@ INSERT INTO `repository_stability_relations` VALUES (2,3,6), (23,4,4), (4,5,6); +INSERT INTO `toolchain_order` VALUES + (2,'binutils'), + (4,'binutils'), + (3,'gcc'), + (1,'glibc'), + (5,'glibc'), + (0,'linux-api-headers'); INSERT INTO `upstream_repositories` VALUES (4,'community',2), (1,'core',1), -- cgit v1.2.3-70-g09d2