diff --git a/avni-server-api/src/main/resources/db/migration/V1_346__RenameVoidedAddressLevelTypes.sql b/avni-server-api/src/main/resources/db/migration/V1_346__RenameVoidedAddressLevelTypes.sql new file mode 100644 index 000000000..26bd67972 --- /dev/null +++ b/avni-server-api/src/main/resources/db/migration/V1_346__RenameVoidedAddressLevelTypes.sql @@ -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%'; \ No newline at end of file