Skip to content

Commit b286635

Browse files
authored
fix: clear lease table before applying lease migrations (#2531)
1 parent 7b52088 commit b286635

File tree

1 file changed

+1
-1
lines changed
  • edc-extensions/migrations/connector-migration/src/main/resources/migrations/connector

1 file changed

+1
-1
lines changed

edc-extensions/migrations/connector-migration/src/main/resources/migrations/connector/V1_1_0__Lease_Fix.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ALTER TABLE edc_data_plane_instance DROP CONSTRAINT data_plane_instance_lease_id
44
ALTER TABLE edc_policy_monitor DROP CONSTRAINT policy_monitor_lease_lease_id_fk;
55
ALTER TABLE edc_transfer_process DROP CONSTRAINT transfer_process_lease_lease_id_fk;
66

7-
DELETE FROM edc_lease WHERE lease_id IS NULL;
7+
DELETE FROM edc_lease;
88

99
ALTER TABLE edc_lease
1010
ADD COLUMN resource_id varchar NOT NULL,

0 commit comments

Comments
 (0)