Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
templateService
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bazarbay Tulenov
templateService
Commits
de909573
Commit
de909573
authored
Jun 14, 2024
by
George Novikov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.lan.arta.kz/Bazarbay/templateservice
parents
c58021d4
360835b2
Pipeline
#390
canceled with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
3 deletions
+63
-3
src/main/resources/application.yml
src/main/resources/application.yml
+3
-3
src/main/resources/db/changelog/db.changelog-master.xml
src/main/resources/db/changelog/db.changelog-master.xml
+60
-0
No files found.
src/main/resources/application.yml
View file @
de909573
...
@@ -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}
...
@@ -61,7 +61,7 @@ rabbitmq:
...
@@ -61,7 +61,7 @@ rabbitmq:
document_routing_key
:
${RABBITMQ_DOCUMENT_ROUTING_KEY:routing_key_document_save}
document_routing_key
:
${RABBITMQ_DOCUMENT_ROUTING_KEY:routing_key_document_save}
server
:
server
:
port
:
808
1
port
:
808
5
springdoc
:
springdoc
:
api-docs
:
api-docs
:
...
...
src/main/resources/db/changelog/db.changelog-master.xml
View file @
de909573
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment