From 5450a8b73b77b4ceae59a283b38b0601f3f7a7ab Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 3 May 2018 15:31:54 +0200 Subject: `binary_packages_in_repositories` new, but not yet used --- misc/database-layout.dmf | 1469 +++++++++++++++++++++++---------------------- misc/database-layout.dump | 10 + 2 files changed, 776 insertions(+), 703 deletions(-) (limited to 'misc') diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index b9d8612..1e3a23a 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,13 +2,13 @@ Relational - + - 237 - 40 + 543 + 182 - ssh_keys + binary_packages_in_repositories#ffffff @@ -18,51 +18,69 @@ True - owner - MEDIUMINT + package + BIGINT True False - fingerprint - TEXT + repository + MEDIUMINT True False
- + - -68 - 71 + 42 + 135 - email_actions + ssh_log#ffffff id - MEDIUMINT + BIGINT True True - name + date + DATETIME + True + False + + + build_slave + MEDIUMINT + False + False + + + action VARCHAR(32) True False + + parameters + TEXT + True + False +
- + - 68 - 49 + -55 + -72 - allowed_email_actions + email_log#ffffff @@ -72,62 +90,92 @@ True - gpg_key - BIGINT + date + DATETIME + 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 + 481 + 395 - 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 +
- + - 258 - -44 + 763 + 241 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -137,26 +185,38 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 788 - -60 + 53 + 501 - todo_links + build_dependency_loops#ffffff - dependent + id BIGINT True + True + + + loop + MEDIUMINT + True False - depending_on + build_assignment BIGINT True False @@ -164,55 +224,49 @@
- + - 945 - -70 + 540 + -64 - 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 -
- + - 737 - 38 + 348 + -60 - statitstics + dependencies#ffffff @@ -222,111 +276,141 @@ True - date - DATETIME + dependent + BIGINT True False - stable_packages_count - MEDIUMINT + depending_on + BIGINT True False - pending_tasks_count - MEDIUMINT + dependency_type + SMALLINT True False + +
+
+ + + 557 + 30 + + + install_targets + #ffffff + - staging_packages_count - MEDIUMINT + id + BIGINT True - False + True - testing_packages_count - MEDIUMINT + name + VARCHAR(64) True False + +
+
+ + + 415 + 321 + + + architectures + #ffffff + - broken_tasks_count - MEDIUMINT + id + SMALLINT True - False + True - dependency_loops_count - MEDIUMINT + name + VARCHAR(16) True False + +
+
+ + + 226 + 473 + + + package_sources + #ffffff + + + id + BIGINT + True + True + - dependency_looped_tasks_count - MEDIUMINT + pkgbase + VARCHAR(64) True False - locked_tasks_count - MEDIUMINT + git_revision + VARCHAR(40) True False - blocked_tasks_count - MEDIUMINT + mod_git_revision + VARCHAR(40) True False - next_tasks_count - MEDIUMINT + upsream_package_repository + SMALLINT True False - -
-
- - - 754 - 399 - - - repository_stability_relations - #ffffff - - id - MEDIUMINT + uses_upstream + BIT True - True + False - more_stable - MEDIUMINT + uses_modification + BIT True False - less_stable - MEDIUMINT + commit_time + DATETIME True False
- + - -62 - 370 + 539 + 533 - fail_reasons + upstream_repositories#ffffff @@ -337,18 +421,12 @@ name - VARCHAR(32) - True - False - - - identifier VARCHAR(64) True False - severity + git_repository SMALLINT True False @@ -356,163 +434,115 @@
- + - 53 - 346 + 770 + 508 - failed_builds + git_repositories#ffffff id - MEDIUMINT + SMALLINT True True - build_slave - MEDIUMINT - True - False - - - build_assignment - BIGINT + name + VARCHAR(64) True False - date - DATETIME + url + VARCHAR(128) True False - reason - SMALLINT + directory + VARCHAR(128) True False - log_file - VARCHAR(512) + head + VARCHAR(40) True False
- + - 247 - 291 + 529 + 273 - build_assignments + repositories#ffffff id - BIGINT + MEDIUMINT True True - package_source - BIGINT + name + VARCHAR(64) True False - architecture + stability SMALLINT True False - is_blocked - VARCHAR(128) - False - False - - - is_black_listed - VARCHAR(128) - False - False - - - is_broken + is_on_master_mirror BIT True False - priority + architecture SMALLINT True False - - return_date - DATETIME - False - False -
- + - 186 - 137 + 549 + 105 - build_slaves + install_target_providers#ffffff id - MEDIUMINT - True - True - - - name - VARCHAR(32) - True - False - - - ssh_key BIGINT True - False - - - currently_building - BIGINT - False - False - - - last_connection - TIME - True - False + True - logged_lines + package BIGINT - False + True False - last_action - VARCHAR(32) - False + install_target + BIGINT + True False @@ -614,127 +644,175 @@
- + - 554 - 117 + 186 + 137 - install_target_providers + build_slaves#ffffff id - BIGINT + MEDIUMINT True True - package + name + VARCHAR(32) + True + False + + + ssh_key BIGINT True False - install_target + currently_building BIGINT + False + False + + + last_connection + TIME True False + + logged_lines + BIGINT + False + False + + + last_action + VARCHAR(32) + False + False +
- + - 529 - 273 + 247 + 291 - repositories + build_assignments#ffffff id - MEDIUMINT + BIGINT True True - name - VARCHAR(64) + package_source + BIGINT True False - stability + architecture SMALLINT True False - is_on_master_mirror + is_blocked + VARCHAR(128) + False + False + + + is_black_listed + VARCHAR(128) + False + False + + + is_broken BIT True False - architecture + priority SMALLINT True False + + return_date + DATETIME + False + False +
- + - 770 - 508 + 53 + 346 - git_repositories + failed_builds#ffffff id - SMALLINT + MEDIUMINT True True - name - VARCHAR(64) + build_slave + MEDIUMINT True False - url - VARCHAR(128) + build_assignment + BIGINT True False - directory - VARCHAR(128) + date + DATETIME True False - head - VARCHAR(40) + reason + SMALLINT + True + False + + + log_file + VARCHAR(512) True False
- + - 539 - 533 + -62 + 370 - upstream_repositories + fail_reasons#ffffff @@ -745,12 +823,18 @@ name + VARCHAR(32) + True + False + + + identifier VARCHAR(64) True False - git_repository + severity SMALLINT True False @@ -758,209 +842,179 @@
- + - 226 - 473 + 754 + 399 - package_sources + repository_stability_relations#ffffff id - BIGINT + MEDIUMINT True True - pkgbase - VARCHAR(64) + more_stable + MEDIUMINT True False - git_revision - VARCHAR(40) + less_stable + MEDIUMINT True False + +
+
+ + + 777 + 32 + + + statitstics + #ffffff + - mod_git_revision - VARCHAR(40) + id + BIGINT True - False + True - upsream_package_repository - SMALLINT + date + DATETIME True False - uses_upstream - BIT + stable_packages_count + MEDIUMINT True False - uses_modification - BIT + pending_tasks_count + MEDIUMINT True False - commit_time - DATETIME + staging_packages_count + MEDIUMINT True False - -
-
- - - 415 - 321 - - - architectures - #ffffff - - - id - SMALLINT - True - True - - name - VARCHAR(16) + testing_packages_count + MEDIUMINT True False - -
-
- - - 563 - 42 - - - install_targets - #ffffff - - id - BIGINT + broken_tasks_count + MEDIUMINT True - True + False - name - VARCHAR(64) + dependency_loops_count + MEDIUMINT True False - -
-
- - - 348 - -60 - - - dependencies - #ffffff - - id - BIGINT + dependency_looped_tasks_count + MEDIUMINT True - True + False - dependent - BIGINT + locked_tasks_count + MEDIUMINT True False - depending_on - BIGINT + blocked_tasks_count + MEDIUMINT True False - dependency_type - SMALLINT + next_tasks_count + MEDIUMINT True False
- + - 540 - -64 + 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 +
- + - 53 - 501 + 788 + -60 - build_dependency_loops + todo_links#ffffff - id + dependent BIGINT True - True - - - loop - MEDIUMINT - True False - build_assignment + depending_on BIGINT True False @@ -968,18 +1022,18 @@
- + - 763 - 241 + 258 + -44 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -989,58 +1043,46 @@ True False - - bugtracker_category - VARCHAR(32) - False - False -
- + - 481 - 395 + 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 + 49 - email_log + allowed_email_actions#ffffff @@ -1050,51 +1092,51 @@ True - date - DATETIME - True - False - - - success - BIT + gpg_key + BIGINT True False action MEDIUMINT - False + True False + +
+
+ + + -68 + 71 + + + email_actions + #ffffff + - count + id MEDIUMINT - False - False - - - gpg_key - BIGINT - False - False + True + True - comment - TEXT - False + name + VARCHAR(32) + True False
- + - 42 - 135 + 237 + 40 - ssh_log + ssh_keys#ffffff @@ -1104,25 +1146,13 @@ True - date - DATETIME - True - False - - - build_slave + owner MEDIUMINT - False - False - - - action - VARCHAR(32) True False - parameters + fingerprint TEXT True False @@ -1130,57 +1160,57 @@
- + - 529 - 318.906 + 647.922 + 245.812 - 180 - + 270 + - 509.547 - 345.906 + 613.703 + 273 - 0 - + 90 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 4 + 2 0 - + - 290.109 - 40 + 543 + 213.906 - 90 - + 180 + - 293.289 - 5.8125 + 511.719 + 201.208 - 270 - + 0 + @@ -1196,24 +1226,24 @@ - + - 256.727 - 137 + 153.531 + 180.906 - 90 - + 0 + - 290.109 - 103.812 + 186 + 196.906 - 270 - + 180 + @@ -1229,24 +1259,24 @@ - + - -9.85156 - 47.8125 + 599.133 + 472.812 270 - + - -19.2734 - 71 + 613.727 + 533 90 - + @@ -1262,24 +1292,57 @@ - + + + + + + 559.755 + 395 + + 90 + + + + + 585.469 + 364.812 + + 270 + + + + + + OneToOne + + Mandatory + Mandatory + + + 1 + 0 + + + + - 68 - 80.9062 + 638.51 + 395 - 180 - + 90 + - 29.4531 - 95.9062 + 641.938 + 364.812 - 0 - + 270 + @@ -1295,24 +1358,24 @@ - + - 142.789 - 49 + 461.146 + 273.812 - 90 - + 270 + - 159.109 - 12.8125 + 462.273 + 321 - 270 - + 90 + @@ -1323,29 +1386,29 @@ Mandatory - 1 + 11 0 - + - 35.2969 - -12.0938 + 499.672 + -34.0625 0 - + - 106 - -19.0938 + 540 + -25.0938 180 - + @@ -1356,29 +1419,29 @@ Mandatory - 5 + 3 0 - + - 212.219 - -19.0938 + 698.406 + 318.906 0 - + - 258 - -19.0938 + 763 + 272.906 180 - + @@ -1394,24 +1457,24 @@ - + - 915.234 - -43.3958 + 499.672 + -8.125 0 - + - 945 - -39.3958 + 557 + 54.9062 180 - + @@ -1422,29 +1485,29 @@ Mandatory - 0 + 2 0 - + - 915.234 - -26.7917 + 627.109 + 105 - 0 - + 90 + - 945 - -8.79167 + 607.016 + 79.8125 - 180 - + 270 + @@ -1455,29 +1518,29 @@ Mandatory - 1 + 2 0 - + - 816.656 - 399 + 423.836 + 17.8125 - 90 - + 270 + - 815.635 - 304.812 + 435.859 + 56 - 270 - + 90 + @@ -1488,29 +1551,29 @@ Mandatory - 2 + 1 0 - + - 879.312 - 399 + 549 + 136.906 - 90 - + 180 + - 868.271 - 304.812 + 511.719 + 128.604 - 270 - + 0 + @@ -1526,24 +1589,24 @@ - + - 53 - 398.906 + 456.531 + 539.906 - 180 - + 0 + - 33.4375 - 408.906 + 539 + 564.906 - 0 - + 180 + @@ -1559,24 +1622,24 @@ - + - 204.719 - 398.906 + 688.453 + 564.906 0 - + - 247 - 357.906 + 770 + 553.906 180 - + @@ -1592,24 +1655,24 @@ - + - 128.859 - 346 + 340.948 + 424.812 - 90 - + 270 + - 233.151 - 256.812 + 341.266 + 473 - 270 - + 90 + @@ -1625,24 +1688,24 @@ - + - 134.195 - 501 + 387.922 + 357.906 - 90 - + 0 + - 293.974 - 424.812 + 415 + 345.906 - 270 - + 180 + @@ -1658,20 +1721,20 @@ - + - 280.302 - 256.812 + 410.573 + 273.812 270 - + - 293.974 + 340.948 291 90 @@ -1686,25 +1749,25 @@ Mandatory - 3 + 1 0 - + - 410.573 - 273.812 + 280.302 + 256.812 270 - + - 340.948 + 293.974 291 90 @@ -1719,29 +1782,29 @@ Mandatory - 1 + 3 0 - + - 387.922 - 357.906 + 134.195 + 501 - 0 - + 90 + - 415 - 345.906 + 293.974 + 424.812 - 180 - + 270 + @@ -1757,24 +1820,24 @@ - + - 340.948 - 424.812 + 128.859 + 346 - 270 - + 90 + - - 341.266 - 473 + + 233.151 + 256.812 - 90 - + 270 + @@ -1790,24 +1853,24 @@ - + - 688.453 - 564.906 + 204.719 + 398.906 0 - + - 770 - 553.906 + 247 + 357.906 180 - + @@ -1823,24 +1886,24 @@ - + - 511.719 - 201.208 + 53 + 398.906 - 0 - + 180 + - 613.703 - 273 + 33.4375 + 408.906 - 90 - + 0 + @@ -1851,29 +1914,29 @@ Mandatory - 2 + 4 0 - + - 456.531 - 539.906 + 816.656 + 399 - 0 - + 90 + - 539 - 564.906 + 815.635 + 304.812 - 180 - + 270 + @@ -1884,29 +1947,29 @@ Mandatory - 4 + 1 0 - + - 554 - 148.906 + 879.312 + 399 - 180 - + 90 + - 511.719 - 128.604 + 868.271 + 304.812 - 0 - + 270 + @@ -1917,29 +1980,29 @@ Mandatory - 1 + 2 0 - + - 423.836 - 17.8125 + 915.234 + -43.3958 - 270 - + 0 + - 435.859 - 56 + 945 + -39.3958 - 90 - + 180 + @@ -1955,24 +2018,24 @@ - + - 632.109 - 117 + 915.234 + -26.7917 - 90 - + 0 + - 613.016 - 91.8125 + 945 + -8.79167 - 270 - + 180 + @@ -1983,29 +2046,29 @@ Mandatory - 2 + 0 0 - + - 499.672 - -8.125 + 212.219 + -19.0938 0 - + - 563 - 66.9062 + 258 + -19.0938 180 - + @@ -2021,24 +2084,24 @@ - + - 698.406 - 318.906 + 35.2969 + -12.0938 0 - + - 763 - 272.906 + 106 + -19.0938 180 - + @@ -2049,29 +2112,29 @@ Mandatory - 2 + 5 0 - + - 499.672 - -34.0625 + 142.789 + 49 - 0 - + 90 + - 540 - -25.0938 + 159.109 + 12.8125 - 180 - + 270 + @@ -2082,29 +2145,29 @@ Mandatory - 3 + 1 0 - + - 461.146 - 273.812 + 68 + 80.9062 - 270 - + 180 + - 462.273 - 321 + 29.4531 + 95.9062 - 90 - + 0 + @@ -2115,29 +2178,29 @@ Mandatory - 11 + 2 0 - + - 559.755 - 395 + -9.85156 + 47.8125 - 90 - + 270 + - 585.469 - 364.812 + -19.2734 + 71 - 270 - + 90 + @@ -2148,29 +2211,29 @@ Mandatory - 2 + 3 0 - + - 638.51 - 395 + 256.727 + 137 90 - + - 641.938 - 364.812 + 290.109 + 103.812 270 - + @@ -2181,29 +2244,29 @@ Mandatory - 1 + 2 0 - + - 599.133 - 472.812 + 290.109 + 40 - 270 - + 90 + - 613.727 - 533 + 293.289 + 5.8125 - 90 - + 270 + @@ -2214,29 +2277,29 @@ Mandatory - 3 + 1 0 - + - 153.531 - 180.906 + 529 + 318.906 - 0 - + 180 + - 186 - 196.906 + 509.547 + 345.906 - 180 - + 0 + @@ -2247,7 +2310,7 @@ Mandatory - 2 + 4 0 diff --git a/misc/database-layout.dump b/misc/database-layout.dump index 620326c..dc0b537 100644 --- a/misc/database-layout.dump +++ b/misc/database-layout.dump @@ -329,6 +329,16 @@ binary_packages CREATE TABLE `binary_packages` ( CONSTRAINT `binary_packages_ibfk_2` FOREIGN KEY (`architecture`) REFERENCES `architectures` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `binary_packages_ibfk_3` FOREIGN KEY (`build_assignment`) REFERENCES `build_assignments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci +binary_packages_in_repositories CREATE TABLE `binary_packages_in_repositories` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `package` bigint(20) NOT NULL, + `repository` mediumint(9) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `content` (`package`,`repository`), + KEY `binary_packages_in_repositories_ibfk_2` (`repository`), + CONSTRAINT `binary_packages_in_repositories_ibfk_1` FOREIGN KEY (`package`) REFERENCES `binary_packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `binary_packages_in_repositories_ibfk_2` FOREIGN KEY (`repository`) REFERENCES `repositories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci build_assignments CREATE TABLE `build_assignments` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `package_source` bigint(20) NOT NULL, -- cgit v1.2.3-70-g09d2