bazzar/migrations/20220509124526_add_unique_name_to_files.sql

3 lines
98 B
MySQL
Raw Normal View History

2022-05-09 16:17:27 +02:00
ALTER TABLE photos
ADD COLUMN unique_name TEXT NOT NULL DEFAULT gen_random_uuid() :: text UNIQUE;