spring boot template with liquibase
commit
826969814c
|
@ -0,0 +1,329 @@
|
|||
|
||||
# Created by https://www.gitignore.io/api/git,node,java,linux,macos,gradle,windows,intellij+all
|
||||
# Edit at https://www.gitignore.io/?templates=git,node,java,linux,macos,gradle,windows,intellij+all
|
||||
|
||||
### Git ###
|
||||
# Created by git for backups. To disable backups in Git:
|
||||
# $ git config --global mergetool.keepBackup false
|
||||
*.orig
|
||||
|
||||
# Created by git when using merge tools for conflicts
|
||||
*.BACKUP.*
|
||||
*.BASE.*
|
||||
*.LOCAL.*
|
||||
*.REMOTE.*
|
||||
*_BACKUP_*.txt
|
||||
*_BASE_*.txt
|
||||
*_LOCAL_*.txt
|
||||
*_REMOTE_*.txt
|
||||
|
||||
### Intellij+all ###
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/**/usage.statistics.xml
|
||||
.idea/**/dictionaries
|
||||
.idea/**/shelf
|
||||
|
||||
# Generated files
|
||||
.idea/**/contentModel.xml
|
||||
|
||||
# Sensitive or high-churn files
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
.idea/**/dbnavigator.xml
|
||||
|
||||
# Gradle
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Gradle and Maven with auto-import
|
||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||
# since they will be recreated, and may cause churn. Uncomment if using
|
||||
# auto-import.
|
||||
# .idea/modules.xml
|
||||
# .idea/*.iml
|
||||
# .idea/modules
|
||||
# *.iml
|
||||
# *.ipr
|
||||
|
||||
# CMake
|
||||
cmake-build-*/
|
||||
|
||||
# Mongo Explorer plugin
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
# File-based project format
|
||||
*.iws
|
||||
|
||||
# IntelliJ
|
||||
out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Cursive Clojure plugin
|
||||
.idea/replstate.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
|
||||
# Editor-based Rest Client
|
||||
.idea/httpRequests
|
||||
|
||||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
### Intellij+all Patch ###
|
||||
# Ignores the whole .idea folder and all .iml files
|
||||
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
|
||||
|
||||
.idea/
|
||||
|
||||
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
|
||||
|
||||
*.iml
|
||||
modules.xml
|
||||
.idea/misc.xml
|
||||
*.ipr
|
||||
|
||||
# Sonarlint plugin
|
||||
.idea/sonarlint
|
||||
|
||||
### Java ###
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
|
||||
# BlueJ files
|
||||
*.ctxt
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.nar
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
|
||||
### Linux ###
|
||||
*~
|
||||
|
||||
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||
.fuse_hidden*
|
||||
|
||||
# KDE directory preferences
|
||||
.directory
|
||||
|
||||
# Linux trash folder which might appear on any partition or disk
|
||||
.Trash-*
|
||||
|
||||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
### macOS ###
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# rollup.js default build output
|
||||
dist/
|
||||
|
||||
# Uncomment the public line if your project uses Gatsby
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
|
||||
# public
|
||||
|
||||
# Storybook build outputs
|
||||
.out
|
||||
.storybook-out
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# Temporary folders
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
### Windows ###
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
|
||||
# Dump file
|
||||
*.stackdump
|
||||
|
||||
# Folder config file
|
||||
[Dd]esktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
|
||||
### Gradle ###
|
||||
.gradle
|
||||
build/
|
||||
.gradle/buildOutputCleanup/**
|
||||
|
||||
# Ignore Gradle GUI config
|
||||
gradle-app.setting
|
||||
|
||||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||
!gradle-wrapper.jar
|
||||
|
||||
# Cache of project
|
||||
.gradletasknamecache
|
||||
|
||||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
|
||||
# gradle/wrapper/gradle-wrapper.properties
|
||||
|
||||
### Gradle Patch ###
|
||||
**/build/
|
||||
|
||||
# End of https://www.gitignore.io/api/git,node,java,linux,macos,gradle,windows,intellij+all
|
||||
|
||||
pg/**
|
||||
.vscode/**
|
||||
db-patcher/bin/**
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
#Thu Dec 22 12:38:58 MSK 2022
|
||||
gradle.version=7.6
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
|
@ -0,0 +1,12 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<code_scheme name="Project" version="173">
|
||||
<option name="FORMATTER_TAGS_ENABLED" value="true" />
|
||||
<JavaCodeStyleSettings>
|
||||
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="50" />
|
||||
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="2" />
|
||||
</JavaCodeStyleSettings>
|
||||
<ScalaCodeStyleSettings>
|
||||
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
|
||||
</ScalaCodeStyleSettings>
|
||||
</code_scheme>
|
||||
</component>
|
|
@ -0,0 +1,5 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||
</state>
|
||||
</component>
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleHome" value="$USER_HOME$/soft/gradle-6.8.3" />
|
||||
<option name="gradleJvm" value="#JAVA_HOME" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/db-patcher" />
|
||||
<option value="$PROJECT_DIR$/service" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="PDMPlugin">
|
||||
<option name="skipTestSources" value="false" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="11" project-jdk-type="JavaSDK" />
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="jpab" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,133 @@
|
|||
gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
// ext.mavenRepo = 'http://localhost:18081/repository/maven-central/'
|
||||
springBootVersion = '2.6.6'
|
||||
springCloudVersion = '2021.0.1'
|
||||
liquibaseCoreVersion = '3.8.9'
|
||||
liquibasePluginVersion = '2.1.1'
|
||||
logbackVersion = '1.2.9'
|
||||
jacksonVersion = '2.11.0'
|
||||
validationApiVersion = '2.0.1.Final'
|
||||
hibernateValidator = '6.2.0.Final'
|
||||
jakartaValidation = '2.0.2'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
//maven {
|
||||
// allowInsecureProtocol true
|
||||
// url mavenRepo
|
||||
//}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
|
||||
classpath "org.liquibase:liquibase-gradle-plugin:${liquibasePluginVersion}"
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
group = 'me.bvn13.service'
|
||||
version = '0.0.1'
|
||||
|
||||
sourceCompatibility = 17
|
||||
targetCompatibility = 17
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
extendsFrom annotationProcessor
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
//maven {
|
||||
// allowInsecureProtocol true
|
||||
// url mavenRepo
|
||||
//}
|
||||
}
|
||||
|
||||
//------------------- Настройка интеграционных тестов (start) ---------------------
|
||||
sourceSets {
|
||||
integrationTest {
|
||||
java {
|
||||
compileClasspath += sourceSets.main.output
|
||||
runtimeClasspath += sourceSets.main.output
|
||||
compileClasspath += sourceSets.test.output
|
||||
runtimeClasspath += sourceSets.test.output
|
||||
srcDir file('src/integration-test/java')
|
||||
}
|
||||
resources.srcDir file('src/integration-test/resources')
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
integrationTestImplementation.extendsFrom testImplementation
|
||||
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
|
||||
}
|
||||
|
||||
task integrationTest(type: Test) {
|
||||
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
||||
classpath = sourceSets.integrationTest.runtimeClasspath
|
||||
outputs.upToDateWhen { false }
|
||||
}
|
||||
|
||||
check.dependsOn integrationTest
|
||||
integrationTest.mustRunAfter test
|
||||
//------------------- Настройка интеграционных тестов (end) ---------------------
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
|
||||
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||
}
|
||||
|
||||
testCompileOnly "org.projectlombok:lombok"
|
||||
testAnnotationProcessor("org.projectlombok:lombok")
|
||||
|
||||
testImplementation 'org.assertj:assertj-core'
|
||||
testImplementation 'org.mockito:mockito-core'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
systemProperties System.properties
|
||||
// Нужно, иначе Jacoco не работает
|
||||
systemProperties['user.dir'] = workingDir
|
||||
}
|
||||
integrationTest {
|
||||
useJUnitPlatform()
|
||||
systemProperties System.properties
|
||||
}
|
||||
}
|
||||
|
||||
// Task to download all dependencies for all targets
|
||||
task downloadDependencies {
|
||||
doLast {
|
||||
rootProject.allprojects { project ->
|
||||
Set<Configuration> configurations = project.buildscript.configurations + project.configurations
|
||||
configurations.findAll { c -> c.canBeResolved }
|
||||
.forEach { c -> c.resolve() }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.liquibase.gradle'
|
||||
}
|
||||
|
||||
bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
dependencies {
|
||||
liquibaseRuntime "org.liquibase:liquibase-core:${liquibaseCoreVersion}"
|
||||
liquibaseRuntime "org.liquibase:liquibase-gradle-plugin:${liquibasePluginVersion}"
|
||||
liquibaseRuntime "ch.qos.logback:logback-classic:${logbackVersion}"
|
||||
liquibaseRuntime "ch.qos.logback:logback-core:${logbackVersion}"
|
||||
liquibaseRuntime sourceSets.main.output
|
||||
|
||||
testImplementation "org.liquibase:liquibase-core:${liquibaseCoreVersion}"
|
||||
testImplementation 'com.h2database:h2'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
liquibase {
|
||||
activities {
|
||||
main {
|
||||
changeLogFile 'db/changelog/changelog.xml'
|
||||
// url System.getProperty('liquibaseUrl') ?:
|
||||
// "jdbc:oracle:thin:@(DESCRIPTION=\
|
||||
// (ADDRESS_LIST=\
|
||||
// (ADDRESS=(PROTOCOL=tcp)(HOST=nl-lsnr-stg00.local.profee.com)(PORT=1521)))\
|
||||
// (CONNECT_DATA=(SERVICE_NAME=PFTEST)(ur=a)))"
|
||||
// username System.getProperty('liquibaseUsername')
|
||||
// password System.getProperty('liquibasePassword')
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
|
||||
<include file="db/changelog/scripts/20210126-1-create_table_for_files.xml"/>
|
||||
<include file="db/changelog/scripts/20210204-1-grant-rights.xml"/>
|
||||
<include file="db/changelog/scripts/20210216-1-create_file_for_invitation_records.xml"/>
|
||||
<include file="db/changelog/scripts/20210216-2-grant-rights.xml"/>
|
||||
<include file="db/changelog/scripts/20210218-1-grant-rights.xml"/>
|
||||
<include file="db/changelog/scripts/20210218-2-alter_table_for_invitation_records.xml"/>
|
||||
<include file="db/changelog/scripts/20210219-1-alter_table_for_invitation_records.xml"/>
|
||||
<include file="db/changelog/scripts/20210220-1-create_table_md_merchant.xml"/>
|
||||
<include file="db/changelog/scripts/20210225-1-alter_table_for_invitation_records.xml"/>
|
||||
<include file="db/changelog/scripts/20210324-1-grant_rights_for_merchant.xml"/>
|
||||
<include file="db/changelog/scripts/20210621-1-create_table_fd_bulk_payout_order.xml"/>
|
||||
<include file="db/changelog/scripts/20210622-1-grant_rights_for_mpp.xml"/>
|
||||
<include file="db/changelog/scripts/20210713-1-create_table_md_employee.xml"/>
|
||||
<include file="db/changelog/scripts/20210726-1-grant_rights_for_md_employee.xml"/>
|
||||
<include file="db/changelog/scripts/20210727-1-grant_rights_for_employee_seq.xml"/>
|
||||
<include file="db/changelog/scripts/20210812-1-change_payment_link_size.xml"/>
|
||||
<include file="db/changelog/scripts/20220323-01-create_fd_payout_record.xml"/>
|
||||
<include file="db/changelog/scripts/20220323-02-grant_rights_to_payout_file_content.xml"/>
|
||||
<include file="db/changelog/scripts/20220324-01-update_table_md_employee.xml"/>
|
||||
<include file="db/changelog/scripts/20220324-02-update_table_md_employee.xml"/>
|
||||
<include file="db/changelog/scripts/20220328-01-update_table_fd_bulk_payout_order.xml"/>
|
||||
<include file="db/changelog/scripts/20220328-02-update_table_fd_bulk_payout_order.xml"/>
|
||||
<include file="db/changelog/scripts/20220404-01-update_fd_payout_record_drop_uniq_constraint_on_id_and_email.xml"/>
|
||||
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.1" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||
<changeSet id="20210126-1-create_table_for_files" author="ashibkovskiy">
|
||||
<sql>
|
||||
create table md_invitation_file(file_uid varchar2(40 char)
|
||||
, file_data blob not null
|
||||
, original_file_name varchar2(500 char) not null
|
||||
, merchant_wal_id varchar2(40 char) not null
|
||||
, load_time timestamp default systimestamp not null
|
||||
, parse_status varchar2(20 char) not null
|
||||
, constraint md_invitation_file_pk primary key(file_uid)
|
||||
, constraint md_invitation_file_uk unique(merchant_wal_id, original_file_name, load_time)
|
||||
);
|
||||
comment on table md_invitation_file is 'Файлы с приглашениями к регистрации в Profee';
|
||||
comment on column md_invitation_file.file_uid is 'Идентификатор файла';
|
||||
comment on column md_invitation_file.file_data is 'Содержимое файла';
|
||||
comment on column md_invitation_file.original_file_name is 'Имя файла';
|
||||
comment on column md_invitation_file.merchant_wal_id is 'Идентификатор мерчанта в Profee';
|
||||
comment on column md_invitation_file.load_time is 'Время загрузки файла';
|
||||
comment on column md_invitation_file.parse_status is 'Статус парсинга';
|
||||
|
||||
create index md_invitation_file_wal_id_i
|
||||
on md_invitation_file(merchant_wal_id);
|
||||
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
drop table md_invitation_file purge;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||
<changeSet id="20210204-1-grant-rights" author="avolchkov">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on MD_INVITATION_FILE to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert, update on MD_INVITATION_FILE from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210216-1-create_file_for_invitation_records" author="avolchkov">
|
||||
<sql>
|
||||
create sequence md_invitation_record_seq;
|
||||
</sql>
|
||||
<sql>
|
||||
create table md_invitation_record(record_id number(10, 0)
|
||||
, email varchar2(500 char) not null
|
||||
, name varchar2(500 char) not null
|
||||
, invitation_file_uuid varchar2(40 char)
|
||||
, merchant_wal_id varchar2(40 char)
|
||||
, invitation_request_status varchar2(40 char)
|
||||
, constraint md_invitation_record_pk primary key(record_id)
|
||||
, constraint md_invitation_record_uk unique(invitation_file_uuid, email, merchant_wal_id)
|
||||
);
|
||||
comment on table md_invitation_record is 'Запросы на приглашения к регистрации в Profee';
|
||||
comment on column md_invitation_record.record_id is 'Идентификатор записи';
|
||||
comment on column md_invitation_record.email is 'Почта для отправки приглашения';
|
||||
comment on column md_invitation_record.name is 'Имя участника программы';
|
||||
comment on column md_invitation_record.invitation_file_uuid is 'Идентификатор файла с приглашениями';
|
||||
comment on column md_invitation_record.merchant_wal_id is 'Идентификатор мерчанта в Profee';
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
drop table md_invitation_record purge;
|
||||
</sql>
|
||||
<sql>
|
||||
drop sequence md_invitation_record_seq;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210216-2-grant-rights" author="avolchkov">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on md_invitation_record to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert, update on md_invitation_record from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210218-1-grant-rights" author="avolchkov">
|
||||
<sql dbms="oracle">
|
||||
grant select on md_invitation_record_seq to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select on md_invitation_record_seq from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210218-2-alter_table_for_invitation_records" author="avolchkov">
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
rename column invitation_file_uuid to invitation_file_uid;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
rename column invitation_file_uid to invitation_file_uuid;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210219-1-alter_table_for_invitation_records" author="avolchkov">
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
drop constraint md_invitation_record_uk;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
add constraint md_invitation_record_uk unique(invitation_file_uid, email, merchant_wal_id);
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210220-1-create_table_md_merchant" author="ashibkovskiy">
|
||||
<sql>
|
||||
create table md_merchant(wal_id varchar(40 char)
|
||||
, trading_name varchar2(500 char) not null
|
||||
, constraint md_merchant_pk primary key(wal_id)
|
||||
);
|
||||
|
||||
comment on table md_merchant is 'Информация о партнёрах';
|
||||
comment on column md_merchant.wal_id is 'Лицевой счёт мерчанта в Profee';
|
||||
comment on column md_merchant.trading_name is 'Коммерческое название мерчанта';
|
||||
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
drop table md_merchant purge;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210225-1-alter_table_for_invitation_records" author="avolchkov">
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
rename column merchant_wal_id to merchant_trading_name;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_invitation_record
|
||||
rename column merchant_trading_name to merchant_wal_id;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210324-1-grant_rights_for_merchant" author="avolchkov">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on md_merchant to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert, update on md_merchant from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210621-1-create_table_fd_bulk_payout_order" author="ashibkovskiy">
|
||||
<sql>
|
||||
create table fd_bulk_payout_order(
|
||||
bulk_order_id varchar2(40 char)
|
||||
, bulk_order_data blob not null
|
||||
, original_file_name varchar2(500 char) not null
|
||||
, partner_wal_id varchar2(40 char) not null
|
||||
, load_time timestamp default systimestamp not null
|
||||
, payout_number number(8)
|
||||
, record_number number(8)
|
||||
, user_login varchar2(40 char)
|
||||
, parse_status varchar2(20 char) not null
|
||||
, constraint fd_bulk_payout_order_pk primary key(bulk_order_id)
|
||||
, constraint fd_bulk_payout_order_status_ck check(parse_status in ('REJECTED', 'CONFIRMED'))
|
||||
);
|
||||
|
||||
comment on table fd_bulk_payout_order is 'Распоряжения на массовую выплату';
|
||||
comment on column fd_bulk_payout_order.bulk_order_id is 'UID распоряжения';
|
||||
comment on column fd_bulk_payout_order.bulk_order_data is 'Файл-распоряжение';
|
||||
comment on column fd_bulk_payout_order.original_file_name is 'Имя файла';
|
||||
comment on column fd_bulk_payout_order.partner_wal_id is 'Идентификатор договора партнёра';
|
||||
comment on column fd_bulk_payout_order.load_time is 'Дата и время загрузки файла-распоряжения';
|
||||
comment on column fd_bulk_payout_order.payout_number is 'Количесво инициализированных выплат';
|
||||
comment on column fd_bulk_payout_order.record_number is 'Количество записей в файле-распоряжении';
|
||||
comment on column fd_bulk_payout_order.user_login is 'Логин пользователя, загрузившего файл-распоряжение';
|
||||
comment on column fd_bulk_payout_order.parse_status is 'Статус парсинга';
|
||||
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
drop table fd_bulk_payout_order purge;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210622-1-grant_rights_for_mpp" author="afirsov">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on fd_bulk_payout_order to mpp_app;
|
||||
grant select, insert, update on fd_bulk_payout_order to pf_api_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert,update on fd_bulk_payout_order from mpp_app;
|
||||
revoke select, insert,update on fd_bulk_payout_order from pf_api_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210713-1-create_table_md_employee" author="afirsov">
|
||||
<sql>
|
||||
create sequence md_employee_seq;
|
||||
</sql>
|
||||
<sql>
|
||||
create table md_employee_status_rd(status varchar2(15 char), status_description varchar2(500 char),
|
||||
constraint md_employee_status_rd_pk primary key(status));
|
||||
comment on table md_employee_status_rd is 'Справочник статусов сотрудника';
|
||||
comment on column md_employee_status_rd.status is 'Статус сотрудника';
|
||||
comment on column md_employee_status_rd.status_description is 'Описание статуса сотрудника';
|
||||
</sql>
|
||||
<sql>
|
||||
insert into md_employee_status_rd(status, status_description)
|
||||
values ('PENDING', 'Ожидание регистрации сотрудника');
|
||||
insert into md_employee_status_rd(status, status_description)
|
||||
values ('REGISTERED', 'Сотрудник зарегистрирован');
|
||||
commit;
|
||||
</sql>
|
||||
<sql>
|
||||
create table md_employee(employee_id number(10)
|
||||
, wal_id varchar2(40 char) not null
|
||||
, employee_name varchar2(500 char) not null
|
||||
, cli_email varchar2(500 char) not null
|
||||
, payment_link varchar2(40 char)
|
||||
, registration_date timestamp default systimestamp
|
||||
, status varchar2(15 char) not null
|
||||
, update_date timestamp default systimestamp not null
|
||||
, constraint md_employee_pk primary key(employee_id)
|
||||
, constraint md_employee_status_fk foreign key(status) references md_employee_status_rd (status)
|
||||
);
|
||||
comment on table md_employee is 'Информация о сотрудниках';
|
||||
comment on column md_employee.employee_id is 'Идентификатор сотрудника';
|
||||
comment on column md_employee.wal_id is 'Идентификатор мерчанта в Profee';
|
||||
comment on column md_employee.employee_name is 'Имя сотрудника';
|
||||
comment on column md_employee.cli_email is 'Почта для отправки приглашения';
|
||||
comment on column md_employee.payment_link is 'Ссылка для оплаты';
|
||||
comment on column md_employee.registration_date is 'Дата регистрации сотрудника';
|
||||
comment on column md_employee.status is 'Статус, в котором находится сотрудник';
|
||||
comment on column md_employee.update_date is 'Дата последнего изменения';
|
||||
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
drop table md_employee purge;
|
||||
drop table md_employee_status_rd purge;
|
||||
</sql>
|
||||
<sql>
|
||||
drop sequence md_employee_seq;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210726-1-grant_rights_for_md_employee" author="afirsov">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on md_employee to mpp_app;
|
||||
grant select, insert, update on md_employee_status_rd to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert, update on md_employee from mpp_app;
|
||||
revoke select, insert, update on md_employee_status_rd from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210726-1-grant_rights_for_md_employee" author="afirsov">
|
||||
<sql dbms="oracle">
|
||||
grant select on md_employee_seq to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select on md_employee_seq from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
<changeSet id="20210812-1-change_payment_link_size" author="afirsov">
|
||||
<sql>
|
||||
alter table md_employee modify payment_link varchar2(120 char);
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_employee modify payment_link varchar2(40 char)
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
|
||||
<changeSet id="20220323-02-create_fd_payout_record" author="vboyko">
|
||||
<sql>
|
||||
create table fd_payout_record (
|
||||
record_id varchar2(40 char)
|
||||
, bulk_order_id varchar2(40 char) not null
|
||||
, record_number number(10) not null
|
||||
, cli_email varchar2(500 char) not null
|
||||
, payout_status varchar2(40 char)
|
||||
, constraint fd_payout_record_pk primary key(record_id)
|
||||
, constraint fd_payout_record_rec_num_uk unique(bulk_order_id, record_number)
|
||||
, constraint fd_payout_record_email_uk unique(bulk_order_id, cli_email)
|
||||
, constraint fd_payout_record_order_fk foreign key(bulk_order_id) references fd_bulk_payout_order (bulk_order_id)
|
||||
);
|
||||
comment on table fd_payout_record is 'Платежи сотрудникам по зарплатному проекту Profee';
|
||||
comment on column fd_payout_record.record_id is 'Идентификатор записи';
|
||||
comment on column fd_payout_record.bulk_order_id is 'Идентификатор файла ведомости';
|
||||
comment on column fd_payout_record.record_number is 'Порядковый номер строки в файле ведомости';
|
||||
comment on column fd_payout_record.cli_email is 'Почта сотрудника зарплатного проекта';
|
||||
comment on column fd_payout_record.payout_status is 'Статус платежа (создан или нет)';
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
drop table fd_payout_record purge;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
|
||||
<changeSet id="20220323-03-grant_rights_to_payout_file_content.xml" author="vboyko">
|
||||
<sql dbms="oracle">
|
||||
grant select, insert, update on fd_payout_record to mpp_app;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql dbms="oracle">
|
||||
revoke select, insert, update on fd_payout_record from mpp_app;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
<changeSet id="20220324-01-update_table_md_employee.xml" author="vboyko">
|
||||
<sql>
|
||||
alter table md_employee
|
||||
rename column wal_id to merchant_wal_id;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_employee
|
||||
rename column merchant_wal_id to wal_id;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
<changeSet id="20220324-02-update_table_md_employee.xml" author="vboyko">
|
||||
<sql>
|
||||
alter table md_employee
|
||||
add wal_id varchar(40 char);
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table md_employee
|
||||
drop column wal_id;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
<changeSet id="20220328-01-update_table_fd_bulk_payout_order.xml" author="vboyko">
|
||||
<sql>
|
||||
alter table fd_bulk_payout_order
|
||||
rename column partner_wal_id to merchant_wal_id;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table fd_bulk_payout_order
|
||||
rename column merchant_wal_id to partner_wal_id;
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
<changeSet id="20220328-02-update_table_fd_bulk_payout_order.xml" author="vboyko">
|
||||
<sql>
|
||||
alter table fd_bulk_payout_order
|
||||
drop constraint fd_bulk_payout_order_status_ck;
|
||||
alter table fd_bulk_payout_order
|
||||
add constraint fd_bulk_payout_order_status_ck check(parse_status in ('INIT', 'REJECTED', 'CONFIRMED'));
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table fd_bulk_payout_order
|
||||
drop constraint fd_bulk_payout_order_status_ck;
|
||||
alter table fd_bulk_payout_order
|
||||
add constraint fd_bulk_payout_order_status_ck check(parse_status in ('REJECTED', 'CONFIRMED'));
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
|
||||
<changeSet id="20220404-01-update_fd_payout_record_drop_uniq_constraint_on_id_and_email.xml" author="vboyko">
|
||||
<sql>
|
||||
alter table fd_payout_record
|
||||
drop constraint fd_payout_record_email_uk;
|
||||
</sql>
|
||||
<rollback>
|
||||
<sql>
|
||||
alter table fd_payout_record
|
||||
add constraint fd_payout_record_email_uk unique(bulk_order_id, cli_email);
|
||||
</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.1" 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-3.1.xsd">
|
||||
|
||||
<include file="db/changelog/scripts/20210126-1-create_table_for_files.xml"/>
|
||||
|
||||
|
||||
</databaseChangeLog>
|
|
@ -0,0 +1,9 @@
|
|||
package me.bvn13.service.db.patcher;
|
||||
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
@Import({
|
||||
me.bvn13.service.db.patcher.LiquibaseTestConfig.class
|
||||
})
|
||||
public class DbPatcherTestConfig {
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package me.bvn13.service.db.patcher;
|
||||
|
||||
import liquibase.integration.spring.SpringLiquibase;
|
||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseDataSource;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.jdbc.datasource.DriverManagerDataSource;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
@EnableTransactionManagement
|
||||
public class LiquibaseTestConfig {
|
||||
private static final String PATH_TO_CHANGE_LOG = "classpath:db/changelog/changelog.xml";
|
||||
|
||||
@Bean
|
||||
public SpringLiquibase liquibase(DataSource dataSource) {
|
||||
SpringLiquibase liquibase = new SpringLiquibase();
|
||||
liquibase.setDataSource(dataSource);
|
||||
liquibase.setChangeLog(PATH_TO_CHANGE_LOG);
|
||||
return liquibase;
|
||||
}
|
||||
|
||||
@LiquibaseDataSource
|
||||
@Bean
|
||||
public DataSource dataSource() {
|
||||
DriverManagerDataSource dataSource = new DriverManagerDataSource();
|
||||
dataSource.setDriverClassName(org.h2.Driver.class.getName());
|
||||
dataSource.setUrl("jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;MODE=Oracle");
|
||||
dataSource.setUsername("sa");
|
||||
dataSource.setPassword("");
|
||||
return dataSource;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package me.bvn13.service.db.patcher;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.NONE;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = NONE, classes = me.bvn13.service.db.patcher.DbPatcherTestConfig.class)
|
||||
public class PatcherTest {
|
||||
@Test
|
||||
public void testApplicationContext() {
|
||||
System.out.println("Application context is started");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
org.gradle.console = plain
|
||||
org.gradle.logging.level = info
|
||||
org.gradle.jvmargs = -Xmx4G
|
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
|
@ -0,0 +1,185 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MSYS* | MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=`save "$@"`
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
exec "$JAVACMD" "$@"
|
|
@ -0,0 +1,89 @@
|
|||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
|
@ -0,0 +1,37 @@
|
|||
HELP.md
|
||||
.gradle
|
||||
build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
bin/
|
||||
!**/src/main/**/bin/
|
||||
!**/src/test/**/bin/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
out/
|
||||
!**/src/main/**/out/
|
||||
!**/src/test/**/out/
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
|
@ -0,0 +1,29 @@
|
|||
springBoot {
|
||||
// для использования со Spring Actuator: отображает в actuator/info информацию о приложении
|
||||
buildInfo()
|
||||
}
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
extendsFrom annotationProcessor
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.liquibase:liquibase-core'
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
runtimeOnly 'org.postgresql:postgresql'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package me.bvn13.service;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ServiceApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ServiceApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
package me.bvn13.service;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ServiceApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
pluginManagement {
|
||||
// repositories {
|
||||
// maven { url 'https://nexus.local.profee.com/repository/gradle-plugins/' }
|
||||
// }
|
||||
}
|
||||
|
||||
rootProject.name = 'spring-boot-service'
|
||||
|
||||
include 'service'
|
||||
include 'db-patcher'
|
Loading…
Reference in New Issue