Merge branch 'feature/SUPPORT-8617_add_patches' into develop

This commit is contained in:
Булат Хайруллин 2024-10-29 15:23:20 +03:00
commit 2fc4a97dd0
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<!-- что-то важное -->
<changeSet id="0001" author="Artyom Hackimullin" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<tableExists schemaName="total_registered" tableName="age"/>
<columnExists schemaName="total_registered" tableName="age" columnName="17_yaers_percent"/>
</preConditions>
<sql>
ALTER TABLE total_registered.age RENAME COLUMN "17_yaers_percent" TO "17_years_percent";
</sql>
</changeSet>
<changeSet id="0002" author="Artyom Hackimullin" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<tableExists schemaName="total_registered" tableName="age"/>
<columnExists schemaName="total_registered" tableName="age" columnName="17_yaers"/>
</preConditions>
<sql>
ALTER TABLE total_registered.age RENAME COLUMN "17_yaers" TO "17_years";
</sql>
</changeSet>
</databaseChangeLog>

View file

@ -6,4 +6,5 @@
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<include file="20241018-SUPPORT-8617-init-ervu_dashboard.xml" relativeToChangelogFile="true"/>
<include file="20241029-SUPPORT-8617-fix-column.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>