Skip to content
Snippets Groups Projects
Commit b966b224 authored by Michal Strnad's avatar Michal Strnad
Browse files

Issue #26 - Add uuid attribute into domain_auction table

parent 50a2b925
No related branches found
No related tags found
No related merge requests found
---
--- don't forget to update database schema version
---
UPDATE enum_parameters SET val = '2.59.1' WHERE id = 1;
UPDATE enum_parameters SET val = '2.59.2' WHERE id = 1;
ALTER TABLE domain_auction
ADD uuid UUID CONSTRAINT domain_auction_uuid_unique NOT NULL UNIQUE DEFAULT gen_random_uuid();
ADD uuid UUID;
UPDATE domain_auction SET uuid = external_id::UUID;
ALTER TABLE domain_auction
ALTER uuid SET NOT NULL,
ALTER uuid SET DEFAULT gen_random_uuid(),
ADD CONSTRAINT domain_auction_uuid_unique UNIQUE (uuid);
COMMENT ON COLUMN domain_auction.id IS 'unique automatically generated numerical identifier';
COMMENT ON COLUMN domain_auction.uuid IS 'unique automatically generated uuid identifier';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment