add set for new PK in table idm_reconcile.account_blocked

This commit is contained in:
Булат Хайруллин 2025-05-15 12:20:23 +03:00
parent 4714e34921
commit b76abcc8e1
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<changeSet id="0001" author="hairullin">
<comment>ALTER TABLE idm_reconcile.account_blocked</comment>
<sql>
ALTER TABLE IF EXISTS idm_reconcile.account_blocked
DROP CONSTRAINT account_blocked_pkey;
</sql>
</changeSet>
<changeSet id="0002" author="hairullin">
<comment>ALTER TABLE idm_reconcile.account_blocked</comment>
<sql>
ALTER TABLE IF EXISTS idm_reconcile.account_blocked
ADD COLUMN IF NOT EXISTS id bigserial,
ADD CONSTRAINT account_blocked_pkey PRIMARY KEY (id);
</sql>
</changeSet>
</databaseChangeLog>

View file

@ -31,6 +31,6 @@
<include file="20250423-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20250505-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20250507-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20250515-db_changes.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>