1
0

removing JHipster

This commit is contained in:
Michael Hoennig
2022-07-22 13:31:37 +02:00
parent 31cd92f3be
commit f2d0fbe67a
747 changed files with 2225 additions and 92268 deletions

View File

@@ -1,6 +0,0 @@
#H2 Server Properties
#Thu Apr 25 12:42:42 CEST 2019
0=JHipster H2 (Memory)|org.h2.Driver|jdbc\:h2\:mem\:hsadminng|hsadminNg
webAllowOthers=true
webPort=8082
webSSL=false

View File

@@ -1,10 +0,0 @@
${AnsiColor.GREEN} ██╗${AnsiColor.RED} ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
${AnsiColor.GREEN} ██║${AnsiColor.RED} ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
${AnsiColor.GREEN} ██║${AnsiColor.RED} ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
${AnsiColor.GREEN}██╗ ██║${AnsiColor.RED} ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
${AnsiColor.GREEN}╚██████╔╝${AnsiColor.RED} ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
${AnsiColor.GREEN} ╚═════╝ ${AnsiColor.RED} ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
${AnsiColor.BRIGHT_BLUE}:: JHipster 🤓 :: Running Spring Boot ${spring-boot.version} ::
:: https://www.jhipster.tech ::${AnsiColor.DEFAULT}

View File

@@ -1,117 +0,0 @@
# ===================================================================
# Spring Boot configuration for the "dev" profile.
#
# This configuration overrides the application.yml file.
#
# More information on profiles: https://www.jhipster.tech/profiles/
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
# ===================================================================
# ===================================================================
# Standard Spring Boot properties.
# Full reference is available at:
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================
logging:
level:
ROOT: DEBUG
io.github.jhipster: DEBUG
org.hostsharing.hsadminng: DEBUG
spring:
profiles:
active: dev
include:
- swagger
# Uncomment to activate TLS for the dev profile
#- tls
devtools:
restart:
enabled: true
additional-exclude: .h2.server.properties
livereload:
enabled: false # we use Webpack dev server + BrowserSync for livereload
jackson:
serialization:
indent-output: true
datasource:
# this is just a common configuration for the dev-profiles h2mem, h2file and pgsql
type: com.zaxxer.hikari.HikariDataSource
hikari:
poolName: Hikari
auto-commit: false
jpa:
show-sql: true
properties:
hibernate.id.new_generator_mappings: true
hibernate.connection.provider_disables_autocommit: true
hibernate.cache.use_second_level_cache: false
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true
mail:
host: localhost
port: 25
username:
password:
messages:
cache-duration: PT1S # 1 second, see the ISO 8601 standard
thymeleaf:
cache: false
server:
port: 8080
# ===================================================================
# JHipster specific properties
#
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
# ===================================================================
jhipster:
http:
version: V_1_1 # To use HTTP/2 you will need to activate TLS (see application-tls.yml)
cache: # Cache configuration
ehcache: # Ehcache configuration
time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
max-entries: 100 # Number of objects in each cache entry
# CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
cors:
allowed-origins: "*"
allowed-methods: "*"
allowed-headers: "*"
exposed-headers: "Authorization,Link,X-Total-Count"
allow-credentials: true
max-age: 1800
security:
authentication:
jwt:
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
base64-secret: ZDFlMDUzODIzMTUzZDEwZjExN2E5ZjAzY2VhZmYzNDE1YjhlYWUxZGRhMGU3ODZiNjRkNjVlNzEwZjExYWY4YzczM2NlYzI5YWE1OTRkNWM0YThlYjZjZjA5Zjc5YWJkOTgzYjdhZjQxZWQyZGUyYjFlYjI5ZDE3NmE4M2UzYjQ=
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
mail: # specific JHipster mail property, for standard properties see MailProperties
from: hsadminNg@localhost
base-url: http://127.0.0.1:8080
metrics:
logs: # Reports metrics in the logs
enabled: false
report-frequency: 60 # in seconds
logging:
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
enabled: false
host: localhost
port: 5000
queue-size: 512
# ===================================================================
# Application specific properties
# Add your own application properties here, see the ApplicationProperties class
# to have type-safe configuration, like in the JHipsterProperties above
#
# More documentation is available at:
# https://www.jhipster.tech/common-application-properties/
# ===================================================================
# application:

View File

@@ -1,20 +0,0 @@
# Configuration for the dev-profile using a file-based H2 database.
spring:
profiles:
active: h2,h2file
include:
- dev
- swagger
# Uncomment to activate TLS for the dev profile
#- tls
datasource:
url: url: jdbc:h2:~/.hsadminng.h2db;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: hsadminNg
password:
h2:
console:
enabled: false
jpa:
database-platform: io.github.jhipster.domain.util.FixedH2Dialect
database: H2

View File

@@ -1,22 +0,0 @@
# Configuration for the dev-profile using an in-memory H2 database.
spring:
profiles:
active: h2,h2mem
include:
- dev
- swagger
# Uncomment to activate TLS for the dev profile
#- tls
datasource:
url: jdbc:h2:mem:hsadminng;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: hsadminNg
password:
h2:
console:
enabled: false
jpa:
database-platform: io.github.jhipster.domain.util.FixedH2Dialect
database: H2
liquibase:
contexts: dev,sample-data

View File

@@ -1,17 +0,0 @@
# Configuration for the dev-profile using a Postgres database specified via environment.
spring:
profiles:
active: dev,pgsql
include:
- dev
- swagger
# Uncomment to activate TLS for the dev profile
#- tls
datasource:
url: ${HSADMINNG_DB_URL}
username: ${HSADMINNG_DB_USER}
password: ${HSADMINNG_DB_PASS}
jpa:
database-platform: io.github.jhipster.domain.util.FixedPostgreSQL82Dialect
database: POSTGRESQL

View File

@@ -1,132 +0,0 @@
# ===================================================================
# Spring Boot configuration for the "prod" profile.
#
# This configuration overrides the application.yml file.
#
# More information on profiles: https://www.jhipster.tech/profiles/
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
# ===================================================================
# ===================================================================
# Standard Spring Boot properties.
# Full reference is available at:
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================
logging:
level:
ROOT: INFO
org.hostsharing.hsadminng: INFO
io.github.jhipster: INFO
spring:
devtools:
restart:
enabled: false
livereload:
enabled: false
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:postgresql://localhost:5432/hsadminNg
username: hsadminNg
password:
hikari:
poolName: Hikari
auto-commit: false
jpa:
database-platform: io.github.jhipster.domain.util.FixedPostgreSQL82Dialect
database: POSTGRESQL
show-sql: false
properties:
hibernate.id.new_generator_mappings: true
hibernate.connection.provider_disables_autocommit: true
hibernate.cache.use_second_level_cache: false
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true
liquibase:
contexts: prod
mail:
host: localhost
port: 25
username:
password:
thymeleaf:
cache: true
# ===================================================================
# To enable TLS in production, generate a certificate using:
# keytool -genkey -alias hsadminng -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
#
# You can also use Let's Encrypt:
# https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
#
# Then, modify the server.ssl properties so your "server" configuration looks like:
#
# server:
# port: 443
# ssl:
# key-store: classpath:config/tls/keystore.p12
# key-store-password: password
# key-store-type: PKCS12
# key-alias: hsadminng
# # The ciphers suite enforce the security by deactivating some old and deprecated SSL cipher, this list was tested against SSL Labs (https://www.ssllabs.com/ssltest/)
# ciphers: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 ,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
# ===================================================================
server:
port: 8080
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
min-response-size: 1024
# ===================================================================
# JHipster specific properties
#
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
# ===================================================================
jhipster:
http:
version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
cache: # Used by the CachingHttpHeadersFilter
timeToLiveInDays: 1461
cache: # Cache configuration
ehcache: # Ehcache configuration
time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
max-entries: 1000 # Number of objects in each cache entry
security:
authentication:
jwt:
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
# As this is the PRODUCTION configuration, you MUST change the default key, and store it securely:
# - In the JHipster Registry (which includes a Spring Cloud Config server)
# - In a separate `application-prod.yml` file, in the same folder as your executable WAR file
# - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
base64-secret: ZDFlMDUzODIzMTUzZDEwZjExN2E5ZjAzY2VhZmYzNDE1YjhlYWUxZGRhMGU3ODZiNjRkNjVlNzEwZjExYWY4YzczM2NlYzI5YWE1OTRkNWM0YThlYjZjZjA5Zjc5YWJkOTgzYjdhZjQxZWQyZGUyYjFlYjI5ZDE3NmE4M2UzYjQ=
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
mail: # specific JHipster mail property, for standard properties see MailProperties
from: hsadminNg@localhost
base-url: http://my-server-url-to-change # Modify according to your server's URL
metrics:
logs: # Reports metrics in the logs
enabled: false
report-frequency: 60 # in seconds
logging:
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
enabled: false
host: localhost
port: 5000
queue-size: 512
# ===================================================================
# Application specific properties
# Add your own application properties here, see the ApplicationProperties class
# to have type-safe configuration, like in the JHipsterProperties above
#
# More documentation is available at:
# https://www.jhipster.tech/common-application-properties/
# ===================================================================
# application:

View File

@@ -1,20 +0,0 @@
# ===================================================================
# Activate this profile to enable TLS and HTTP/2.
#
# JHipster has generated a self-signed certificate, which will be used to encrypt traffic.
# As your browser will not understand this certificate, you will need to import it.
#
# Another (easiest) solution with Chrome is to enable the "allow-insecure-localhost" flag
# at chrome://flags/#allow-insecure-localhost
# ===================================================================
server:
ssl:
key-store: classpath:config/tls/keystore.p12
key-store-password: password
key-store-type: PKCS12
key-alias: selfsigned
ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
enabled-protocols: TLSv1.2
jhipster:
http:
version: V_2_0

View File

@@ -1,143 +0,0 @@
# ===================================================================
# Spring Boot configuration.
#
# This configuration will be overridden by the Spring profile you use,
# for example application-dev.yml if you use the "dev" profile.
#
# More information on profiles: https://www.jhipster.tech/profiles/
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
# ===================================================================
# ===================================================================
# Standard Spring Boot properties.
# Full reference is available at:
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================
management:
endpoints:
web:
base-path: /management
exposure:
include: ["configprops", "env", "health", "info", "threaddump", "logfile", "jhi-metrics", "prometheus" ]
endpoint:
health:
show-details: when-authorized
jhi-metrics:
enabled: true
info:
git:
mode: full
health:
mail:
enabled: false # When using the MailService, configure an SMTP server and set this to true
metrics:
export:
# Prometheus is the default metrics backend
prometheus:
enabled: true
step: 60
binders:
jvm:
enabled: true
processor:
enabled: true
uptime:
enabled: true
logback:
enabled: true
files:
enabled: true
integration:
enabled: true
distribution:
percentiles-histogram:
all: true
percentiles:
all: 0, 0.5, 0.75, 0.95, 0.99, 1.0
web:
server:
auto-time-requests: true
spring:
application:
name: hsadminNg
profiles:
# The commented value for `active` can be replaced with valid Spring profiles to load.
# Otherwise, it will be filled in by gradle when building the WAR file
# Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
active: #spring.profiles.active#
jpa:
open-in-view: false
properties:
hibernate.jdbc.time_zone: UTC
hibernate:
ddl-auto: none
naming:
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
messages:
basename: i18n/messages
mvc:
favicon:
enabled: false
thymeleaf:
mode: HTML
jackson:
deserialization:
USE_BIG_DECIMAL_FOR_FLOATS: true
server:
servlet:
session:
cookie:
http-only: true
# Properties to be exposed on the /info management endpoint
info:
# Comma separated list of profiles that will trigger the ribbon to show
display-ribbon-on-profiles: "dev"
# ===================================================================
# JHipster specific properties
#
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
# ===================================================================
jhipster:
async:
core-pool-size: 2
max-pool-size: 50
queue-capacity: 10000
# By default CORS is disabled. Uncomment to enable.
#cors:
#allowed-origins: "*"
#allowed-methods: "*"
#allowed-headers: "*"
#exposed-headers: "Authorization,Link,X-Total-Count"
#allow-credentials: true
#max-age: 1800
mail:
from: hsadminNg@localhost
swagger:
default-include-pattern: /api/.*
title: hsadminNg API
description: hsadminNg API documentation
version: 0.0.1
terms-of-service-url:
contact-name:
contact-url:
contact-email:
license:
license-url:
# ===================================================================
# Application specific properties
# Add your own application properties here, see the ApplicationProperties class
# to have type-safe configuration, like in the JHipsterProperties above
#
# More documentation is available at:
# https://www.jhipster.tech/common-application-properties/
# ===================================================================
# application:

View File

@@ -1,5 +0,0 @@
name
ROLE_HOSTMASTER
ROLE_ADMIN
ROLE_SUPPORTER
ROLE_USER
1 name
2 ROLE_HOSTMASTER
3 ROLE_ADMIN
4 ROLE_SUPPORTER
5 ROLE_USER

View File

@@ -1,154 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="00000000000000" author="jhipster">
<createSequence sequenceName="hibernate_sequence" startValue="1000051" incrementBy="50"/>
</changeSet>
<!--
JHipster core tables.
The initial schema has the '00000000000001' id, so that it is over-written if we re-generate it.
-->
<changeSet id="00000000000001" author="jhipster">
<createTable tableName="jhi_user">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="login" type="varchar(50)">
<constraints unique="true" nullable="false" uniqueConstraintName="ux_user_login"/>
</column>
<column name="password_hash" type="varchar(60)"/>
<column name="first_name" type="varchar(50)"/>
<column name="last_name" type="varchar(50)"/>
<column name="email" type="varchar(191)">
<constraints unique="true" nullable="true" uniqueConstraintName="ux_user_email"/>
</column>
<column name="image_url" type="varchar(256)"/>
<column name="activated" type="boolean" valueBoolean="false">
<constraints nullable="false" />
</column>
<column name="lang_key" type="varchar(6)"/>
<column name="activation_key" type="varchar(20)"/>
<column name="reset_key" type="varchar(20)"/>
<column name="created_by" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="created_date" type="timestamp"/>
<column name="reset_date" type="timestamp">
<constraints nullable="true"/>
</column>
<column name="last_modified_by" type="varchar(50)"/>
<column name="last_modified_date" type="timestamp"/>
</createTable>
<createTable tableName="jhi_authority">
<column name="name" type="varchar(50)">
<constraints primaryKey="true" nullable="false"/>
</column>
</createTable>
<createTable tableName="jhi_user_authority">
<column name="user_id" type="bigint">
<constraints nullable="false"/>
</column>
<column name="authority_name" type="varchar(50)">
<constraints nullable="false"/>
</column>
</createTable>
<addPrimaryKey columnNames="user_id, authority_name" tableName="jhi_user_authority"/>
<addForeignKeyConstraint baseColumnNames="authority_name"
baseTableName="jhi_user_authority"
constraintName="fk_authority_name"
referencedColumnNames="name"
referencedTableName="jhi_authority"/>
<addForeignKeyConstraint baseColumnNames="user_id"
baseTableName="jhi_user_authority"
constraintName="fk_user_id"
referencedColumnNames="id"
referencedTableName="jhi_user"/>
<addNotNullConstraint columnName="password_hash"
columnDataType="varchar(60)"
tableName="jhi_user"/>
<loadData encoding="UTF-8"
file="config/liquibase/users.csv"
separator=";"
tableName="jhi_user">
<column name="activated" type="boolean"/>
<column name="created_date" type="timestamp"/>
</loadData>
<dropDefaultValue tableName="jhi_user" columnName="created_date" columnDataType="datetime"/>
<loadData encoding="UTF-8"
file="config/liquibase/authorities.csv"
separator=";"
tableName="jhi_authority"/>
<loadData encoding="UTF-8"
file="config/liquibase/users_authorities.csv"
separator=";"
tableName="jhi_user_authority"/>
<createTable tableName="jhi_persistent_audit_event">
<column name="event_id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="principal" type="varchar(50)">
<constraints nullable="false" />
</column>
<column name="event_date" type="timestamp"/>
<column name="event_type" type="varchar(255)"/>
</createTable>
<createTable tableName="jhi_persistent_audit_evt_data">
<column name="event_id" type="bigint">
<constraints nullable="false"/>
</column>
<column name="name" type="varchar(150)">
<constraints nullable="false"/>
</column>
<column name="value" type="varchar(255)"/>
</createTable>
<addPrimaryKey columnNames="event_id, name" tableName="jhi_persistent_audit_evt_data"/>
<createIndex indexName="idx_persistent_audit_event"
tableName="jhi_persistent_audit_event"
unique="false">
<column name="principal" type="varchar(50)"/>
<column name="event_date" type="timestamp"/>
</createIndex>
<createIndex indexName="idx_persistent_audit_evt_data"
tableName="jhi_persistent_audit_evt_data"
unique="false">
<column name="event_id" type="bigint"/>
</createIndex>
<addForeignKeyConstraint baseColumnNames="event_id"
baseTableName="jhi_persistent_audit_evt_data"
constraintName="fk_evt_pers_audit_evt_data"
referencedColumnNames="event_id"
referencedTableName="jhi_persistent_audit_event"/>
</changeSet>
<changeSet author="jhipster" id="00000000000002" context="test">
<createTable tableName="jhi_date_time_wrapper">
<column autoIncrement="${autoIncrement}" name="id" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="jhi_date_time_wrapperPK"/>
</column>
<column name="instant" type="timestamp"/>
<column name="local_date_time" type="timestamp"/>
<column name="offset_date_time" type="timestamp"/>
<column name="zoned_date_time" type="timestamp"/>
<column name="local_time" type="time"/>
<column name="offset_time" type="time"/>
<column name="local_date" type="date"/>
</createTable>
</changeSet>
</databaseChangeLog>

View File

@@ -1,87 +0,0 @@
<?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.5.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity Customer.
-->
<changeSet id="20190507105332-1" author="jhipster">
<createTable tableName="customer">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="reference" type="integer">
<constraints nullable="false" unique="true" uniqueConstraintName="ux_customer_reference" />
</column>
<column name="prefix" type="varchar(3)">
<constraints nullable="false" unique="true" uniqueConstraintName="ux_customer_prefix" />
</column>
<column name="name" type="varchar(80)">
<constraints nullable="false" />
</column>
<column name="kind" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="birth_date" type="date">
<constraints nullable="true" />
</column>
<column name="birth_place" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="registration_court" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="registration_number" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="vat_region" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="vat_number" type="varchar(40)">
<constraints nullable="true" />
</column>
<column name="contractual_salutation" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="contractual_address" type="varchar(400)">
<constraints nullable="false" />
</column>
<column name="billing_salutation" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="billing_address" type="varchar(400)">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,51 +0,0 @@
<?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.5.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity Membership.
-->
<changeSet id="20190507105333-1" author="jhipster">
<createTable tableName="membership">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="admission_document_date" type="date">
<constraints nullable="false" />
</column>
<column name="cancellation_document_date" type="date">
<constraints nullable="true" />
</column>
<column name="member_from_date" type="date">
<constraints nullable="false" />
</column>
<column name="member_until_date" type="date">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="customer_id" type="bigint">
<constraints nullable="false" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,18 +0,0 @@
<?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.5.xsd">
<!--
Added the constraints for entity Membership.
-->
<changeSet id="20190507105333-2" author="jhipster">
<addForeignKeyConstraint baseColumnNames="customer_id"
baseTableName="membership"
constraintName="fk_membership_customer_id"
referencedColumnNames="id"
referencedTableName="customer"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,51 +0,0 @@
<?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.5.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity Share.
-->
<changeSet id="20190507105334-1" author="jhipster">
<createTable tableName="share">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="document_date" type="date">
<constraints nullable="false" />
</column>
<column name="value_date" type="date">
<constraints nullable="false" />
</column>
<column name="action" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="quantity" type="integer">
<constraints nullable="false" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="membership_id" type="bigint">
<constraints nullable="false" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,18 +0,0 @@
<?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.5.xsd">
<!--
Added the constraints for entity Share.
-->
<changeSet id="20190507105334-2" author="jhipster">
<addForeignKeyConstraint baseColumnNames="membership_id"
baseTableName="share"
constraintName="fk_share_membership_id"
referencedColumnNames="id"
referencedTableName="membership"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,51 +0,0 @@
<?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.5.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity Asset.
-->
<changeSet id="20190507105335-1" author="jhipster">
<createTable tableName="asset">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="document_date" type="date">
<constraints nullable="false" />
</column>
<column name="value_date" type="date">
<constraints nullable="false" />
</column>
<column name="action" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="amount" type="decimal(10,2)">
<constraints nullable="false" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="membership_id" type="bigint">
<constraints nullable="false" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,18 +0,0 @@
<?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.5.xsd">
<!--
Added the constraints for entity Asset.
-->
<changeSet id="20190507105335-2" author="jhipster">
<addForeignKeyConstraint baseColumnNames="membership_id"
baseTableName="asset"
constraintName="fk_asset_membership_id"
referencedColumnNames="id"
referencedTableName="membership"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,67 +0,0 @@
<?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.5.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity SepaMandate.
-->
<changeSet id="20190507105336-1" author="jhipster">
<createTable tableName="sepa_mandate">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="reference" type="varchar(40)">
<constraints nullable="false" unique="true" uniqueConstraintName="ux_sepa_mandate_reference" />
</column>
<column name="iban" type="varchar(34)">
<constraints nullable="true" />
</column>
<column name="bic" type="varchar(11)">
<constraints nullable="true" />
</column>
<column name="granting_document_date" type="date">
<constraints nullable="false" />
</column>
<column name="revokation_document_date" type="date">
<constraints nullable="true" />
</column>
<column name="valid_from_date" type="date">
<constraints nullable="false" />
</column>
<column name="valid_until_date" type="date">
<constraints nullable="true" />
</column>
<column name="last_used_date" type="date">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="customer_id" type="bigint">
<constraints nullable="false" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,18 +0,0 @@
<?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.5.xsd">
<!--
Added the constraints for entity SepaMandate.
-->
<changeSet id="20190507105336-2" author="jhipster">
<addForeignKeyConstraint baseColumnNames="customer_id"
baseTableName="sepa_mandate"
constraintName="fk_sepa_mandate_customer_id"
referencedColumnNames="id"
referencedTableName="customer"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<!--
Added the entity UserRoleAssignment.
-->
<changeSet id="20190507105342-1" author="jhipster">
<createTable tableName="user_role_assignment">
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="entity_type_id" type="varchar(32)">
<constraints nullable="false" />
</column>
<column name="entity_object_id" type="bigint">
<constraints nullable="false" />
</column>
<column name="assigned_role" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="user_id" type="bigint">
<constraints nullable="true" />
</column>
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
</createTable>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@@ -1,18 +0,0 @@
<?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.5.xsd">
<!--
Added the constraints for entity UserRoleAssignment.
-->
<changeSet id="20190507105342-2" author="jhipster">
<addForeignKeyConstraint baseColumnNames="user_id"
baseTableName="user_role_assignment"
constraintName="fk_user_role_assignment_user_id"
referencedColumnNames="id"
referencedTableName="jhi_user"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,15 +0,0 @@
<?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.5.xsd">
<!-- the natural key used by the historical view must be unique -->
<changeSet id="20190507100000-1" author="mhoennig">
<!-- must match the GROUP BY clause in membership_history_view -->
<addUniqueConstraint constraintName="ux_membership" tableName="membership"
columnNames="customer_id, member_from_date"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,15 +0,0 @@
<?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.5.xsd">
<!-- the natural key used by the historical view must be unique -->
<changeSet id="201905061856-1" author="mhoennig">
<!-- must match the GROUP BY clause in user_role_assignment_history_view -->
<addUniqueConstraint constraintName="ux_user_role_assignment" tableName="user_role_assignment"
columnNames="entity_type_id, entity_object_id, assigned_role, user_id"/>
</changeSet>
</databaseChangeLog>

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="20190506000000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="history">
<column name="history_transaction" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="history_timestamp" type="timestamp">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20190506000000-2" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE OR REPLACE FUNCTION historicize()
RETURNS trigger
AS $$
BEGIN
IF (TG_OP = 'INSERT') OR (TG_OP = 'UPDATE') THEN
EXECUTE 'INSERT INTO history VALUES (txid_current(), now()) ON CONFLICT DO NOTHING';
EXECUTE format('INSERT INTO %I_history VALUES (DEFAULT, txid_current(), False, $1.*)', TG_TABLE_NAME) USING NEW;
RETURN NEW;
ELSE -- assuming TG_OP = 'DELETE'
EXECUTE 'INSERT INTO history VALUES (txid_current(), now()) ON CONFLICT DO NOTHING';
EXECUTE format('INSERT INTO %I_history VALUES (DEFAULT, txid_current(), True, $1.*)', TG_TABLE_NAME) USING OLD;
RETURN OLD;
END IF;
END;
$$
LANGUAGE plpgsql;
</createProcedure>
</changeSet>
</databaseChangeLog>

View File

@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical Asset data. -->
<changeSet id="20190507193200-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="asset_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="document_date" type="date">
<constraints nullable="false" />
</column>
<column name="value_date" type="date">
<constraints nullable="false" />
</column>
<column name="action" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="amount" type="decimal(10,2)">
<constraints nullable="false" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="membership_id" type="bigint">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20190507193200-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="asset_history"
constraintName="fk_asset_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190507193200-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER asset_historicize
AFTER INSERT OR DELETE OR UPDATE ON asset
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER asset_historicize
</rollback>
</changeSet>
<changeSet id="20190507193200-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="asset_history_view" replaceIfExists="true">
SELECT *
FROM asset_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM asset_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY id) -- assets are not deletable, thus id is enough
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,131 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical Customer data. -->
<changeSet id="20190506150000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="customer_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="reference" type="integer">
<constraints nullable="false"/>
</column>
<column name="prefix" type="varchar(3)">
<constraints nullable="false"/>
</column>
<column name="name" type="varchar(80)">
<constraints nullable="false" />
</column>
<column name="kind" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="birth_date" type="date">
<constraints nullable="true" />
</column>
<column name="birth_place" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="registration_court" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="registration_number" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="vat_region" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="vat_number" type="varchar(40)">
<constraints nullable="true" />
</column>
<column name="contractual_salutation" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="contractual_address" type="varchar(400)">
<constraints nullable="false" />
</column>
<column name="billing_salutation" type="varchar(80)">
<constraints nullable="true" />
</column>
<column name="billing_address" type="varchar(400)">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
</createTable>
</changeSet>
<changeSet id="20190506150000-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="customer_history"
constraintName="fk_customer_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190506150000-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER customer_historicize
AFTER INSERT OR DELETE OR UPDATE ON customer
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER customer_historicize
</rollback>
</changeSet>
<changeSet id="20190506150000-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="customer_history_view" replaceIfExists="true">
SELECT *
FROM customer_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM customer_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY name) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,95 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical Membership data. -->
<changeSet id="20190507100000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="membership_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="admission_document_date" type="date">
<constraints nullable="false" />
</column>
<column name="cancellation_document_date" type="date">
<constraints nullable="true" />
</column>
<column name="member_from_date" type="date">
<constraints nullable="false" />
</column>
<column name="member_until_date" type="date">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="customer_id" type="bigint">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20190507100000-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="membership_history"
constraintName="fk_membership_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190507100000-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER membership_historicize
AFTER INSERT OR DELETE OR UPDATE ON membership
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER membership_historicize
</rollback>
</changeSet>
<changeSet id="20190507100000-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="membership_history_view" replaceIfExists="true">
SELECT *
FROM membership_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM membership_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY customer_id, member_from_date) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,112 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical SepaMandate data. -->
<changeSet id="20190507101800-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="sepa_mandate_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="reference" type="varchar(40)">
<constraints nullable="false" />
</column>
<column name="iban" type="varchar(34)">
<constraints nullable="true" />
</column>
<column name="bic" type="varchar(11)">
<constraints nullable="true" />
</column>
<column name="granting_document_date" type="date">
<constraints nullable="false" />
</column>
<column name="revokation_document_date" type="date">
<constraints nullable="true" />
</column>
<column name="valid_from_date" type="date">
<constraints nullable="false" />
</column>
<column name="valid_until_date" type="date">
<constraints nullable="true" />
</column>
<column name="last_used_date" type="date">
<constraints nullable="true" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="customer_id" type="bigint">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20190507101800-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="sepa_mandate_history"
constraintName="fk_sepa_mandate_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190507101800-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER sepa_mandate_historicize
AFTER INSERT OR DELETE OR UPDATE ON sepa_mandate
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER sepa_mandate_historicize
</rollback>
</changeSet>
<changeSet id="20190507101800-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="sepa_mandate_history_view" replaceIfExists="true">
SELECT *
FROM sepa_mandate_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM sepa_mandate_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY reference) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical Share data. -->
<changeSet id="20190507193400-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="share_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="document_date" type="date">
<constraints nullable="false" />
</column>
<column name="value_date" type="date">
<constraints nullable="false" />
</column>
<column name="action" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="quantity" type="integer">
<constraints nullable="false" />
</column>
<column name="remark" type="varchar(160)">
<constraints nullable="true" />
</column>
<column name="membership_id" type="bigint">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20190507193400-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="share_history"
constraintName="fk_share_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190507193400-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER share_historicize
AFTER INSERT OR DELETE OR UPDATE ON share
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER share_historicize
</rollback>
</changeSet>
<changeSet id="20190507193400-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="share_history_view" replaceIfExists="true">
SELECT *
FROM share_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM share_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY id) -- shares are not deletable, thus id is enough
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical user data. -->
<changeSet id="20190526150000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="jhi_user_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="login" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="password_hash" type="varchar(60)"/>
<column name="first_name" type="varchar(50)"/>
<column name="last_name" type="varchar(50)"/>
<column name="email" type="varchar(191)">
<constraints nullable="false"/>
</column>
<column name="image_url" type="varchar(256)"/>
<column name="activated" type="boolean" valueBoolean="false">
<constraints nullable="false" />
</column>
<column name="lang_key" type="varchar(6)"/>
<column name="activation_key" type="varchar(20)"/>
<column name="reset_key" type="varchar(20)"/>
<column name="created_by" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="created_date" type="timestamp"/>
<column name="reset_date" type="timestamp">
<constraints nullable="true"/>
</column>
<column name="last_modified_by" type="varchar(50)"/>
<column name="last_modified_date" type="timestamp"/>
</createTable>
</changeSet>
<changeSet id="20190526150000-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="jhi_user_history"
constraintName="fk_jhi_user_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190526150000-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER jhi_user_historicize
AFTER INSERT OR DELETE OR UPDATE ON jhi_user
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER jhi_user_historicize
</rollback>
</changeSet>
<changeSet id="20190526150000-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="jhi_user_history_view" replaceIfExists="true">
SELECT *
FROM jhi_user_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM jhi_user_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY login) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,75 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical user data. -->
<changeSet id="20190526160000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="jhi_user_authority_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- columns like in base table, dropping unique constraints -->
<column name="user_id" type="bigint">
<constraints nullable="false"/>
</column>
<column name="authority_name" type="varchar(50)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
<changeSet id="20190526160000-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="jhi_user_authority_history"
constraintName="fk_jhi_user_authority_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190526160000-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER jhi_user_authority_historicize
AFTER INSERT OR DELETE OR UPDATE ON jhi_user_authority
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER jhi_user_authority_historicize
</rollback>
</changeSet>
<changeSet id="20190526160000-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="jhi_user_authority_history_view" replaceIfExists="true">
SELECT *
FROM jhi_user_authority_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM jhi_user_authority_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY user_id, authority_name) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<!-- Table for historical user_role_assignment data. -->
<changeSet id="20190506150000-1" author="mhierweck,mhoennig" dbms="postgresql">
<createTable tableName="user_role_assignment_history">
<!-- history-related columns -->
<column name="history_id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" unique="true" nullable="false"/>
</column>
<column name="history_transaction" type="bigint">
<constraints nullable="false" />
</column>
<column name="history_tombstone" type="bool">
<constraints nullable="false" />
</column>
<!-- id-column like in base table, but no primary key nor unique -->
<column name="id" type="bigint">
<constraints primaryKey="true" nullable="false"/>
</column>
<!-- all following columns like in base table, dropping unique constraints -->
<column name="entity_type_id" type="varchar(32)">
<constraints nullable="false" />
</column>
<column name="entity_object_id" type="bigint">
<constraints nullable="false" />
</column>
<column name="assigned_role" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="user_id" type="bigint">
<constraints nullable="true" />
</column>
</createTable>
</changeSet>
<changeSet id="20190506150000-2" author="mhierweck,mhoennig" dbms="postgresql">
<addForeignKeyConstraint baseColumnNames="history_transaction"
baseTableName="user_role_assignment_history"
constraintName="fk_user_role_assignment_history_transaction"
referencedColumnNames="history_transaction"
referencedTableName="history"/>
</changeSet>
<changeSet id="20190506150000-3" author="mhierweck,mhoennig" dbms="postgresql">
<createProcedure>
CREATE TRIGGER user_role_assignment_historicize
AFTER INSERT OR DELETE OR UPDATE ON user_role_assignment
FOR EACH ROW EXECUTE PROCEDURE historicize();
</createProcedure>
<rollback>
DROP TRIGGER user_role_assignment_historicize
</rollback>
</changeSet>
<changeSet id="20190506150000-4" author="mhierweck,mhoennig" dbms="postgresql">
<createView viewName="user_role_assignment_history_view" replaceIfExists="true">
SELECT *
FROM user_role_assignment_history
WHERE history_id IN (
SELECT max(history_id) AS history_id
FROM user_role_assignment_history
WHERE history_transaction &lt;= current_setting('history.transaction')::bigint
GROUP BY entity_type_id, entity_object_id, assigned_role, user_id) -- must have a unique constraint
</createView>
</changeSet>
</databaseChangeLog>

View File

@@ -1,56 +0,0 @@
<?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.5.xsd">
<!-- initial JHipster tables (user etc.) -->
<include file="config/liquibase/changelog/00000000000000_initial_schema.xml" relativeToChangelogFile="false"/>
<!-- historicization for initial JHipster tables -->
<include file="config/liquibase/historicization/historicization.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_User.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_UserAuthority.xml" relativeToChangelogFile="false"/>
<!-- sample data. comes after historicization triggers, thus historicization applies -->
<include file="config/liquibase/sample-data/users.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/users_authorities.xml" relativeToChangelogFile="false"/>
<!-- JHipster generated entity table changesets -->
<include file="config/liquibase/changelog/20190507105332_added_entity_Customer.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105333_added_entity_Membership.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105334_added_entity_Share.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105335_added_entity_Asset.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105336_added_entity_SepaMandate.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105342_added_entity_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
<!-- jhipster-needle-liquibase-add-changelog - JHipster will add liquibase changelogs here -->
<!-- JHipster generated constraints changesets -->
<include file="config/liquibase/changelog/20190507105333_added_entity_constraints_Membership.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105334_added_entity_constraints_Share.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105335_added_entity_constraints_Asset.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105336_added_entity_constraints_SepaMandate.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20190507105342_added_entity_constraints_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
<!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->
<!-- additional constraint changesets, not generated by JHipster -->
<include file="config/liquibase/changelog/constraints_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/constraints_Membership.xml" relativeToChangelogFile="false"/>
<!-- historicization for hsadmin specific tables -->
<include file="config/liquibase/historicization/historicization_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_Customer.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_Membership.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_SepaMandate.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_Share.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/historicization/historicization_Asset.xml" relativeToChangelogFile="false"/>
<!-- sample data. comes after historicization triggers, historicization applies -->
<include file="config/liquibase/sample-data/user_role_assignments.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/customers.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/memberships.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/shares.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/assets.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/sample-data/sepamandates.xml" relativeToChangelogFile="false"/>
</databaseChangeLog>

View File

@@ -1,58 +0,0 @@
id;membership_id;document_date;value_date;action;amount;remark
210001;1;2001-05-10;2001-05-11;PAYMENT;64;some|multiline|1. instalment|just to produce some more rows for tests :-)
210002;1;2001-05-10;2001-05-12;PAYMENT;64;some|multiline|2. instalment
210003;1;2001-05-10;2001-05-13;PAYMENT;64;some|multiline|3. instalment
210004;1;2001-05-10;2001-05-14;PAYMENT;64;some|multiline|4. instalment
210005;1;2001-05-10;2001-05-15;PAYMENT;64;some|multiline|5. instalment
210006;1;2001-05-10;2001-05-16;PAYMENT;64;some|multiline|6. instalment
210007;1;2001-05-10;2001-05-17;PAYMENT;64;some|multiline|7. instalment
210008;1;2001-05-10;2001-05-18;PAYMENT;64;some|multiline|8. instalment
210009;1;2001-05-10;2001-05-19;PAYMENT;64;some|multiline|9. instalment
210010;1;2001-05-10;2001-05-20;PAYMENT;64;some|multiline|10. instalment
210011;1;2001-05-10;2001-05-21;PAYMENT;64;some|multiline|11. instalment
210012;1;2001-05-10;2001-05-22;PAYMENT;64;some|multiline|12. instalment
210013;1;2001-05-10;2001-05-23;PAYMENT;64;some|multiline|13. instalment
210014;1;2001-05-10;2001-05-24;PAYMENT;64;some|multiline|14. instalment
210015;1;2001-05-10;2001-05-25;PAYMENT;64;some|multiline|15. instalment
210016;1;2001-05-10;2001-05-26;PAYMENT;64;some|multiline|16. instalment
210017;1;2007-09-09;2008-07-10;PAYBACK;512;1. instalment
210018;1;2007-09-09;2009-07-10;PAYBACK;512;2. instalment
210019;2;2017-02-15;2017-02-15;PAYMENT;512;became a member again
210020;2;2017-02-15;2017-02-15;PAYMENT;64;just writing something
210021;3;2003-06-11;2003-06-11;PAYMENT;256;some comment
210022;3;2003-06-15;2004-07-03;PAYBACK;256;cancelled membership
210023;4;2017-06-15;2017-05-17;PAYMENT;1024;
210024;5;2011-09-18;2011-09-01;PAYMENT;640;
210101;5;2013-01-15;2013-01-01;PAYMENT;64;signed more shares|1. installment
210102;5;2013-01-15;2013-01-02;PAYMENT;64;signed more shares|2. installment
210103;5;2013-01-15;2013-01-03;PAYMENT;64;signed more shares|3. installment
210104;5;2013-01-15;2013-01-04;PAYMENT;64;signed more shares|4. installment
210105;5;2013-01-15;2013-01-05;PAYMENT;64;signed more shares|5. installment
210106;5;2013-01-15;2013-01-06;PAYMENT;64;signed more shares|6. installment
210107;5;2013-01-15;2013-01-07;PAYMENT;64;signed more shares|7. installment
210108;5;2013-01-15;2013-01-08;PAYMENT;64;signed more shares|8. installment
210109;5;2013-01-15;2013-01-09;PAYMENT;64;signed more shares|9. installment
210110;5;2013-01-15;2013-01-10;PAYMENT;64;signed more shares|10. installment
210111;5;2013-01-15;2013-01-11;PAYMENT;64;signed more shares|11. installment
210112;5;2013-01-15;2013-01-12;PAYMENT;64;signed more shares|12. installment
210123;5;2013-01-15;2013-01-13;PAYMENT;64;signed more shares|13. installment
210124;5;2013-01-15;2013-01-14;PAYMENT;64;signed more shares|14. installment
210125;5;2013-01-15;2013-01-15;PAYMENT;64;signed more shares|15. installment
210126;5;2013-01-15;2013-01-16;PAYMENT;64;signed more shares|16. installment
210127;5;2013-01-15;2013-01-17;PAYMENT;64;signed more shares|17. installment
210128;5;2013-01-15;2013-01-18;PAYMENT;64;signed more shares|18. installment
210129;5;2013-01-15;2013-01-19;PAYMENT;64;signed more shares|19. installment
210130;5;2013-01-15;2013-01-20;PAYMENT;64;signed more shares|20. installment
210230;5;2017-12-22;2018-07-01;PAYBACK;160;cancelled most of their shares|1. installment|just to produce more rows for tests :-)
210231;5;2017-12-22;2018-07-02;PAYBACK;160;cancelled most of their shares|2. installment|just to produce more rows for tests :-)
210232;5;2017-12-22;2018-08-03;PAYBACK;160;cancelled most of their shares|3. installment|just to produce more rows for tests :-)
210233;5;2017-12-22;2018-09-04;PAYBACK;160;cancelled most of their shares|4. installment|just to produce more rows for tests :-)
210234;5;2017-12-22;2018-10-05;PAYBACK;160;cancelled most of their shares|5. installment|just to produce more rows for tests :-)
210235;5;2017-12-22;2018-11-06;PAYBACK;160;cancelled most of their shares|6. installment|just to produce more rows for tests :-)
210236;5;2017-12-22;2018-12-07;PAYBACK;160;cancelled most of their shares|7. installment|just to produce more rows for tests :-)
210237;5;2017-12-22;2019-01-08;PAYBACK;160;cancelled most of their shares|8. installment|just to produce more rows for tests :-)
210238;5;2017-12-22;2019-02-09;PAYBACK;160;cancelled most of their shares|9. installment|just to produce more rows for tests :-)
210239;5;2017-12-22;2019-03-10;PAYBACK;160;cancelled most of their shares|10. installment|just to produce more rows for tests :-)
1 id membership_id document_date value_date action amount remark
2 210001 1 2001-05-10 2001-05-11 PAYMENT 64 some|multiline|1. instalment|just to produce some more rows for tests :-)
3 210002 1 2001-05-10 2001-05-12 PAYMENT 64 some|multiline|2. instalment
4 210003 1 2001-05-10 2001-05-13 PAYMENT 64 some|multiline|3. instalment
5 210004 1 2001-05-10 2001-05-14 PAYMENT 64 some|multiline|4. instalment
6 210005 1 2001-05-10 2001-05-15 PAYMENT 64 some|multiline|5. instalment
7 210006 1 2001-05-10 2001-05-16 PAYMENT 64 some|multiline|6. instalment
8 210007 1 2001-05-10 2001-05-17 PAYMENT 64 some|multiline|7. instalment
9 210008 1 2001-05-10 2001-05-18 PAYMENT 64 some|multiline|8. instalment
10 210009 1 2001-05-10 2001-05-19 PAYMENT 64 some|multiline|9. instalment
11 210010 1 2001-05-10 2001-05-20 PAYMENT 64 some|multiline|10. instalment
12 210011 1 2001-05-10 2001-05-21 PAYMENT 64 some|multiline|11. instalment
13 210012 1 2001-05-10 2001-05-22 PAYMENT 64 some|multiline|12. instalment
14 210013 1 2001-05-10 2001-05-23 PAYMENT 64 some|multiline|13. instalment
15 210014 1 2001-05-10 2001-05-24 PAYMENT 64 some|multiline|14. instalment
16 210015 1 2001-05-10 2001-05-25 PAYMENT 64 some|multiline|15. instalment
17 210016 1 2001-05-10 2001-05-26 PAYMENT 64 some|multiline|16. instalment
18 210017 1 2007-09-09 2008-07-10 PAYBACK 512 1. instalment
19 210018 1 2007-09-09 2009-07-10 PAYBACK 512 2. instalment
20 210019 2 2017-02-15 2017-02-15 PAYMENT 512 became a member again
21 210020 2 2017-02-15 2017-02-15 PAYMENT 64 just writing something
22 210021 3 2003-06-11 2003-06-11 PAYMENT 256 some comment
23 210022 3 2003-06-15 2004-07-03 PAYBACK 256 cancelled membership
24 210023 4 2017-06-15 2017-05-17 PAYMENT 1024
25 210024 5 2011-09-18 2011-09-01 PAYMENT 640
26 210101 5 2013-01-15 2013-01-01 PAYMENT 64 signed more shares|1. installment
27 210102 5 2013-01-15 2013-01-02 PAYMENT 64 signed more shares|2. installment
28 210103 5 2013-01-15 2013-01-03 PAYMENT 64 signed more shares|3. installment
29 210104 5 2013-01-15 2013-01-04 PAYMENT 64 signed more shares|4. installment
30 210105 5 2013-01-15 2013-01-05 PAYMENT 64 signed more shares|5. installment
31 210106 5 2013-01-15 2013-01-06 PAYMENT 64 signed more shares|6. installment
32 210107 5 2013-01-15 2013-01-07 PAYMENT 64 signed more shares|7. installment
33 210108 5 2013-01-15 2013-01-08 PAYMENT 64 signed more shares|8. installment
34 210109 5 2013-01-15 2013-01-09 PAYMENT 64 signed more shares|9. installment
35 210110 5 2013-01-15 2013-01-10 PAYMENT 64 signed more shares|10. installment
36 210111 5 2013-01-15 2013-01-11 PAYMENT 64 signed more shares|11. installment
37 210112 5 2013-01-15 2013-01-12 PAYMENT 64 signed more shares|12. installment
38 210123 5 2013-01-15 2013-01-13 PAYMENT 64 signed more shares|13. installment
39 210124 5 2013-01-15 2013-01-14 PAYMENT 64 signed more shares|14. installment
40 210125 5 2013-01-15 2013-01-15 PAYMENT 64 signed more shares|15. installment
41 210126 5 2013-01-15 2013-01-16 PAYMENT 64 signed more shares|16. installment
42 210127 5 2013-01-15 2013-01-17 PAYMENT 64 signed more shares|17. installment
43 210128 5 2013-01-15 2013-01-18 PAYMENT 64 signed more shares|18. installment
44 210129 5 2013-01-15 2013-01-19 PAYMENT 64 signed more shares|19. installment
45 210130 5 2013-01-15 2013-01-20 PAYMENT 64 signed more shares|20. installment
46 210230 5 2017-12-22 2018-07-01 PAYBACK 160 cancelled most of their shares|1. installment|just to produce more rows for tests :-)
47 210231 5 2017-12-22 2018-07-02 PAYBACK 160 cancelled most of their shares|2. installment|just to produce more rows for tests :-)
48 210232 5 2017-12-22 2018-08-03 PAYBACK 160 cancelled most of their shares|3. installment|just to produce more rows for tests :-)
49 210233 5 2017-12-22 2018-09-04 PAYBACK 160 cancelled most of their shares|4. installment|just to produce more rows for tests :-)
50 210234 5 2017-12-22 2018-10-05 PAYBACK 160 cancelled most of their shares|5. installment|just to produce more rows for tests :-)
51 210235 5 2017-12-22 2018-11-06 PAYBACK 160 cancelled most of their shares|6. installment|just to produce more rows for tests :-)
52 210236 5 2017-12-22 2018-12-07 PAYBACK 160 cancelled most of their shares|7. installment|just to produce more rows for tests :-)
53 210237 5 2017-12-22 2019-01-08 PAYBACK 160 cancelled most of their shares|8. installment|just to produce more rows for tests :-)
54 210238 5 2017-12-22 2019-02-09 PAYBACK 160 cancelled most of their shares|9. installment|just to produce more rows for tests :-)
55 210239 5 2017-12-22 2019-03-10 PAYBACK 160 cancelled most of their shares|10. installment|just to produce more rows for tests :-)

View File

@@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<changeSet id="20190502111400-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/assets.csv"
separator=";"
tableName="asset">
</loadData>
<customChange class="org.hostsharing.hsadminng.liquibase.ReplaceCustomChange">
<param name="tableName" value="asset" />
<param name="columnNames" value="remark" />
<param name="searchFor" value="|" />
<param name="replaceWith" value="\n" />
</customChange>
<rollback>
DELETE FROM asset;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,7 +0,0 @@
id;reference;prefix;name;kind;vat_region;contractual_address
1;10001;aaa;AAA Corp.;LEGAL;DOMESTIC;Ballustrade 13|91334 Erlangen
2;10002;bbb;BBB GmbH;LEGAL;DOMESTIC;Irgendwo 0|11111 Berlin
3;10003;ccc;CCC AG;LEGAL;DOMESTIC;Haus 15|26539 Baltrum
4;10004;ddd;DDD eG;LEGAL;DOMESTIC;Industriestraße 98-102|n22999 Hamburg
5;10098;abc;ABC OHG;LEGAL;DOMESTIC;An der Weide 13|30123 Hannover
6;10099;bca;Bert Cäsar Adelbert;NATURAL;DOMESTIC;'Egerstraße 53|44225 Dortmund
1 id reference prefix name kind vat_region contractual_address
2 1 10001 aaa AAA Corp. LEGAL DOMESTIC Ballustrade 13|91334 Erlangen
3 2 10002 bbb BBB GmbH LEGAL DOMESTIC Irgendwo 0|11111 Berlin
4 3 10003 ccc CCC AG LEGAL DOMESTIC Haus 15|26539 Baltrum
5 4 10004 ddd DDD eG LEGAL DOMESTIC Industriestraße 98-102|n22999 Hamburg
6 5 10098 abc ABC OHG LEGAL DOMESTIC An der Weide 13|30123 Hannover
7 6 10099 bca Bert Cäsar Adelbert NATURAL DOMESTIC 'Egerstraße 53|44225 Dortmund

View File

@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<changeSet id="20190505130300-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/customers.csv"
separator=";"
tableName="customer">
</loadData>
<customChange class="org.hostsharing.hsadminng.liquibase.ReplaceCustomChange">
<param name="tableName" value="customer" />
<param name="columnNames" value="contractual_address,billing_address,remark" />
<param name="searchFor" value="|" />
<param name="replaceWith" value="\n" />
</customChange>
<rollback>
DELETE FROM customer;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,7 +0,0 @@
id;customer_id;admission_document_date;cancellation_document_date;member_from_date;member_until_date;remark
1;1;2001-04-10;2007-08-09;2001-04-11;2007-12-31;is now client of another member|see XYZ
2;1;2017-01-15;null;2017-01-15;null;nothing to say here
3;3;2003-05-11;2018-11-30;2003-05-15;2018-12-31;business discontinued
4;4;2017-05-15;null;2017-05-15;null;whatever|is|to|say
5;5;2011-08-18;null;2011-08-18;null;foo bar etc.
1 id customer_id admission_document_date cancellation_document_date member_from_date member_until_date remark
2 1 1 2001-04-10 2007-08-09 2001-04-11 2007-12-31 is now client of another member|see XYZ
3 2 1 2017-01-15 null 2017-01-15 null nothing to say here
4 3 3 2003-05-11 2018-11-30 2003-05-15 2018-12-31 business discontinued
5 4 4 2017-05-15 null 2017-05-15 null whatever|is|to|say
6 5 5 2011-08-18 null 2011-08-18 null foo bar etc.

View File

@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<changeSet id="20190502100700-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/memberships.csv"
separator=";"
tableName="membership">
</loadData>
<customChange class="org.hostsharing.hsadminng.liquibase.ReplaceCustomChange">
<param name="tableName" value="membership" />
<param name="columnNames" value="remark" />
<param name="searchFor" value="|" />
<param name="replaceWith" value="\n" />
</customChange>
<rollback>
DELETE FROM membership;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,6 +0,0 @@
id;customer_id;reference;iban;bic;granting_document_date;revokation_document_date;valid_from_date;valid_until_date;last_used_date;remark
1;1;DKXIDEHAC01;DE94500105172859877827;REF02039402;2018-01-15;null;2018-01-16;null;2019-04-09;a remark|over two lines
2;2;JKUIDEBIS00;DE56500105172321139153;REF2834823W;2017-06-03;2019-01-15;2017-06-04;2019-01-31;2019-01-10;for the old bank account
3;2;JUZTDEVER03;DE56500105172321139153;REF2834823W;2019-01-15;null;2019-02-01;null;2019-04-09;for the new bank account
4;3;CKIZDESiX98;DE24500105175933769123;REF23984928;2016-09-13;2018-11-20;2016-09-13;2018-12-31;2018-12-09;membership cancelled
5;5;ZUIJDEVOR12;DE92500105174781793571;REF23882384;2016-12-03;null;2016-12-03;null;2019-04-09;null
1 id customer_id reference iban bic granting_document_date revokation_document_date valid_from_date valid_until_date last_used_date remark
2 1 1 DKXIDEHAC01 DE94500105172859877827 REF02039402 2018-01-15 null 2018-01-16 null 2019-04-09 a remark|over two lines
3 2 2 JKUIDEBIS00 DE56500105172321139153 REF2834823W 2017-06-03 2019-01-15 2017-06-04 2019-01-31 2019-01-10 for the old bank account
4 3 2 JUZTDEVER03 DE56500105172321139153 REF2834823W 2019-01-15 null 2019-02-01 null 2019-04-09 for the new bank account
5 4 3 CKIZDESiX98 DE24500105175933769123 REF23984928 2016-09-13 2018-11-20 2016-09-13 2018-12-31 2018-12-09 membership cancelled
6 5 5 ZUIJDEVOR12 DE92500105174781793571 REF23882384 2016-12-03 null 2016-12-03 null 2019-04-09 null

View File

@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<changeSet id="20190503152800-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/sepamandates.csv"
separator=";"
tableName="sepa_mandate">
</loadData>
<customChange class="org.hostsharing.hsadminng.liquibase.ReplaceCustomChange">
<param name="tableName" value="sepa_mandate" />
<param name="columnNames" value="remark" />
<param name="searchFor" value="|" />
<param name="replaceWith" value="\n" />
</customChange>
<rollback>
DELETE FROM sepa_mandate;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,13 +0,0 @@
id;membership_id;document_date;value_date;action;quantity;remark
1;1;2001-04-10;2001-04-11;SUBSCRIPTION;16;some|multiline|remark
2;1;2007-08-09;2007-12-31;CANCELLATION;16;another remark
3;2;2017-01-15;2017-01-17;SUBSCRIPTION;8;became a member again
4;2;2017-01-15;2017-01-17;SUBSCRIPTION;1;just writing something
5;3;2003-05-11;2003-05-18;SUBSCRIPTION;4;some comment
6;3;2003-05-15;2003-05-30;CANCELLATION;4;cancelled membership
7;4;2017-05-15;2017-05-17;SUBSCRIPTION;16;
8;5;2011-08-18;2011-09-01;SUBSCRIPTION;10;
9;5;2012-12-15;2013-01-01;SUBSCRIPTION;20;signed more shares
10;5;2017-11-22;2018-01-01;CANCELLATION;25;cancelled most of their shares
1 id membership_id document_date value_date action quantity remark
2 1 1 2001-04-10 2001-04-11 SUBSCRIPTION 16 some|multiline|remark
3 2 1 2007-08-09 2007-12-31 CANCELLATION 16 another remark
4 3 2 2017-01-15 2017-01-17 SUBSCRIPTION 8 became a member again
5 4 2 2017-01-15 2017-01-17 SUBSCRIPTION 1 just writing something
6 5 3 2003-05-11 2003-05-18 SUBSCRIPTION 4 some comment
7 6 3 2003-05-15 2003-05-30 CANCELLATION 4 cancelled membership
8 7 4 2017-05-15 2017-05-17 SUBSCRIPTION 16
9 8 5 2011-08-18 2011-09-01 SUBSCRIPTION 10
10 9 5 2012-12-15 2013-01-01 SUBSCRIPTION 20 signed more shares
11 10 5 2017-11-22 2018-01-01 CANCELLATION 25 cancelled most of their shares

View File

@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<changeSet id="20190502111400-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/shares.csv"
separator=";"
tableName="share">
</loadData>
<customChange class="org.hostsharing.hsadminng.liquibase.ReplaceCustomChange">
<param name="tableName" value="share" />
<param name="columnNames" value="remark" />
<param name="searchFor" value="|" />
<param name="replaceWith" value="\n" />
</customChange>
<rollback>
DELETE FROM share;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,17 +0,0 @@
id;user_id;entity_type_id;entity_object_id;assigned_role
1001;111;customer.Customer;1;CONTRACTUAL_CONTACT
1002;112;customer.Customer;2;CONTRACTUAL_CONTACT
1003;113;customer.Customer;3;CONTRACTUAL_CONTACT
1004;114;customer.Customer;4;CONTRACTUAL_CONTACT
1005;115;customer.Customer;5;CONTRACTUAL_CONTACT
1006;116;customer.Customer;6;CONTRACTUAL_CONTACT
1007;120;customer.Customer;1;FINANCIAL_CONTACT
1008;121;customer.Customer;1;TECHNICAL_CONTACT
1009;122;customer.Customer;2;FINANCIAL_CONTACT
1010;123;customer.Customer;2;TECHNICAL_CONTACT
1011;124;customer.Customer;3;FINANCIAL_CONTACT
1012;125;customer.Customer;3;TECHNICAL_CONTACT
1013;126;customer.Customer;4;FINANCIAL_CONTACT
1014;127;customer.Customer;4;TECHNICAL_CONTACT
1015;128;customer.Customer;5;FINANCIAL_CONTACT
1016;129;customer.Customer;5;TECHNICAL_CONTACT
1 id user_id entity_type_id entity_object_id assigned_role
2 1001 111 customer.Customer 1 CONTRACTUAL_CONTACT
3 1002 112 customer.Customer 2 CONTRACTUAL_CONTACT
4 1003 113 customer.Customer 3 CONTRACTUAL_CONTACT
5 1004 114 customer.Customer 4 CONTRACTUAL_CONTACT
6 1005 115 customer.Customer 5 CONTRACTUAL_CONTACT
7 1006 116 customer.Customer 6 CONTRACTUAL_CONTACT
8 1007 120 customer.Customer 1 FINANCIAL_CONTACT
9 1008 121 customer.Customer 1 TECHNICAL_CONTACT
10 1009 122 customer.Customer 2 FINANCIAL_CONTACT
11 1010 123 customer.Customer 2 TECHNICAL_CONTACT
12 1011 124 customer.Customer 3 FINANCIAL_CONTACT
13 1012 125 customer.Customer 3 TECHNICAL_CONTACT
14 1013 126 customer.Customer 4 FINANCIAL_CONTACT
15 1014 127 customer.Customer 4 TECHNICAL_CONTACT
16 1015 128 customer.Customer 5 FINANCIAL_CONTACT
17 1016 129 customer.Customer 5 TECHNICAL_CONTACT

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="20190508133600-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/user_role_assignments.csv"
separator=";"
tableName="user_role_assignment">
</loadData>
<rollback>
DELETE FROM user_role_assignment WHERE id >=100 AND id &lt; 1000000;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,24 +0,0 @@
id;login;password_hash;first_name;last_name;email;image_url;activated;lang_key;created_by;last_modified_by
101;test-supporter-a;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;A;Test Supporter;ts-a@example.com;;true;de;system;system
102;test-supporter-b;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;B;Test Supporter;ts-b@example.com;;true;de;system;system
103;test-supporter-c;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;C;Test Supporter;ts-c@example.com;;true;de;system;system
104;test-admin-a;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;A;Test Admin;ta-a@example.com;;true;de;system;system
105;test-admin-b;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;B;Test Admin;ta-b@example.com;;true;de;system;system
106;test-hostmaster-a;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;A;Test Hostmaster;th-a@example.com;;true;de;system;system
107;test-hostmaster-b;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;B;Test Hostmaster;th-b@example.com;;true;de;system;system
111;aaa-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Anton;AAA Testuser;aaa@example.com;;true;de;system;system
112;bbb-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Berta;BBB Testuser;bbb@example.com;;true;de;system;system
113;ccc-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Cecilie;CCC Testuser;ccc@example.com;;true;de;system;system
114;ddd-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Dieter;DDD Testuser;ddd@example.com;;true;de;system;system
115;abc-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Alva;ABC Testuser;abc@example.com;;true;de;system;system
116;bca-test;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Bert Cäsar;Adelbert;bca@example.com;;true;de;system;system
120;test00;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 00;Test-User;test-user00@localhost;;true;de;system;system
121;test01;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 01;Test-User;test-user01@localhost;;true;de;system;system
122;test02;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 02;Test-User;test-user02@localhost;;true;de;system;system
123;test03;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 03;Test-User;test-user03@localhost;;true;de;system;system
124;test04;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 04;Test-User;test-user04@localhost;;true;de;system;system
125;test05;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 05;Test-User;test-user05@localhost;;true;de;system;system
126;test06;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 06;Test-User;test-user06@localhost;;true;de;system;system
127;test07;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 07;Test-User;test-user07@localhost;;true;de;system;system
128;test08;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 08;Test-User;test-user08@localhost;;true;de;system;system
129;test09;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Test-User 09;Test-User;test-user09@localhost;;true;de;system;system
1 id login password_hash first_name last_name email image_url activated lang_key created_by last_modified_by
2 101 test-supporter-a $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K A Test Supporter ts-a@example.com true de system system
3 102 test-supporter-b $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K B Test Supporter ts-b@example.com true de system system
4 103 test-supporter-c $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K C Test Supporter ts-c@example.com true de system system
5 104 test-admin-a $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K A Test Admin ta-a@example.com true de system system
6 105 test-admin-b $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K B Test Admin ta-b@example.com true de system system
7 106 test-hostmaster-a $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K A Test Hostmaster th-a@example.com true de system system
8 107 test-hostmaster-b $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K B Test Hostmaster th-b@example.com true de system system
9 111 aaa-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Anton AAA Testuser aaa@example.com true de system system
10 112 bbb-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Berta BBB Testuser bbb@example.com true de system system
11 113 ccc-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Cecilie CCC Testuser ccc@example.com true de system system
12 114 ddd-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Dieter DDD Testuser ddd@example.com true de system system
13 115 abc-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Alva ABC Testuser abc@example.com true de system system
14 116 bca-test $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Bert Cäsar Adelbert bca@example.com true de system system
15 120 test00 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 00 Test-User test-user00@localhost true de system system
16 121 test01 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 01 Test-User test-user01@localhost true de system system
17 122 test02 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 02 Test-User test-user02@localhost true de system system
18 123 test03 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 03 Test-User test-user03@localhost true de system system
19 124 test04 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 04 Test-User test-user04@localhost true de system system
20 125 test05 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 05 Test-User test-user05@localhost true de system system
21 126 test06 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 06 Test-User test-user06@localhost true de system system
22 127 test07 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 07 Test-User test-user07@localhost true de system system
23 128 test08 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 08 Test-User test-user08@localhost true de system system
24 129 test09 $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K Test-User 09 Test-User test-user09@localhost true de system system

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="20190508133600-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/users.csv"
separator=";"
tableName="JHI_USER">
</loadData>
<rollback>
DELETE FROM user WHERE id >=100 AND id &lt; 1000000;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,33 +0,0 @@
user_id;authority_name
101;ROLE_SUPPORTER
101;ROLE_USER
102;ROLE_SUPPORTER
102;ROLE_USER
103;ROLE_SUPPORTER
103;ROLE_USER
104;ROLE_ADMIN
104;ROLE_USER
105;ROLE_ADMIN
105;ROLE_USER
106;ROLE_HOSTMASTER
106;ROLE_ADMIN
106;ROLE_USER
107;ROLE_HOSTMASTER
107;ROLE_ADMIN
107;ROLE_USER
111;ROLE_USER
112;ROLE_USER
113;ROLE_USER
114;ROLE_USER
115;ROLE_USER
116;ROLE_USER
120;ROLE_USER
121;ROLE_USER
122;ROLE_USER
123;ROLE_USER
124;ROLE_USER
125;ROLE_USER
126;ROLE_USER
127;ROLE_USER
128;ROLE_USER
129;ROLE_USER
1 user_id authority_name
2 101 ROLE_SUPPORTER
3 101 ROLE_USER
4 102 ROLE_SUPPORTER
5 102 ROLE_USER
6 103 ROLE_SUPPORTER
7 103 ROLE_USER
8 104 ROLE_ADMIN
9 104 ROLE_USER
10 105 ROLE_ADMIN
11 105 ROLE_USER
12 106 ROLE_HOSTMASTER
13 106 ROLE_ADMIN
14 106 ROLE_USER
15 107 ROLE_HOSTMASTER
16 107 ROLE_ADMIN
17 107 ROLE_USER
18 111 ROLE_USER
19 112 ROLE_USER
20 113 ROLE_USER
21 114 ROLE_USER
22 115 ROLE_USER
23 116 ROLE_USER
24 120 ROLE_USER
25 121 ROLE_USER
26 122 ROLE_USER
27 123 ROLE_USER
28 124 ROLE_USER
29 125 ROLE_USER
30 126 ROLE_USER
31 127 ROLE_USER
32 128 ROLE_USER
33 129 ROLE_USER

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
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.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="20190508133600-1" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/users_authorities.csv"
separator=";"
tableName="JHI_USER_AUTHORITY">
</loadData>
<rollback>
DELETE FROM JHI_USER_AUTHORITY WHERE id >=100 AND id &lt; 1000000;
</rollback>
</changeSet>
</databaseChangeLog>

View File

@@ -1,5 +0,0 @@
id;login;password_hash;first_name;last_name;email;image_url;activated;lang_key;created_by;last_modified_by
1;system;$2a$10$mE.qmcV0mFU5NcKh73TZx.z4ueI/.bDWbj0T1BYyqP481kGGarKLG;System;System;system@localhost;;true;de;system;system
2;anonymoususer;$2a$10$j8S5d7Sr7.8VTOYNviDPOeWX8KcYILUVJBsYV83Y5NtECayypx9lO;Anonymous;User;anonymous@localhost;;true;de;system;system
3;admin;$2a$10$gSAhZrxMllrbgj/kkK9UceBPpChGWJA7SYIb1Mqo.n5aNLq1/oRrC;Administrator;Administrator;admin@localhost;;true;de;system;system
4;user;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;User;User;user@localhost;;true;de;system;system
1 id login password_hash first_name last_name email image_url activated lang_key created_by last_modified_by
2 1 system $2a$10$mE.qmcV0mFU5NcKh73TZx.z4ueI/.bDWbj0T1BYyqP481kGGarKLG System System system@localhost true de system system
3 2 anonymoususer $2a$10$j8S5d7Sr7.8VTOYNviDPOeWX8KcYILUVJBsYV83Y5NtECayypx9lO Anonymous User anonymous@localhost true de system system
4 3 admin $2a$10$gSAhZrxMllrbgj/kkK9UceBPpChGWJA7SYIb1Mqo.n5aNLq1/oRrC Administrator Administrator admin@localhost true de system system
5 4 user $2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K User User user@localhost true de system system

View File

@@ -1,7 +0,0 @@
user_id;authority_name
1;ROLE_HOSTMASTER
1;ROLE_ADMIN
1;ROLE_USER
3;ROLE_ADMIN
3;ROLE_USER
4;ROLE_USER
1 user_id authority_name
2 1 ROLE_HOSTMASTER
3 1 ROLE_ADMIN
4 1 ROLE_USER
5 3 ROLE_ADMIN
6 3 ROLE_USER
7 4 ROLE_USER

View File

@@ -1,21 +0,0 @@
# Error page
error.title=Your request cannot be processed
error.subtitle=Sorry, an error has occurred.
error.status=Status:
error.message=Message:
# Activation email
email.activation.title=hsadminNg account activation
email.activation.greeting=Dear {0}
email.activation.text1=Your hsadminNg account has been created, please click on the URL below to activate it:
email.activation.text2=Regards,
email.signature=hsadminNg Team.
# Creation email
email.creation.text1=Your hsadminNg account has been created, please click on the URL below to access it:
# Reset email
email.reset.title=hsadminNg password reset
email.reset.greeting=Dear {0}
email.reset.text1=For your hsadminNg account a password reset was requested, please click on the URL below to reset it:
email.reset.text2=Regards,

View File

@@ -1,21 +0,0 @@
# Error page
error.title=Ihre Anfrage kann nicht bearbeitet werden
error.subtitle=Verzeihung, ein Fehler ist aufgetreten.
error.status=Status:
error.message=Meldung:
# Activation email
email.activation.title=hsadminNg Aktivierung
email.activation.greeting=Liebe(r) {0}
email.activation.text1=Ihr hsadminNg Zugang wurde angelegt, bitte klicken Sie unten auf den Link, um diesen zu aktivieren:
email.activation.text2=Grüße,
email.signature=hsadminNg.
# Creation email
email.creation.text1=Ihr hsadminNg Zugang wurde angelegt, bitte klicken Sie auf den Link um sich anzumelden:
# Reset email
email.reset.title=hsadminNg Passwort zurücksetzen
email.reset.greeting=Liebe(r) {0}
email.reset.text1=Für Ihren hsadminNg Account wurde ein neues Passwort angefordert, bitte klicken Sie unten auf den Link, um das Passwort zurückzusetzen:
email.reset.text2=Grüße,

View File

@@ -1,21 +0,0 @@
# Error page
error.title=Your request cannot be processed
error.subtitle=Sorry, an error has occurred.
error.status=Status:
error.message=Message:
# Activation email
email.activation.title=hsadminNg account activation
email.activation.greeting=Dear {0}
email.activation.text1=Your hsadminNg account has been created, please click on the URL below to activate it:
email.activation.text2=Regards,
email.signature=hsadminNg Team.
# Creation email
email.creation.text1=Your hsadminNg account has been created, please click on the URL below to access it:
# Reset email
email.reset.title=hsadminNg password reset
email.reset.greeting=Dear {0}
email.reset.text1=For your hsadminNg account a password reset was requested, please click on the URL below to reset it:
email.reset.text2=Regards,

View File

@@ -1,90 +0,0 @@
// Jenkinsfile completions for Intellij IDEA
def ctx = context(scope: scriptScope())
contributor(ctx) {
method(name: 'build', type: 'Object', params: [job:'java.lang.String'], doc: 'Build a job')
method(name: 'build', type: 'Object', namedParams: [parameter(name: 'job', type: 'java.lang.String'), parameter(name: 'parameters', type: 'Map'), parameter(name: 'propagate', type: 'boolean'), parameter(name: 'quietPeriod', type: 'java.lang.Integer'), parameter(name: 'wait', type: 'boolean'), ], doc: 'Build a job')
method(name: 'echo', type: 'Object', params: [message:'java.lang.String'], doc: 'Print Message')
method(name: 'emailext', type: 'Object', namedParams: [parameter(name: 'subject', type: 'java.lang.String'), parameter(name: 'body', type: 'java.lang.String'), parameter(name: 'attachLog', type: 'boolean'), parameter(name: 'attachmentsPattern', type: 'java.lang.String'), parameter(name: 'compressLog', type: 'boolean'), parameter(name: 'mimeType', type: 'java.lang.String'), parameter(name: 'recipientProviders', type: 'Map'), parameter(name: 'replyTo', type: 'java.lang.String'), parameter(name: 'to', type: 'java.lang.String'), ], doc: 'Extended Email')
method(name: 'emailextrecipients', type: 'Object', params: [recipientProviders:'Map'], doc: 'Extended Email Recipients')
method(name: 'error', type: 'Object', params: [message:'java.lang.String'], doc: 'Error signal')
method(name: 'input', type: 'Object', params: [message:'java.lang.String'], doc: 'Wait for interactive input')
method(name: 'input', type: 'Object', namedParams: [parameter(name: 'message', type: 'java.lang.String'), parameter(name: 'id', type: 'java.lang.String'), parameter(name: 'ok', type: 'java.lang.String'), parameter(name: 'parameters', type: 'Map'), parameter(name: 'submitter', type: 'java.lang.String'), parameter(name: 'submitterParameter', type: 'java.lang.String'), ], doc: 'Wait for interactive input')
method(name: 'isUnix', type: 'Object', params: [:], doc: 'Checks if running on a Unix-like node')
method(name: 'library', type: 'Object', params: [identifier:'java.lang.String'], doc: 'Load a shared library on the fly')
method(name: 'library', type: 'Object', namedParams: [parameter(name: 'identifier', type: 'java.lang.String'), parameter(name: 'retriever', type: 'Map'), ], doc: 'Load a shared library on the fly')
method(name: 'libraryResource', type: 'Object', params: [resource:'java.lang.String'], doc: 'Load a resource file from a shared library')
method(name: 'mail', type: 'Object', namedParams: [parameter(name: 'subject', type: 'java.lang.String'), parameter(name: 'body', type: 'java.lang.String'), parameter(name: 'bcc', type: 'java.lang.String'), parameter(name: 'cc', type: 'java.lang.String'), parameter(name: 'charset', type: 'java.lang.String'), parameter(name: 'from', type: 'java.lang.String'), parameter(name: 'mimeType', type: 'java.lang.String'), parameter(name: 'replyTo', type: 'java.lang.String'), parameter(name: 'to', type: 'java.lang.String'), ], doc: 'Mail')
method(name: 'milestone', type: 'Object', params: [ordinal:'java.lang.Integer'], doc: 'The milestone step forces all builds to go through in order')
method(name: 'milestone', type: 'Object', namedParams: [parameter(name: 'ordinal', type: 'java.lang.Integer'), parameter(name: 'label', type: 'java.lang.String'), ], doc: 'The milestone step forces all builds to go through in order')
method(name: 'properties', type: 'Object', params: [properties:'Map'], doc: 'Set job properties')
method(name: 'readTrusted', type: 'Object', params: [path:'java.lang.String'], doc: 'Read trusted file from SCM')
method(name: 'resolveScm', type: 'Object', namedParams: [parameter(name: 'source', type: 'Map'), parameter(name: 'targets', type: 'Map'), parameter(name: 'ignoreErrors', type: 'boolean'), ], doc: 'Resolves an SCM from an SCM Source and a list of candidate target branch names')
method(name: 'retry', type: 'Object', params: [count:int, body:'Closure'], doc: 'Retry the body up to N times')
method(name: 'script', type: 'Object', params: [body:'Closure'], doc: 'Run arbitrary Pipeline script')
method(name: 'sleep', type: 'Object', params: [time:'int'], doc: 'Sleep')
method(name: 'sleep', type: 'Object', namedParams: [parameter(name: 'time', type: 'int'), parameter(name: 'unit', type: 'java.util.concurrent.TimeUnit'), ], doc: 'Sleep')
method(name: 'stage', type: 'Object', params: [name:java.lang.String, body:'Closure'], doc: 'Stage')
method(name: 'stage', type: 'Object', params: [body:Closure], namedParams: [parameter(name: 'name', type: 'java.lang.String'), parameter(name: 'concurrency', type: 'java.lang.Integer'), ], doc: 'Stage')
method(name: 'timeout', type: 'Object', params: [time:int, body:'Closure'], doc: 'Enforce time limit')
method(name: 'timeout', type: 'Object', params: [body:Closure], namedParams: [parameter(name: 'time', type: 'int'), parameter(name: 'unit', type: 'java.util.concurrent.TimeUnit'), ], doc: 'Enforce time limit')
method(name: 'timestamps', type: 'Object', params: [body:'Closure'], doc: 'Timestamps')
method(name: 'tool', type: 'Object', params: [name:'java.lang.String'], doc: 'Use a tool from a predefined Tool Installation')
method(name: 'tool', type: 'Object', namedParams: [parameter(name: 'name', type: 'java.lang.String'), parameter(name: 'type', type: 'java.lang.String'), ], doc: 'Use a tool from a predefined Tool Installation')
method(name: 'waitUntil', type: 'Object', params: [body:'Closure'], doc: 'Wait for condition')
method(name: 'withEnv', type: 'Object', params: [overrides:Map, body:'Closure'], doc: 'Set environment variables')
method(name: 'ws', type: 'Object', params: [dir:java.lang.String, body:'Closure'], doc: 'Allocate workspace')
method(name: 'catchError', type: 'Object', params: [body:'Closure'], doc: 'Advanced/Deprecated Catch error and set build result')
method(name: 'dockerFingerprintRun', type: 'Object', params: [containerId:'java.lang.String'], doc: 'Advanced/Deprecated Record trace of a Docker image run in a container')
method(name: 'dockerFingerprintRun', type: 'Object', namedParams: [parameter(name: 'containerId', type: 'java.lang.String'), parameter(name: 'toolName', type: 'java.lang.String'), ], doc: 'Record trace of a Docker image run in a container')
method(name: 'envVarsForTool', type: 'Object', namedParams: [parameter(name: 'toolId', type: 'java.lang.String'), parameter(name: 'toolVersion', type: 'java.lang.String'), ], doc: 'Fetches the environment variables for a given tool in a list of \'FOO=bar\' strings suitable for the withEnv step.')
method(name: 'getContext', type: 'Object', params: [type:'Map'], doc: 'Advanced/Deprecated Get contextual object from internal APIs')
method(name: 'withContext', type: 'Object', params: [context:java.lang.Object, body:'Closure'], doc: 'Advanced/Deprecated Use contextual object from internal APIs within a block')
property(name: 'docker', type: 'org.jenkinsci.plugins.docker.workflow.DockerDSL')
property(name: 'pipeline', type: 'org.jenkinsci.plugins.pipeline.modeldefinition.ModelStepLoader')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')
}
//Steps that require a node context
def nodeCtx = context(scope: closureScope())
contributor(nodeCtx) {
def call = enclosingCall('node')
if (call) {
method(name: 'bat', type: 'Object', params: [script:'java.lang.String'], doc: 'Windows Batch Script')
method(name: 'bat', type: 'Object', namedParams: [parameter(name: 'script', type: 'java.lang.String'), parameter(name: 'encoding', type: 'java.lang.String'), parameter(name: 'returnStatus', type: 'boolean'), parameter(name: 'returnStdout', type: 'boolean'), ], doc: 'Windows Batch Script')
method(name: 'checkout', type: 'Object', params: [scm:'Map'], doc: 'General SCM')
method(name: 'checkout', type: 'Object', namedParams: [parameter(name: 'scm', type: 'Map'), parameter(name: 'changelog', type: 'boolean'), parameter(name: 'poll', type: 'boolean'), ], doc: 'General SCM')
method(name: 'deleteDir', type: 'Object', params: [:], doc: 'Recursively delete the current directory from the workspace')
method(name: 'dir', type: 'Object', params: [path:java.lang.String, body:'Closure'], doc: 'Change current directory')
method(name: 'fileExists', type: 'Object', params: [file:'java.lang.String'], doc: 'Verify if file exists in workspace')
method(name: 'git', type: 'Object', params: [url:'java.lang.String'], doc: 'Git')
method(name: 'git', type: 'Object', namedParams: [parameter(name: 'url', type: 'java.lang.String'), parameter(name: 'branch', type: 'java.lang.String'), parameter(name: 'changelog', type: 'boolean'), parameter(name: 'credentialsId', type: 'java.lang.String'), parameter(name: 'poll', type: 'boolean'), ], doc: 'Git')
method(name: 'load', type: 'Object', params: [path:'java.lang.String'], doc: 'Evaluate a Groovy source file into the Pipeline script')
method(name: 'pwd', type: 'Object', params: [:], doc: 'Determine current directory')
method(name: 'pwd', type: 'Object', namedParams: [parameter(name: 'tmp', type: 'boolean'), ], doc: 'Determine current directory')
method(name: 'readFile', type: 'Object', params: [file:'java.lang.String'], doc: 'Read file from workspace')
method(name: 'readFile', type: 'Object', namedParams: [parameter(name: 'file', type: 'java.lang.String'), parameter(name: 'encoding', type: 'java.lang.String'), ], doc: 'Read file from workspace')
method(name: 'sh', type: 'Object', params: [script:'java.lang.String'], doc: 'Shell Script')
method(name: 'sh', type: 'Object', namedParams: [parameter(name: 'script', type: 'java.lang.String'), parameter(name: 'encoding', type: 'java.lang.String'), parameter(name: 'returnStatus', type: 'boolean'), parameter(name: 'returnStdout', type: 'boolean'), ], doc: 'Shell Script')
method(name: 'stash', type: 'Object', params: [name:'java.lang.String'], doc: 'Stash some files to be used later in the build')
method(name: 'stash', type: 'Object', namedParams: [parameter(name: 'name', type: 'java.lang.String'), parameter(name: 'excludes', type: 'java.lang.String'), parameter(name: 'includes', type: 'java.lang.String'), parameter(name: 'useDefaultExcludes', type: 'boolean'), ], doc: 'Stash some files to be used later in the build')
method(name: 'step', type: 'Object', params: [delegate:'Map'], doc: 'General Build Step')
method(name: 'svn', type: 'Object', params: [url:'java.lang.String'], doc: 'Subversion')
method(name: 'svn', type: 'Object', namedParams: [parameter(name: 'url', type: 'java.lang.String'), parameter(name: 'changelog', type: 'boolean'), parameter(name: 'poll', type: 'boolean'), ], doc: 'Subversion')
method(name: 'unstash', type: 'Object', params: [name:'java.lang.String'], doc: 'Restore files previously stashed')
method(name: 'withCredentials', type: 'Object', params: [bindings:Map, body:'Closure'], doc: 'Bind credentials to variables')
method(name: 'wrap', type: 'Object', params: [delegate:Map, body:'Closure'], doc: 'General Build Wrapper')
method(name: 'writeFile', type: 'Object', namedParams: [parameter(name: 'file', type: 'java.lang.String'), parameter(name: 'text', type: 'java.lang.String'), parameter(name: 'encoding', type: 'java.lang.String'), ], doc: 'Write file to workspace')
method(name: 'archive', type: 'Object', params: [includes:'java.lang.String'], doc: 'Advanced/Deprecated Archive artifacts')
method(name: 'archive', type: 'Object', namedParams: [parameter(name: 'includes', type: 'java.lang.String'), parameter(name: 'excludes', type: 'java.lang.String'), ], doc: 'Archive artifacts')
method(name: 'dockerFingerprintFrom', type: 'Object', namedParams: [parameter(name: 'dockerfile', type: 'java.lang.String'), parameter(name: 'image', type: 'java.lang.String'), parameter(name: 'toolName', type: 'java.lang.String'), ], doc: 'Record trace of a Docker image used in FROM')
method(name: 'unarchive', type: 'Object', params: [:], doc: 'Advanced/Deprecated Copy archived artifacts into the workspace')
method(name: 'unarchive', type: 'Object', namedParams: [parameter(name: 'mapping', type: 'Map'), ], doc: 'Copy archived artifacts into the workspace')
method(name: 'withDockerContainer', type: 'Object', params: [image:java.lang.String, body:'Closure'], doc: 'Advanced/Deprecated Run build steps inside a Docker container')
method(name: 'withDockerContainer', type: 'Object', params: [body:Closure], namedParams: [parameter(name: 'image', type: 'java.lang.String'), parameter(name: 'args', type: 'java.lang.String'), parameter(name: 'toolName', type: 'java.lang.String'), ], doc: 'Run build steps inside a Docker container')
method(name: 'withDockerRegistry', type: 'Object', params: [registry:Map, body:'Closure'], doc: 'Advanced/Deprecated Sets up Docker registry endpoint')
method(name: 'withDockerServer', type: 'Object', params: [server:Map, body:'Closure'], doc: 'Advanced/Deprecated Sets up Docker server endpoint')
}
}

View File

@@ -1,73 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration>
<configuration scan="true">
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<!-- The FILE and ASYNC appenders are here as examples for a production configuration -->
<!--
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>90</maxHistory>
</rollingPolicy>
<encoder>
<charset>utf-8</charset>
<Pattern>%d %-5level [%thread] %logger{0}: %msg%n</Pattern>
</encoder>
</appender>
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
<queueSize>512</queueSize>
<appender-ref ref="FILE"/>
</appender>
<root level="${logging.level.root}">
<appender-ref ref="ASYNC"/>
</root>
-->
<logger name="org.hostsharing.hsadminng" level="INFO"/>
<logger name="javax.activation" level="WARN"/>
<logger name="javax.mail" level="WARN"/>
<logger name="javax.management.remote" level="WARN"/>
<logger name="javax.xml.bind" level="WARN"/>
<logger name="ch.qos.logback" level="WARN"/>
<logger name="com.ryantenney" level="WARN"/>
<logger name="com.sun" level="WARN"/>
<logger name="com.zaxxer" level="WARN"/>
<logger name="io.undertow" level="WARN"/>
<logger name="io.undertow.websockets.jsr" level="ERROR"/>
<logger name="org.ehcache" level="WARN"/>
<logger name="org.apache" level="WARN"/>
<logger name="org.apache.catalina.startup.DigesterFactory" level="OFF"/>
<logger name="org.bson" level="WARN"/>
<logger name="org.hibernate.validator" level="WARN"/>
<logger name="org.hibernate" level="WARN"/>
<!-- HOWTO log Hibernate SQL queries with bind parameters
<logger name="org.hibernate.SQL" additivity="false" level="DEBUG" />
<logger name="org.hibernate.type" additivity="false" level="TRACE" />
-->
<logger name="org.hibernate.ejb.HibernatePersistence" level="OFF"/>
<logger name="org.postgresql.jdbc" level="WARN"/>
<logger name="org.springframework" level="WARN"/>
<logger name="org.springframework.web" level="WARN"/>
<logger name="org.springframework.security" level="WARN"/>
<logger name="org.springframework.cache" level="WARN"/>
<logger name="org.thymeleaf" level="WARN"/>
<logger name="org.xnio" level="WARN"/>
<logger name="springfox" level="WARN"/>
<logger name="sun.rmi" level="WARN"/>
<logger name="liquibase" level="WARN"/>
<logger name="LiquibaseSchemaResolver" level="INFO"/>
<logger name="sun.rmi.transport" level="WARN"/>
<!-- https://logback.qos.ch/manual/configuration.html#shutdownHook and https://jira.qos.ch/browse/LOGBACK-1090 -->
<shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
</configuration>

View File

@@ -1,7 +0,0 @@
# API-first development with OpenAPI
# This file will be used at compile time to generate Spring-MVC endpoint stubs using openapi-generator
openapi: "3.0.1"
info:
title: "hsadminNg"
version: 0.0.1
paths: {}

View File

@@ -1,163 +0,0 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.thymeleaf.org ">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="${baseUrl}/favicon.ico" />
<title>Your request cannot be processed</title>
<style>
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
html {
padding: 30px 10px;
font-size: 20px;
line-height: 1.4;
color: #737373;
background: #f0f0f0;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html,
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
max-width: 500px;
_width: 500px;
padding: 30px 20px 50px;
border: 1px solid #b3b3b3;
border-radius: 4px;
margin: 0 auto;
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
background: #fcfcfc;
}
h1 {
margin: 0 10px;
font-size: 50px;
text-align: center;
}
h1 span {
color: #bbb;
}
h3 {
margin: 1.5em 0 0.5em;
}
p {
margin: 1em 0;
}
ul {
padding: 0 0 0 40px;
margin: 1em 0;
}
.container {
max-width: 380px;
_width: 380px;
margin: 0 auto;
}
/* google search */
#goog-fixurl ul {
list-style: none;
padding: 0;
margin: 0;
}
#goog-fixurl form {
margin: 0;
}
#goog-wm-qt,
#goog-wm-sb {
border: 1px solid #bbb;
font-size: 16px;
line-height: normal;
vertical-align: top;
color: #444;
border-radius: 2px;
}
#goog-wm-qt {
width: 220px;
height: 20px;
padding: 5px;
margin: 5px 10px 0 0;
box-shadow: inset 0 1px 1px #ccc;
}
#goog-wm-sb {
display: inline-block;
height: 32px;
padding: 0 10px;
margin: 5px 0 0;
white-space: nowrap;
cursor: pointer;
background-color: #f5f5f5;
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), #f1f1f1);
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0), #f1f1f1);
background-image: -ms-linear-gradient(rgba(255, 255, 255, 0), #f1f1f1);
background-image: -o-linear-gradient(rgba(255, 255, 255, 0), #f1f1f1);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
*overflow: visible;
*display: inline;
*zoom: 1;
}
#goog-wm-sb:hover,
#goog-wm-sb:focus {
border-color: #aaa;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
background-color: #f8f8f8;
}
#goog-wm-qt:hover,
#goog-wm-qt:focus {
border-color: #105cb6;
outline: 0;
color: #222;
}
input::-moz-focus-inner {
padding: 0;
border: 0;
}
</style>
</head>
<body>
<div class="container">
<h1 th:text="#{error.title}">Your request cannot be processed <span>:(</span></h1>
<p th:text="#{error.subtitle}">Sorry, an error has occurred.</p>
<span th:text="#{error.status}">Status:</span>&nbsp;<span th:text="${error}"></span>&nbsp;(<span th:text="${error}"></span>)<br/>
<span th:if="${!#strings.isEmpty(message)}">
<span th:text="#{error.message}">Message:</span>&nbsp;<span th:text="${message}"></span><br/>
</span>
<script th:inline="text">
/*<![CDATA[*/
var GOOG_FIXURL_LANG = '[[${#locale.language}]]', GOOG_FIXURL_SITE = location.host;
/*]]>*/
</script>
<script src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
</div>
</body>
</html>

View File

@@ -1,25 +0,0 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="#{email.activation.title}">JHipster activation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" th:href="@{|${baseUrl}/favicon.ico|}" />
</head>
<body>
<p th:text="#{email.activation.greeting(${user.login})}">
Dear
</p>
<p th:text="#{email.activation.text1}">
Your JHipster account has been created, please click on the URL below to activate it:
</p>
<p>
<a th:with="url=(@{|${baseUrl}/#/activate?key=${user.activationKey}|})" th:href="${url}"
th:text="${url}">Activation link</a>
</p>
<p>
<span th:text="#{email.activation.text2}">Regards, </span>
<br/>
<em th:text="#{email.signature}">JHipster.</em>
</p>
</body>
</html>

View File

@@ -1,25 +0,0 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="#{email.activation.title}">JHipster creation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" th:href="@{|${baseUrl}/favicon.ico|}" />
</head>
<body>
<p th:text="#{email.activation.greeting(${user.login})}">
Dear
</p>
<p th:text="#{email.creation.text1}">
Your JHipster account has been created, please click on the URL below to access it:
</p>
<p>
<a th:with="url=(@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|})" th:href="${url}"
th:text="${url}">Login link</a>
</p>
<p>
<span th:text="#{email.activation.text2}">Regards, </span>
<br/>
<em th:text="#{email.signature}">JHipster.</em>
</p>
</body>
</html>

View File

@@ -1,25 +0,0 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="#{email.reset.title}">JHipster password reset</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" th:href="@{|${baseUrl}/favicon.ico|}" />
</head>
<body>
<p th:text="#{email.reset.greeting(${user.login})}">
Dear
</p>
<p th:text="#{email.reset.text1}">
For your JHipster account a password reset was requested, please click on the URL below to reset it:
</p>
<p>
<a th:with="url=(@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|})" th:href="${url}"
th:text="${url}">Login link</a>
</p>
<p>
<span th:text="#{email.reset.text2}">Regards, </span>
<br/>
<em th:text="#{email.signature}">JHipster.</em>
</p>
</body>
</html>