bazzar/migrations/20220509124526_add_unique_name_to_files.sql
2022-05-09 16:17:27 +02:00

3 lines
98 B
SQL

ALTER TABLE photos
ADD COLUMN unique_name TEXT NOT NULL DEFAULT gen_random_uuid() :: text UNIQUE;