To install ACUITY please refer to main project repository and project's Wiki
This repository contains Flyway scripts for ACUITY project database initialization and migration. It is intended to use it on a PostgreSQL 11 server with orafce extensions and some other (to learn more about the server installation and setup, please see details on the main project wiki).
- create user
dbadmin
with superuser permissions - create database
acuity_db
- create migration script file in
src\main\resources\flyway\release-<current-release>\migrations
directory - name this file using pattern
V[unix timestamp in seconds]__[story_and_comments].sql
. Note that there must be double underscore after the timestamp, otherwise it won't work.
- build the project with maven (
mvn clean install
) - download and unpack Flyway console utility 7.0.0 (for Windows, you may download it here) or later
- place the .jar artifact you've built into
<Flyway directory>/jars
- copy the
flyway.conf
file into<Flyway directory>/conf
(replacing the existing file) and update the copy, setting the following values:flyway.url
should contain real target machine IP instead of sample oneflyway.password
should be real password fordbadmin
user, on behalf of which all Flyway scripts will be performedflyway.placeholders.user.acuity.password
should be real password foracuity
user, on behalf of which ACUITY applications will interact with the DB
- run in command line:
flyway info
to check statusflyway migrate
to apply migrations