diff --git a/sanofi/resource/mock-abase-db/create-mock-abase-db.sh b/sanofi/resource/mock-abase-db/create-mock-abase-db.sh index 5964e45b43e758cf3d46159daa66c92cc842022c..4b6410f674669ae3b9681a9c4e9e46f636d9869e 100755 --- a/sanofi/resource/mock-abase-db/create-mock-abase-db.sh +++ b/sanofi/resource/mock-abase-db/create-mock-abase-db.sh @@ -2,13 +2,13 @@ USER=`whoami` ABASE_DB="abase_mock_db" -#psql -U postgres -c "create database $ABASE_DB with owner $USER template = template0 encoding = 'UNICODE'" +psql -U postgres -c "create database $ABASE_DB with owner $USER template = template0 encoding = 'UNICODE'" -#psql -U $USER -d $ABASE_DB -f db.sql +psql -U $USER -d $ABASE_DB -f db.sql # Alternative version for tests on sprint server: -##psql -U postgres -c "create database abase_mock_db with owner openbis template = template0 encoding = 'UNICODE'" -##psql -U openbis -d abase_mock_db -c "CREATE TABLE plates (WELL_CODE VARCHAR NOT NULL, MATERIAL_CODE VARCHAR NOT NULL, ABASE_COMPOUND_ID VARCHAR NOT NULL, ABASE_COMPOUND_BATCH_ID VARCHAR NOT NULL, ABASE_PLATE_CODE VARCHAR NOT NULL)" +#psql -U postgres -c "create database abase_mock_db with owner openbis template = template0 encoding = 'UNICODE'" +#psql -U openbis -d abase_mock_db -c "CREATE TABLE plates (WELL_CODE VARCHAR NOT NULL, MATERIAL_CODE VARCHAR NOT NULL, ABASE_COMPOUND_ID VARCHAR NOT NULL, ABASE_COMPOUND_BATCH_ID VARCHAR NOT NULL, ABASE_PLATE_CODE VARCHAR NOT NULL)" #psql -U openbis -d abase_mock_db -c "#INSERT INTO plates (well_code, material_code, abase_compound_id, abase_compound_batch_id, abase_plate_code) values ('A001', 'COMPOUND-1', 'ABASE Compound (1)', 'ABASE Batch Compound (1)', 'PLATE1')" #psql -U openbis -d abase_mock_db -c "#INSERT INTO plates (well_code, material_code, abase_compound_id, abase_compound_batch_id, abase_plate_code) values ('A002', 'COMPOUND-2', 'ABASE Compound (1)', 'ABASE Batch Compound (1)', 'PLATE1')"