From 883c91bdfbe4064cd88c7d1f21853b5ce7834fee Mon Sep 17 00:00:00 2001 From: lasantha Date: Mon, 12 Mar 2018 11:27:23 +0530 Subject: [PATCH] Add PostgreSQL script to storage db scripts PostgerSQL scripts are not in the storage db scripts folder. Therefore added it and script will copy to the storage folder when building the server --- modules/distribution/src/assembly/bin.xml | 7 +++++++ .../src/core/resources/dbscripts/storage/resource.sql | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/distribution/src/core/resources/dbscripts/storage/resource.sql diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 15d97bf8..c10bb6ba 100755 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -1987,5 +1987,12 @@ 644 + + + + src/core/resources/dbscripts/storage/resource.sql + ${pom.artifactId}-${pom.version}/dbscripts/storage/postgresql + + diff --git a/modules/distribution/src/core/resources/dbscripts/storage/resource.sql b/modules/distribution/src/core/resources/dbscripts/storage/resource.sql new file mode 100644 index 00000000..7ec87c48 --- /dev/null +++ b/modules/distribution/src/core/resources/dbscripts/storage/resource.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS resource ( + uuid VARCHAR(250), + tenantId VARCHAR(250), + fileName VARCHAR(250), + contentLength INT, + contentType VARCHAR(150), + content BYTEA +) +;