guix-data-service/sqitch/revert
Christopher Baines 84197686ce Fix some duplicated values in tables
The licenses table, along with the package_metadata table had duplicate
values. This could happen as the unique constraints on those tables didn't
properly account for the nullable fields.

The duplicates in those tables also affected the license_sets, packages,
package_derivations tables in a similar way. Finally, the
guix_revision_package_derivations table was also affected.

This commit adds a migration to fix the data, as well as the constraints. THe
code to populate the licenses and package_metadata tables is also updated.
2019-08-04 09:39:40 +01:00
..
add_git_repositories_cgit_url_base.sql Store and display the location of packages 2019-05-13 21:07:48 +01:00
add_location_information.sql Store and display the location of packages 2019-05-13 21:07:48 +01:00
appschema.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
buildstatus_enum.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql Tweak how logs are stored 2019-07-07 21:23:18 +01:00
dates_to_load_new_guix_revision_jobs.sql Record job success without deleting the job record 2019-06-02 21:48:02 +01:00
fix_duplicated_licenses.sql Fix some duplicated values in tables 2019-08-04 09:39:40 +01:00
git_branches.sql Start to handle information about Git branches 2019-05-05 20:06:28 +01:00
git_repositories.sql Switch to storing Git repositories in a table 2019-05-05 14:36:52 +01:00
initial_import.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
license_support.sql Store license information for packages 2019-05-15 08:05:14 +01:00
load_new_guix_revision_job_events.sql Add more detailed new revision job handling 2019-06-02 22:00:29 +01:00
load_new_guix_revision_job_logs.sql Record the output from loading new revisions to the database 2019-06-22 01:51:49 +02:00
remove_package_metadata_sha1_hash.sql Remove the sha1_hash from the package_metadata table 2019-05-12 18:08:17 +01:00