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
application-manager-new
lasantha 7 years ago
parent d8363a5378
commit 883c91bdfb

@ -1987,5 +1987,12 @@
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>
<!-- ********************************* End of Broker Profile ********************************* --> <!-- ********************************* 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> </files>
</assembly> </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