fix table tmp

This commit is contained in:
Тимур 2025-11-26 22:28:39 +03:00
parent e54e652419
commit 1acfb724fa
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?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="absatarov">
<comment>CREATE TABLE</comment>
<sql>
DROP TABLE IF EXISTS actualization.temp_recruitment_updates;
CREATE TABLE IF NOT EXISTS actualization.temp_recruitment_updates (
id BIGSERIAL PRIMARY KEY,
recruitment_id varchar(36) NOT NULL,
time_created timestamptz NOT NULL,
diff_text TEXT,
CONSTRAINT uq_recruitment_time UNIQUE (recruitment_id, time_created)
);
</sql>
</changeSet>
</databaseChangeLog>

View file

@ -43,4 +43,5 @@
<include file="20251114-view.xml" relativeToChangelogFile="true"/> <include file="20251114-view.xml" relativeToChangelogFile="true"/>
<include file="20251119-db_changes.xml" relativeToChangelogFile="true"/> <include file="20251119-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20251126-db_changes.xml" relativeToChangelogFile="true"/> <include file="20251126-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20251126-fix_table_temp.xml" relativeToChangelogFile="true"/>
</databaseChangeLog> </databaseChangeLog>