Skip to content
Permalink
Browse files
Migrate office service from MariaDB to PostgreSQL
  • Loading branch information
Izakey committed Mar 22, 2019
1 parent f810d83 commit 3475cb1cb58e7bcc2fd0b22ad8c67584cfc40293
Showing 4 changed files with 13 additions and 6 deletions.
@@ -23,6 +23,12 @@ spring:
enabled: false
config:
enabled: false
datasource:
driver-class-name: org.postgresql.Driver
platform: postgres
url: jdbc:postgresql://localhost:5432/seshat
username: postgres
password: postgres

eureka:
client:
@@ -18,7 +18,7 @@
--

CREATE TABLE horus_offices (
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
parent_office_id BIGINT NULL,
identifier VARCHAR(32) NOT NULL,
a_name VARCHAR(256) NOT NULL,
@@ -37,7 +37,7 @@ CREATE TABLE horus_offices (
);

CREATE TABLE horus_addresses (
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
office_id BIGINT NOT NULL,
street VARCHAR(256) NOT NULL,
city VARCHAR(256) NOT NULL,
@@ -53,7 +53,7 @@ CREATE TABLE horus_addresses (
);

CREATE TABLE horus_employees (
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
identifier VARCHAR(32) NOT NULL,
given_name VARCHAR(256) NULL,
middle_name VARCHAR(256) NULL,
@@ -73,7 +73,7 @@ CREATE TABLE horus_employees (
);

CREATE TABLE horus_contact_details (
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
employee_id BIGINT NOT NULL,
a_type VARCHAR(256) NOT NULL,
a_group VARCHAR(256) NOT NULL,
@@ -18,7 +18,7 @@
--

CREATE TABLE horus_external_references (
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
office_identifier VARCHAR(32) NOT NULL,
a_type VARCHAR(32) NULL,
a_state VARCHAR(256) NULL,
@@ -64,7 +64,8 @@ ext['spring-data-releasetrain.version'] = 'Gosling-SR2A'
dependencies {
compile(
[group: 'com.google.code.findbugs', name: 'jsr305'],
[group: 'org.apache.fineract.cn', name: 'postgresql', version:'0.1.0-BUILD-SNAPSHOT']
[group: 'org.apache.fineract.cn', name: 'postgresql', version:'0.1.0-BUILD-SNAPSHOT'],
[group: 'postgresql', name: 'postgresql', version: '9.0-801.jdbc4']
)

testCompile(

0 comments on commit 3475cb1

Please sign in to comment.