refactor: un-hardcode file urls
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- Custom SQL migration file, put your code below! --
|
||||
UPDATE files
|
||||
SET url = regexp_replace(url, '^https?://[^/]+', '')
|
||||
WHERE url ~ '^https?://[^/]+';
|
||||
Reference in New Issue
Block a user