From 18c0232f2bcd9c2ea1a56969f3373564a4b39070 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 31 May 2018 13:10:05 +0200 Subject: misc/database-layout.dmf: `is_to_be_deleted` and `last_moved` should be columns in `binary_packages_in_repositories`, not `binary_packages` --- misc/database-layout.dmf | 1492 +++++++++++++++++++++++----------------------- 1 file changed, 746 insertions(+), 746 deletions(-) diff --git a/misc/database-layout.dmf b/misc/database-layout.dmf index b33c45b..bfbbc2f 100644 --- a/misc/database-layout.dmf +++ b/misc/database-layout.dmf @@ -2,13 +2,13 @@ Relational - + - 543 - 182 + 237 + 40 - binary_packages_in_repositories + ssh_keys#ffffff @@ -18,69 +18,51 @@ True - package - BIGINT + owner + MEDIUMINT True False - repository - MEDIUMINT + fingerprint + TEXT True False
- + - 42 - 135 + -68 + 71 - ssh_log + email_actions#ffffff id - BIGINT + MEDIUMINT True True - date - DATETIME - True - False - - - build_slave - MEDIUMINT - False - False - - - action + name VARCHAR(32) True False - - parameters - TEXT - True - False -
- + - -55 - -72 + 68 + 49 - email_log + allowed_email_actions#ffffff @@ -90,92 +72,62 @@ True - date - DATETIME - 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
- + - 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 -
- + - 763 - 241 + 258 + -44 - repository_stabilities + persons#ffffff id - SMALLINT + MEDIUMINT True True @@ -185,38 +137,26 @@ True False - - bugtracker_category - VARCHAR(32) - 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 @@ -224,85 +164,55 @@
- + - 540 - -64 + 945 + -70 - dependency_types + todos#ffffff id - SMALLINT + BIGINT True True - name - VARCHAR(32) - True - False - - - relevant_for_building - BIT - True - False - - - relevant_for_binary_packages - BIT + file + VARCHAR(64) True False - -
-
- - - 348 - -60 - - - dependencies - #ffffff - - - id - BIGINT - True - True - - dependent - BIGINT + line + MEDIUMINT True False - depending_on - BIGINT + description + TEXT True False - dependency_type + importance SMALLINT - True + False False
- + - 557 - 30 + 777 + 32 - install_targets + statitstics#ffffff @@ -312,135 +222,111 @@ True - name - VARCHAR(64) + date + DATETIME True False - -
-
- - - 415 - 321 - - - architectures - #ffffff - - id - SMALLINT + stable_packages_count + MEDIUMINT True - True + False - name - VARCHAR(16) + pending_tasks_count + MEDIUMINT True False - -
-
- - - 226 - 473 - - - 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 - DATETIME + next_tasks_count + MEDIUMINT True False
- + - 539 - 533 + 754 + 399 - 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 + -62 + 370 - git_repositories + fail_reasons#ffffff @@ -451,38 +337,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
- + - 529 - 273 + 53 + 346 - repositories + failed_builds#ffffff @@ -492,147 +372,93 @@ True - name - VARCHAR(64) + build_slave + MEDIUMINT True False - stability - SMALLINT + build_assignment + BIGINT True False - is_on_master_mirror - BIT + date + DATETIME 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 + 247 + 291 - binary_packages + build_assignments#ffffff id BIGINT True - True - - - build_assignment - BIGINT - True - False - - - epoch - MEDIUMINT - True - False - - - pkgver - VARCHAR(64) - True - False - - - pkgrel - MEDIUMINT - True - False - - - sub_pkgrel - MEDIUMINT - True - False + True - has_issues - BIT + package_source + BIGINT True False - is_tested - BIT + architecture + SMALLINT True False - is_to_be_deleted - BIT - True + is_blocked + VARCHAR(128) + False False - pkgname - VARCHAR(64) - True + is_black_listed + VARCHAR(128) + False False - architecture - SMALLINT + is_broken + BIT True False - sha512sum - VARCHAR(128) - False + priority + SMALLINT + True False - last_moved + return_date DATETIME - True + False False @@ -698,13 +524,13 @@
- + - 247 - 291 + 360 + 56 - build_assignments + binary_packages#ffffff @@ -714,105 +540,147 @@ 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 - DATETIME + sha512sum + VARCHAR(128) False False
- + - 53 - 346 + 549 + 105 - 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 + +
+
+ + + 549 + 301 + + + repositories + #ffffff + + + id + MEDIUMINT + True + True + - date - DATETIME + name + VARCHAR(64) True False - reason + stability SMALLINT True False - log_file - VARCHAR(512) + is_on_master_mirror + BIT + True + False + + + architecture + SMALLINT True False
- + - -62 - 370 + 770 + 508 - fail_reasons + git_repositories#ffffff @@ -823,62 +691,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
- + - 754 - 399 + 539 + 533 - 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
- + - 777 - 32 + 226 + 473 - statitstics + package_sources#ffffff @@ -888,133 +762,193 @@ True - date - DATETIME + 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 + + + commit_time + DATETIME + True + False + + +
+
+ + + 415 + 321 + + + architectures + #ffffff + + + id + SMALLINT + True + True + + + name + VARCHAR(16) + True + False + + +
+
+ + + 557 + 30 + + + install_targets + #ffffff + + + id + BIGINT True - False + True - dependency_loops_count - MEDIUMINT + name + VARCHAR(64) True False + +
+
+ + + 348 + -60 + + + dependencies + #ffffff + - dependency_looped_tasks_count - MEDIUMINT + id + BIGINT True - False + True - locked_tasks_count - MEDIUMINT + dependent + BIGINT True False - blocked_tasks_count - MEDIUMINT + depending_on + BIGINT True False - next_tasks_count - MEDIUMINT + dependency_type + SMALLINT True False
- + - 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 -
- + - 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 @@ -1022,18 +956,18 @@
- + - 258 - -44 + 788 + 281 - persons + repository_stabilities#ffffff id - MEDIUMINT + SMALLINT True True @@ -1043,46 +977,58 @@ True False + + bugtracker_category + VARCHAR(32) + False + False +
- + - 106 - -51 + 494 + 427 - 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 @@ -1092,51 +1038,93 @@ 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
- + - -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 +
- + - 237 - 40 + 543 + 182 - ssh_keys + binary_packages_in_repositories#ffffff @@ -1146,71 +1134,83 @@ True - owner + package + BIGINT + True + False + + + repository MEDIUMINT True False - fingerprint - TEXT + is_to_be_deleted + BIT + True + False + + + last_moved + DATETIME True False
- + - 647.922 - 245.812 + 549 + 346.906 - 270 - + 180 + - 613.703 - 273 + 509.547 + 345.906 - 90 - + 0 + - OneToMany + OneToOne - Optional - Optional + Mandatory + Mandatory - 2 + 4 0 - + - 543 - 213.906 + 290.109 + 40 - 180 - + 90 + - 511.719 - 191.875 + 293.289 + 5.8125 - 0 - + 270 + @@ -1226,24 +1226,24 @@ - + - - 153.531 - 180.906 + + 257.727 + 130 - 0 - + 90 + - 187 - 196.906 + 290.109 + 103.812 - 180 - + 270 + @@ -1259,24 +1259,24 @@ - + - 599.133 - 472.812 + -9.85156 + 47.8125 270 - + - 613.727 - 533 + -19.2734 + 71 90 - + @@ -1292,24 +1292,24 @@ - + - 559.755 - 395 + 68 + 80.9062 - 90 - + 180 + - 585.469 - 364.812 + 29.4531 + 95.9062 - 270 - + 0 + @@ -1320,29 +1320,29 @@ Mandatory - 1 + 2 0 - + - 638.51 - 395 + 142.789 + 49 90 - + - 641.938 - 364.812 + 159.109 + 12.8125 270 - + @@ -1353,29 +1353,29 @@ Mandatory - 2 + 1 0 - + - 461.146 - 259.812 + 35.2969 + -12.0938 - 270 - + 0 + - 462.273 - 321 + 106 + -19.0938 - 90 - + 180 + @@ -1386,29 +1386,29 @@ Mandatory - 10 + 5 0 - + - 499.672 - -34.0625 + 212.219 + -19.0938 0 - + - 540 - -25.0938 + 258 + -19.0938 180 - + @@ -1419,29 +1419,29 @@ Mandatory - 3 + 2 0 - + - 698.406 - 318.906 + 915.234 + -26.7917 0 - + - 763 - 272.906 + 945 + -8.79167 180 - + @@ -1452,29 +1452,29 @@ Mandatory - 2 + 0 0 - + - 499.672 - -8.125 + 915.234 + -43.3958 0 - + - 557 - 54.9062 + 945 + -39.3958 180 - + @@ -1485,29 +1485,29 @@ Mandatory - 2 + 1 0 - + - 627.109 - 105 + 816.656 + 399 90 - + - 607.016 - 79.8125 + 840.635 + 344.812 270 - + @@ -1523,24 +1523,24 @@ - + - 423.836 - 17.8125 + 879.312 + 399 - 270 - + 90 + - 435.859 - 56 + 893.271 + 344.812 - 90 - + 270 + @@ -1556,24 +1556,24 @@ - + - 549 - 136.906 + 53 + 398.906 180 - + - 511.719 - 123.938 + 33.4375 + 408.906 0 - + @@ -1584,29 +1584,29 @@ Mandatory - 1 + 4 0 - + - 456.531 - 539.906 + 204.719 + 398.906 0 - + - 539 - 564.906 + 247 + 357.906 180 - + @@ -1617,29 +1617,29 @@ Mandatory - 4 + 2 0 - + - 688.453 - 564.906 + 128.859 + 346 - 0 - + 90 + - 770 - 553.906 + 234.151 + 263.812 - 180 - + 270 + @@ -1650,29 +1650,29 @@ Mandatory - 2 + 1 0 - + - 340.948 - 424.812 + 134.195 + 501 - 270 - + 90 + - 341.266 - 473 + 293.974 + 424.812 - 90 - + 270 + @@ -1683,29 +1683,29 @@ Mandatory - 1 + 2 0 - + - 387.922 - 357.906 + 281.302 + 263.812 - 0 - + 270 + - 415 - 345.906 + 293.974 + 291 - 180 - + 90 + @@ -1716,7 +1716,7 @@ Mandatory - 2 + 3 0 @@ -1727,7 +1727,7 @@ 410.573 - 259.812 + 231.812 270 @@ -1754,24 +1754,24 @@ - + - 281.302 - 263.812 + 387.922 + 357.906 - 270 - + 0 + - 293.974 - 291 + 415 + 345.906 - 90 - + 180 + @@ -1782,29 +1782,29 @@ Mandatory - 3 + 2 0 - + - 134.195 - 501 + 340.948 + 424.812 - 90 - + 270 + - 293.974 - 424.812 + 341.266 + 473 - 270 - + 90 + @@ -1815,29 +1815,29 @@ Mandatory - 2 + 1 0 - + - 128.859 - 346 + 688.453 + 564.906 - 90 - + 0 + - 234.151 - 263.812 + 770 + 553.906 - 270 - + 180 + @@ -1848,29 +1848,29 @@ Mandatory - 1 + 2 0 - + - 204.719 - 398.906 + 456.531 + 539.906 0 - + - 247 - 357.906 + 539 + 564.906 180 - + @@ -1881,29 +1881,29 @@ Mandatory - 2 + 4 0 - + - 53 - 398.906 + 549 + 136.906 180 - + - 33.4375 - 408.906 + 511.719 + 114.604 0 - + @@ -1914,29 +1914,29 @@ Mandatory - 4 + 1 0 - + - 816.656 - 399 + 423.836 + 17.8125 - 90 - + 270 + - 815.635 - 304.812 + 435.859 + 56 - 270 - + 90 + @@ -1952,24 +1952,24 @@ - + - 879.312 - 399 + 627.109 + 105 90 - + - 868.271 - 304.812 + 607.016 + 79.8125 270 - + @@ -1985,24 +1985,24 @@ - + - 915.234 - -43.3958 + 499.672 + -8.125 0 - + - 945 - -39.3958 + 557 + 54.9062 180 - + @@ -2013,29 +2013,29 @@ Mandatory - 1 + 2 0 - + - 915.234 - -26.7917 + 718.406 + 346.906 0 - + - 945 - -8.79167 + 788 + 312.906 180 - + @@ -2046,29 +2046,29 @@ Mandatory - 0 + 2 0 - + - 212.219 - -19.0938 + 499.672 + -34.0625 0 - + - 258 - -19.0938 + 540 + -25.0938 180 - + @@ -2079,29 +2079,29 @@ Mandatory - 2 + 3 0 - + - 35.2969 - -12.0938 + 461.146 + 231.812 - 0 - + 270 + - 106 - -19.0938 + 462.273 + 321 - 180 - + 90 + @@ -2112,29 +2112,29 @@ Mandatory - 5 + 9 0 - + - 142.789 - 49 + 572.755 + 427 90 - + - 159.109 - 12.8125 + 605.469 + 392.812 270 - + @@ -2145,29 +2145,29 @@ Mandatory - 1 + 2 0 - + - 68 - 80.9062 + 651.51 + 427 - 180 - + 90 + - 29.4531 - 95.9062 + 661.938 + 392.812 - 0 - + 270 + @@ -2178,29 +2178,29 @@ Mandatory - 2 + 1 0 - + - -9.85156 - 47.8125 + 612.133 + 504.812 270 - + - -19.2734 - 71 + 613.727 + 533 90 - + @@ -2216,24 +2216,24 @@ - + - 257.727 - 130 + 153.531 + 180.906 - 90 - + 0 + - 290.109 - 103.812 + 187 + 196.906 - 270 - + 180 + @@ -2249,24 +2249,24 @@ - + - 290.109 - 40 + 543 + 227.906 - 90 - + 180 + - 293.289 - 5.8125 + 511.719 + 173.208 - 270 - + 0 + @@ -2282,35 +2282,35 @@ - + - 529 - 318.906 + 647.922 + 273.812 - 180 - + 270 + - 509.547 - 345.906 + 633.703 + 301 - 0 - + 90 + - OneToOne + OneToMany - Mandatory - Mandatory + Optional + Optional - 4 + 2 0 -- cgit v1.2.3-70-g09d2