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
merge-requests/1/head
lasantha 7 years ago
parent d8363a5378
commit 883c91bdfb

@ -1987,5 +1987,12 @@
<fileMode>644</fileMode>
</file>
<!-- ********************************* End of Broker Profile ********************************* -->
<!-- ********************************* Start of Storage PostgreSQL Copying ********************************* -->
<file>
<source>src/core/resources/dbscripts/storage/resource.sql</source>
<outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/storage/postgresql</outputDirectory>
</file>
<!-- ********************************* End of Storage PostgreSQL Copying ********************************* -->
</files>
</assembly>

@ -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
)
;
Loading…
Cancel
Save