Commit 360835b2 authored by Bazarbay Tulenov's avatar Bazarbay Tulenov

поменял application.yml localhost на 192.168.3.21 и поменял порт сервиса

parent 856627d4
Pipeline #389 failed with stage
......@@ -27,7 +27,7 @@ spring:
ddl-auto: validate
database-platform: org.hibernate.dialect.PostgreSQLDialect
datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:template_db}?currentSchema=template_schema
url: jdbc:postgresql://${DB_HOST:192.168.3.21}:${DB_PORT:5432}/${DB_NAME:template_db}?currentSchema=template_schema
username: ${DATASOURCE_USER:postgres}
password: ${DATASOURCE_PASSWORD:password}
hikari:
......@@ -39,7 +39,7 @@ spring:
change-log: classpath:db/changelog/db.changelog-master.xml
default-schema: template_schema
rabbitmq:
host: ${RABBITMQ_HOST:localhost}
host: ${RABBITMQ_HOST:192.168.3.21}
port: ${RABBITMQ_PORT:5672}
username: ${RABBITMQ_USERNAME:guest}
password: ${RABBITMQ_PASSWORD:guest}
......@@ -59,7 +59,7 @@ rabbitmq:
document_queue: ${RABBITMQ_DOCUMENT_QUEUE:queue_document_save}
server:
port: 8081
port: 8085
springdoc:
api-docs:
......
......@@ -7,6 +7,11 @@
<!-- ChangeSet для создания таблицы template_schema.file_info -->
<changeSet id="1" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="file_info" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="file_info" schemaName="template_schema">
<column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/>
......@@ -21,6 +26,11 @@
<!-- ChangeSet для создания таблицы template_schema.d_template_type -->
<changeSet id="2" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="d_template_type" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="d_template_type" schemaName="template_schema">
<column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/>
......@@ -32,6 +42,11 @@
<!-- ChangeSet для создания таблицы template_schema.template -->
<changeSet id="3" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="template" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="template" schemaName="template_schema">
<column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/>
......@@ -49,6 +64,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATE -->
<changeSet id="4" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template"
baseColumnNames="template_id"
constraintName="FK_TEMPLATE_ON_TEMPLATE"
......@@ -60,6 +80,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATEHEADER -->
<changeSet id="5" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TEMPLATEHEADER"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template"
baseColumnNames="template_header_id"
constraintName="FK_TEMPLATE_ON_TEMPLATEHEADER"
......@@ -71,6 +96,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TYPE -->
<changeSet id="6" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TYPE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template"
baseColumnNames="type_id"
constraintName="FK_TEMPLATE_ON_TYPE"
......@@ -82,6 +112,11 @@
<!-- ChangeSet для создания таблицы template_schema.template_version -->
<changeSet id="7" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="template_version" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="template_version" schemaName="template_schema">
<column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/>
......@@ -99,6 +134,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATE -->
<changeSet id="8" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="template_id"
constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATE"
......@@ -110,6 +150,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER -->
<changeSet id="9" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="template_header_id"
constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER"
......@@ -121,6 +166,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TYPE -->
<changeSet id="10" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TYPE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="type_id"
constraintName="FK_TEMPLATE_VERSION_ON_TYPE"
......@@ -132,6 +182,11 @@
<!-- ChangeSet для создания таблицы template_schema.document -->
<changeSet id="11" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="document" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="document" schemaName="template_schema">
<column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/>
......@@ -144,6 +199,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_DOCUMENT_ON_TEMPLATE -->
<changeSet id="12" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_DOCUMENT_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="document"
baseColumnNames="template_id"
constraintName="FK_DOCUMENT_ON_TEMPLATE"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment