Add SeedDMS attribute customization, closes #270

This commit is contained in:
Disassembler 2018-08-05 08:29:56 +02:00
parent 20f8172e44
commit f22d6ed689
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,7 @@ rc-update -u
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
docker run --rm seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
cat ${SOURCE_DIR}/custom.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
# Copy existing files into persistent storage
mkdir -p /srv/seeddms/conf /srv/seeddms/data

13
seeddms/custom.sql Normal file
View File

@ -0,0 +1,13 @@
INSERT INTO "tblAttributeDefinitions" (name, objtype, type) VALUES
('Licence', 2, 3),
('Autor', 2, 3),
('Source URL', 2, 5),
('Email', 2, 6),
('Organization', 2, 3),
('ISBN', 2, 3),
('Published', 2, 7),
('Language', 0, 3),
('Phone', 2, 1),
('Region', 0, 3),
('Org. abbreviation', 2, 3),
('ISSN', 2, 3);