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: ...@@ -27,7 +27,7 @@ spring:
ddl-auto: validate ddl-auto: validate
database-platform: org.hibernate.dialect.PostgreSQLDialect database-platform: org.hibernate.dialect.PostgreSQLDialect
datasource: 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} username: ${DATASOURCE_USER:postgres}
password: ${DATASOURCE_PASSWORD:password} password: ${DATASOURCE_PASSWORD:password}
hikari: hikari:
...@@ -39,7 +39,7 @@ spring: ...@@ -39,7 +39,7 @@ spring:
change-log: classpath:db/changelog/db.changelog-master.xml change-log: classpath:db/changelog/db.changelog-master.xml
default-schema: template_schema default-schema: template_schema
rabbitmq: rabbitmq:
host: ${RABBITMQ_HOST:localhost} host: ${RABBITMQ_HOST:192.168.3.21}
port: ${RABBITMQ_PORT:5672} port: ${RABBITMQ_PORT:5672}
username: ${RABBITMQ_USERNAME:guest} username: ${RABBITMQ_USERNAME:guest}
password: ${RABBITMQ_PASSWORD:guest} password: ${RABBITMQ_PASSWORD:guest}
...@@ -59,7 +59,7 @@ rabbitmq: ...@@ -59,7 +59,7 @@ rabbitmq:
document_queue: ${RABBITMQ_DOCUMENT_QUEUE:queue_document_save} document_queue: ${RABBITMQ_DOCUMENT_QUEUE:queue_document_save}
server: server:
port: 8081 port: 8085
springdoc: springdoc:
api-docs: api-docs:
......
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
<!-- ChangeSet для создания таблицы template_schema.file_info --> <!-- ChangeSet для создания таблицы template_schema.file_info -->
<changeSet id="1" author="yourname"> <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"> <createTable tableName="file_info" schemaName="template_schema">
<column name="id" type="BIGSERIAL"> <column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/> <constraints primaryKey="true" nullable="false"/>
...@@ -21,6 +26,11 @@ ...@@ -21,6 +26,11 @@
<!-- ChangeSet для создания таблицы template_schema.d_template_type --> <!-- ChangeSet для создания таблицы template_schema.d_template_type -->
<changeSet id="2" author="yourname"> <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"> <createTable tableName="d_template_type" schemaName="template_schema">
<column name="id" type="BIGSERIAL"> <column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/> <constraints primaryKey="true" nullable="false"/>
...@@ -32,6 +42,11 @@ ...@@ -32,6 +42,11 @@
<!-- ChangeSet для создания таблицы template_schema.template --> <!-- ChangeSet для создания таблицы template_schema.template -->
<changeSet id="3" author="yourname"> <changeSet id="3" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="template" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="template" schemaName="template_schema"> <createTable tableName="template" schemaName="template_schema">
<column name="id" type="BIGSERIAL"> <column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/> <constraints primaryKey="true" nullable="false"/>
...@@ -49,6 +64,11 @@ ...@@ -49,6 +64,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATE --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATE -->
<changeSet id="4" author="yourname"> <changeSet id="4" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template" <addForeignKeyConstraint baseTableName="template"
baseColumnNames="template_id" baseColumnNames="template_id"
constraintName="FK_TEMPLATE_ON_TEMPLATE" constraintName="FK_TEMPLATE_ON_TEMPLATE"
...@@ -60,6 +80,11 @@ ...@@ -60,6 +80,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATEHEADER --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TEMPLATEHEADER -->
<changeSet id="5" author="yourname"> <changeSet id="5" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TEMPLATEHEADER"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template" <addForeignKeyConstraint baseTableName="template"
baseColumnNames="template_header_id" baseColumnNames="template_header_id"
constraintName="FK_TEMPLATE_ON_TEMPLATEHEADER" constraintName="FK_TEMPLATE_ON_TEMPLATEHEADER"
...@@ -71,6 +96,11 @@ ...@@ -71,6 +96,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TYPE --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_ON_TYPE -->
<changeSet id="6" author="yourname"> <changeSet id="6" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_ON_TYPE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template" <addForeignKeyConstraint baseTableName="template"
baseColumnNames="type_id" baseColumnNames="type_id"
constraintName="FK_TEMPLATE_ON_TYPE" constraintName="FK_TEMPLATE_ON_TYPE"
...@@ -82,6 +112,11 @@ ...@@ -82,6 +112,11 @@
<!-- ChangeSet для создания таблицы template_schema.template_version --> <!-- ChangeSet для создания таблицы template_schema.template_version -->
<changeSet id="7" author="yourname"> <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"> <createTable tableName="template_version" schemaName="template_schema">
<column name="id" type="BIGSERIAL"> <column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/> <constraints primaryKey="true" nullable="false"/>
...@@ -99,6 +134,11 @@ ...@@ -99,6 +134,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATE --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATE -->
<changeSet id="8" author="yourname"> <changeSet id="8" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version" <addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="template_id" baseColumnNames="template_id"
constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATE" constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATE"
...@@ -110,6 +150,11 @@ ...@@ -110,6 +150,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER -->
<changeSet id="9" author="yourname"> <changeSet id="9" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version" <addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="template_header_id" baseColumnNames="template_header_id"
constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER" constraintName="FK_TEMPLATE_VERSION_ON_TEMPLATEHEADER"
...@@ -121,6 +166,11 @@ ...@@ -121,6 +166,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TYPE --> <!-- ChangeSet для добавления внешнего ключа FK_TEMPLATE_VERSION_ON_TYPE -->
<changeSet id="10" author="yourname"> <changeSet id="10" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_TEMPLATE_VERSION_ON_TYPE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="template_version" <addForeignKeyConstraint baseTableName="template_version"
baseColumnNames="type_id" baseColumnNames="type_id"
constraintName="FK_TEMPLATE_VERSION_ON_TYPE" constraintName="FK_TEMPLATE_VERSION_ON_TYPE"
...@@ -132,6 +182,11 @@ ...@@ -132,6 +182,11 @@
<!-- ChangeSet для создания таблицы template_schema.document --> <!-- ChangeSet для создания таблицы template_schema.document -->
<changeSet id="11" author="yourname"> <changeSet id="11" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="document" schemaName="template_schema"/>
</not>
</preConditions>
<createTable tableName="document" schemaName="template_schema"> <createTable tableName="document" schemaName="template_schema">
<column name="id" type="BIGSERIAL"> <column name="id" type="BIGSERIAL">
<constraints primaryKey="true" nullable="false"/> <constraints primaryKey="true" nullable="false"/>
...@@ -144,6 +199,11 @@ ...@@ -144,6 +199,11 @@
<!-- ChangeSet для добавления внешнего ключа FK_DOCUMENT_ON_TEMPLATE --> <!-- ChangeSet для добавления внешнего ключа FK_DOCUMENT_ON_TEMPLATE -->
<changeSet id="12" author="yourname"> <changeSet id="12" author="yourname">
<preConditions onFail="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyName="FK_DOCUMENT_ON_TEMPLATE"/>
</not>
</preConditions>
<addForeignKeyConstraint baseTableName="document" <addForeignKeyConstraint baseTableName="document"
baseColumnNames="template_id" baseColumnNames="template_id"
constraintName="FK_DOCUMENT_ON_TEMPLATE" 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