Skip to content

Commit

Permalink
avniproject/avni-webapp#1290 | Migration to rename existing voided ad…
Browse files Browse the repository at this point in the history
…dress level types so names can be reused

(cherry picked from commit 26e5fda)
  • Loading branch information
1t5j0y committed Oct 16, 2024
1 parent ef78963 commit c66c803
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
update address_level_type set name = name || ' (voided~' || id || ')',
last_modified_date_time = current_timestamp + (random() * 5000 * (interval '1 millisecond'))
where is_voided = true and name not ilike '%voided%';

0 comments on commit c66c803

Please sign in to comment.