From dd8de0e6238cb9ab6f48d727b4646d163e0ec961 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 16:00:30 +0200 Subject: new table `architecture_compatibilities` --- misc/database-layout.dmf | 1606 ++++++++++++++++++++++++--------------------- misc/database-layout.dump | 14 + 2 files changed, 865 insertions(+), 755 deletions(-) (limited to 'misc') diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index 92dce62..d2a9e1b 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,55 +2,43 @@ Relational - + - 543 - 182 + 360 + 400 - binary_packages_in_repositories + architecture_compatibilities#ffffff id - BIGINT - True - True - - - package - BIGINT - True - False - - - repository MEDIUMINT True - False + True - is_to_be_deleted - BIT + built_for + SMALLINT True False - last_moved - TIMESTAMP + runs_on + SMALLINT True False
- + - 42 - 135 + 237 + 40 - ssh_log + ssh_keys#ffffff @@ -60,25 +48,13 @@ True - date - TIMESTAMP - True - False - - - build_slave + owner MEDIUMINT - False - False - - - action - VARCHAR(32) True False - parameters + fingerprint TEXT True False @@ -86,133 +62,67 @@
- + - -55 - -72 + -59 + 73 - email_log + email_actions#ffffff id - BIGINT + MEDIUMINT True True - date - TIMESTAMP - True - False - - - success - BIT + name + VARCHAR(32) True False - - action - MEDIUMINT - False - False - - - count - MEDIUMINT - False - False - - - gpg_key - BIGINT - False - False - - - comment - TEXT - False - False -
- + - 494 - 427 + 68 + 49 - repository_moves + allowed_email_actions#ffffff id - MEDIUMINT + BIGINT True True - from_repository - MEDIUMINT + gpg_key + BIGINT True False - to_repository + action MEDIUMINT True False - - upstream_package_repository - SMALLINT - True - False - - -
-
- - - 788 - 281 - - - repository_stabilities - #ffffff - - - id - SMALLINT - True - True - - - name - VARCHAR(32) - True - False - - - bugtracker_category - VARCHAR(32) - False - False -
- + - 53 - 501 + 106 + -51 - build_dependency_loops + gpg_keys#ffffff @@ -222,32 +132,32 @@ True - loop - MEDIUMINT + fingerprint + VARCHAR(40) True False - build_assignment - BIGINT + owner + MEDIUMINT True False
- + - 540 - -64 + 258 + -44 - dependency_types + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -257,36 +167,18 @@ True False - - relevant_for_building - BIT - True - False - - - relevant_for_binary_packages - BIT - True - False -
- + - 348 + 788 -60 - dependencies + todo_links#ffffff - - id - BIGINT - True - True - dependent BIGINT @@ -299,22 +191,16 @@ True False - - dependency_type - SMALLINT - True - False -
- + - 557 - 30 + 945 + -70 - install_targets + todos#ffffff @@ -324,45 +210,39 @@ True - name + file VARCHAR(64) True False - -
-
- - - 415 - 321 - - - architectures - #ffffff - - id - SMALLINT + line + MEDIUMINT True - True + False - name - VARCHAR(16) + description + TEXT True False + + importance + SMALLINT + False + False +
- + - 226 - 473 + 777 + 32 - package_sources + statitstics#ffffff @@ -372,87 +252,111 @@ 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 + + + dependency_looped_tasks_count + MEDIUMINT + True + False + + + locked_tasks_count + MEDIUMINT + True + False + + + blocked_tasks_count + MEDIUMINT + True + False + + + next_tasks_count + MEDIUMINT True False
- + - 539 - 533 + 844 + 427 - 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
- + - 770 - 508 + -53 + 240 - git_repositories + fail_reasons#ffffff @@ -463,38 +367,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
- + - 549 - 301 + -17 + 342 - repositories + failed_builds#ffffff @@ -504,69 +402,45 @@ 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 - -
-
- - - 549 - 105 - - - install_target_providers - #ffffff - - - id - BIGINT - True - True - - - package - BIGINT - True - False - - install_target - BIGINT + log_file + VARCHAR(512) True False
- + - 360 - 56 + 187 + 311 - binary_packages + build_assignments#ffffff @@ -576,71 +450,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 -
@@ -710,13 +560,13 @@
- + - 247 - 291 + 360 + 56 - build_assignments + binary_packages#ffffff @@ -726,127 +576,139 @@ True - package_source + build_assignment BIGINT True False - architecture - SMALLINT + epoch + MEDIUMINT True False - is_blocked - VARCHAR(128) - False - False - - - is_black_listed - VARCHAR(128) - False - False - - - is_broken - BIT + pkgver + VARCHAR(64) True False - priority - SMALLINT + pkgrel + MEDIUMINT True False - return_date - TIMESTAMP - False - False - - -
-
- - - 53 - 346 - - - failed_builds - #ffffff - - - id + sub_pkgrel MEDIUMINT True - True + False - build_slave - MEDIUMINT + has_issues + BIT True False - build_assignment - BIGINT + is_tested + BIT True False - date - TIMESTAMP + pkgname + VARCHAR(64) True False - reason + architecture SMALLINT True False - log_file - VARCHAR(512) + sha512sum + VARCHAR(128) + False + False + + + sub_pkgrel_omitted + BIT True False
- + - -62 - 370 + 549 + 105 - fail_reasons + install_target_providers#ffffff id - SMALLINT + BIGINT True True - name - VARCHAR(32) - True + package + BIGINT + True False - identifier + install_target + BIGINT + True + False + + +
+
+ + + 625 + 307 + + + repositories + #ffffff + + + id + MEDIUMINT + True + True + + + name VARCHAR(64) True False - severity + stability + SMALLINT + True + False + + + is_on_master_mirror + BIT + True + False + + + architecture SMALLINT True False @@ -854,127 +716,169 @@
- + - 754 - 399 + 906 + 532 - 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
- + - 777 - 32 + 535 + 562 - 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 + +
+
+ + + 175 + 497 + + + package_sources + #ffffff + - pending_tasks_count - MEDIUMINT + id + BIGINT True - False + True - staging_packages_count - MEDIUMINT + pkgbase + VARCHAR(64) True False - testing_packages_count - MEDIUMINT + git_revision + VARCHAR(40) True False - broken_tasks_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - dependency_loops_count - MEDIUMINT + upsream_package_repository + SMALLINT True False - dependency_looped_tasks_count - MEDIUMINT + uses_upstream + BIT True False - locked_tasks_count - MEDIUMINT + uses_modification + BIT True False - blocked_tasks_count - MEDIUMINT + commit_time + TIMESTAMP True False + +
+
+ + + 399 + 289 + + + architectures + #ffffff + - next_tasks_count - MEDIUMINT + id + SMALLINT + True + True + + + name + VARCHAR(16) True False
- + - 945 - -70 + 557 + 30 - todos + install_targets#ffffff @@ -984,49 +888,109 @@ True - file + name VARCHAR(64) True False + +
+
+ + + 348 + -60 + + + dependencies + #ffffff + + + id + BIGINT + True + True + - line - MEDIUMINT + dependent + BIGINT True False - description - TEXT + depending_on + BIGINT True False - importance + dependency_type SMALLINT - False + True False
- + - 788 - -60 + 540 + -64 - todo_links + dependency_types#ffffff - dependent + id + SMALLINT + True + True + + + name + VARCHAR(32) + True + False + + + relevant_for_building + BIT + True + False + + + relevant_for_binary_packages + BIT + True + False + + +
+
+ + + -21 + 537 + + + build_dependency_loops + #ffffff + + + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -1034,18 +998,18 @@
- + - 258 - -44 + 856 + 280 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -1055,46 +1019,58 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 106 - -51 + 585 + 455 - 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 - 49 + -55 + -72 - allowed_email_actions + email_log#ffffff @@ -1104,51 +1080,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
- + - -68 - 71 + -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 +
- + - 237 - 40 + 543 + 182 - ssh_keys + binary_packages_in_repositories#ffffff @@ -1158,46 +1176,91 @@ True - owner + package + BIGINT + True + False + + + repository MEDIUMINT True False - fingerprint - TEXT + is_to_be_deleted + BIT + True + False + + + last_moved + TIMESTAMP True False
- + + + + + + 420.714 + 400 + + 90 + + + + + 430.516 + 338.812 + + 270 + + + + + + OneToOne + + Mandatory + Mandatory + + + 1 + 0 + + + + - 647.922 - 273.812 + 481.427 + 400 - 270 - + 90 + - 633.703 - 301 + 462.031 + 338.812 - 90 - + 270 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory 2 @@ -1205,24 +1268,24 @@ - + - 543 - 227.906 + 625 + 352.906 180 - + - 525.859 - 182.542 + 493.547 + 313.906 0 - + @@ -1233,30 +1296,63 @@ Mandatory - 1 + 4 0 - + - 153.531 - 180.906 + 290.109 + 40 - 0 - + 90 + - 185 - 195.906 + 293.289 + 5.8125 - 180 + 270 + + + + + + OneToOne + + Mandatory + Mandatory + + + 1 + 0 + + + + + + + + + 255.727 + 122 + + 90 + + + 290.109 + 103.812 + + 270 + + @@ -1271,24 +1367,24 @@ - + - 612.133 - 504.812 + -9.85156 + 47.8125 270 - + - 613.727 - 533 + -10.2734 + 73 90 - + @@ -1304,24 +1400,24 @@ - + - 572.755 - 427 + 68 + 80.9062 - 90 - + 180 + - 605.469 - 392.812 + 38.4531 + 97.9062 - 270 - + 0 + @@ -1332,29 +1428,29 @@ Mandatory - 1 + 2 0 - + - 651.51 - 427 + 142.789 + 49 90 - + - 661.938 - 392.812 + 159.109 + 12.8125 270 - + @@ -1365,29 +1461,29 @@ Mandatory - 2 + 1 0 - + - 470.573 - 245.812 + 35.2969 + -12.0938 - 270 - + 0 + - 462.273 - 321 + 106 + -19.0938 - 90 - + 180 + @@ -1398,29 +1494,29 @@ Mandatory - 9 + 5 0 - + - 499.672 - -34.0625 + 212.219 + -19.0938 0 - + - 540 - -25.0938 + 258 + -19.0938 180 - + @@ -1431,29 +1527,29 @@ Mandatory - 3 + 2 0 - + - 718.406 - 346.906 + 915.234 + -43.3958 0 - + - 788 - 312.906 + 945 + -39.3958 180 - + @@ -1464,29 +1560,29 @@ Mandatory - 2 + 0 0 - + - 499.672 - -8.125 + 915.234 + -26.7917 0 - + - 557 - 54.9062 + 945 + -8.79167 180 - + @@ -1497,29 +1593,29 @@ Mandatory - 2 + 1 0 - + - 627.109 - 105 + 906.656 + 427 90 - + - 607.016 - 79.8125 + 908.635 + 343.812 270 - + @@ -1535,24 +1631,24 @@ - + - 423.836 - 17.8125 + 969.312 + 427 - 270 - + 90 + - 442.93 - 56 + 961.271 + 343.812 - 90 - + 270 + @@ -1568,24 +1664,24 @@ - + - 549 - 136.906 + 33.5729 + 342 - 180 - + 90 + - 525.859 - 119.271 + -5.28125 + 317.812 - 0 - + 270 + @@ -1596,29 +1692,29 @@ Mandatory - 1 + 4 0 - + - 456.531 - 539.906 + 134.719 + 394.906 0 - + - 539 - 564.906 + 187 + 377.906 180 - + @@ -1629,29 +1725,29 @@ Mandatory - 4 + 2 0 - + - 688.453 - 564.906 + 84.1458 + 342 - 0 - + 90 + - 770 - 553.906 + 185 + 220.542 180 - + @@ -1662,29 +1758,29 @@ Mandatory - 2 + 1 0 - + - 340.948 - 424.812 + 60.1953 + 537 - 270 - + 90 + - 341.266 - 473 + 233.974 + 444.812 - 90 - + 270 + @@ -1695,29 +1791,29 @@ Mandatory - 1 + 2 0 - + - 387.922 - 357.906 + 255.727 + 269.812 - 0 - + 270 + - 415 - 345.906 + 233.974 + 311 - 180 - + 90 + @@ -1728,7 +1824,7 @@ Mandatory - 2 + 3 0 @@ -1746,8 +1842,8 @@ - 340.948 - 291 + 280.948 + 311 90 @@ -1766,24 +1862,24 @@ - + - 279.302 - 269.812 + 327.922 + 377.906 - 270 - + 0 + - 293.974 - 291 + 399 + 313.906 - 90 - + 180 + @@ -1794,29 +1890,29 @@ Mandatory - 3 + 2 0 - + - 134.195 - 501 + 280.948 + 444.812 - 90 - + 270 + - 293.974 - 424.812 + 290.266 + 497 - 270 - + 90 + @@ -1827,29 +1923,29 @@ Mandatory - 2 + 1 0 - + - 128.859 - 346 + 684.453 + 593.906 - 90 - + 0 + - 232.151 - 269.812 + 906 + 577.906 - 270 - + 180 + @@ -1860,29 +1956,29 @@ Mandatory - 1 + 2 0 - + - 204.719 - 398.906 + 405.531 + 563.906 0 - + - 247 - 357.906 + 535 + 593.906 180 - + @@ -1893,29 +1989,29 @@ Mandatory - 2 + 4 0 - + - 53 - 398.906 + 549 + 136.906 180 - + - 33.4375 - 408.906 + 525.859 + 119.271 0 - + @@ -1926,29 +2022,29 @@ Mandatory - 4 + 1 0 - + - 816.656 - 399 + 423.836 + 17.8125 - 90 - + 270 + - 840.635 - 344.812 + 442.93 + 56 - 270 - + 90 + @@ -1964,24 +2060,24 @@ - + - 879.312 - 399 + 627.109 + 105 90 - + - 893.271 - 344.812 + 607.016 + 79.8125 270 - + @@ -1997,24 +2093,24 @@ - + - 915.234 - -43.3958 + 499.672 + -8.125 0 - + - 945 - -39.3958 + 557 + 54.9062 180 - + @@ -2025,29 +2121,29 @@ Mandatory - 1 + 2 0 - + - 915.234 - -26.7917 + 794.406 + 352.906 0 - + - 945 - -8.79167 + 856 + 311.906 180 - + @@ -2058,29 +2154,29 @@ Mandatory - 0 + 2 0 - + - 212.219 - -19.0938 + 499.672 + -34.0625 0 - + - 258 - -19.0938 + 540 + -25.0938 180 - + @@ -2091,29 +2187,29 @@ Mandatory - 2 + 3 0 - + - 35.2969 - -12.0938 + 470.573 + 245.812 - 0 - + 270 + - 106 - -19.0938 + 446.273 + 289 - 180 - + 90 + @@ -2124,29 +2220,29 @@ Mandatory - 5 + 9 0 - + - 142.789 - 49 + 663.755 + 455 90 - + - 159.109 - 12.8125 + 681.469 + 398.812 270 - + @@ -2157,29 +2253,29 @@ Mandatory - 1 + 2 0 - + - 68 - 80.9062 + 742.51 + 455 - 180 - + 90 + - 29.4531 - 95.9062 + 737.938 + 398.812 - 0 - + 270 + @@ -2190,29 +2286,29 @@ Mandatory - 2 + 1 0 - + - -9.85156 - 47.8125 + 703.133 + 532.812 270 - + - -19.2734 - 71 + 609.727 + 562 90 - + @@ -2228,24 +2324,24 @@ - + - 255.727 - 122 + 59.5312 + 179.906 - 90 - + 0 + - 290.109 - 103.812 + 185 + 171.271 - 270 - + 180 + @@ -2261,24 +2357,24 @@ - + - 290.109 - 40 + 543 + 227.906 - 90 - + 180 + - 293.289 - 5.8125 + 525.859 + 182.542 - 270 - + 0 + @@ -2294,35 +2390,35 @@ - + - 549 - 346.906 + 647.922 + 273.812 - 180 - + 270 + - 509.547 - 345.906 + 709.703 + 307 - 0 - + 90 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 4 + 2 0 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index 0cd7493..e4afcba 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -333,6 +333,16 @@ allowed_email_actions CREATE TABLE `allowed_email_actions` ( CONSTRAINT `allowed_email_actions_ibfk_1` FOREIGN KEY (`action`) REFERENCES `email_actions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `allowed_email_actions_ibfk_2` FOREIGN KEY (`gpg_key`) REFERENCES `gpg_keys` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci +architecture_compatibilities CREATE TABLE `architecture_compatibilities` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT, + `built_for` smallint(6) NOT NULL, + `runs_on` smallint(6) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `content` (`built_for`,`runs_on`), + KEY `architecture_compatibilities_ibfk_2` (`runs_on`), + CONSTRAINT `architecture_compatibilities_ibfk_1` FOREIGN KEY (`built_for`) REFERENCES `architectures` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `architecture_compatibilities_ibfk_2` FOREIGN KEY (`runs_on`) REFERENCES `architectures` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci architectures CREATE TABLE `architectures` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `name` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, @@ -638,6 +648,10 @@ upstream_repositories CREATE TABLE `upstream_repositories` ( INSERT INTO `architectures` VALUES (1,'any'), (2,'i686'); +INSERT INTO `architecture_compatibilities` VALUES + (1,1,1), + (3,1,2), + (2,2,2); INSERT INTO `dependency_types` VALUES (2,'run','1','1'), (3,'check','\0','\0'), -- cgit v1.2.3-70-g09d2