-- Deploy guix-data-service:git_repository_link_fields to pg

BEGIN;

ALTER TABLE git_repositories RENAME COLUMN cgit_url_base TO link_url;

ALTER TABLE git_repositories ADD COLUMN commit_link_url_template varchar;

ALTER TABLE git_repositories ADD COLUMN commit_range_link_url_template varchar;

ALTER TABLE git_repositories ADD COLUMN file_link_url_template varchar;

COMMIT;
