Commit 627e4bdd authored by Panagiotis Skarvelis's avatar Panagiotis Skarvelis
Browse files

no need for user for tests

parent 52bafa66
......@@ -11,11 +11,11 @@
// auditUserId: varchar(255);
//You can use Docker to run PostgreSQL for your tests.
//`docker run -d --name audit-postgres -e POSTGRES_PASSWORD=audit --network host postgres
//`docker exec -it audit-postgres psql -U audit -h localhost -c "CREATE DATABASE audit;"`
//`docker exec -it audit-postgres psql -U audit -h localhost -c "CREATE TABLE audit_log (auditUnit varchar(255), auditTransactionId varchar(255), auditProtocol varchar(255), auditTransactionDate varchar(20), auditUserIp varchar(16), auditUserId varchar(255));"`
//`docker exec -it audit-postgres psql -U audit -h localhost -c "CREATE USER audit WITH PASSWORD 'audit';"`
//`docker exec -it audit-postgres psql -U audit -h localhost -c "GRANT ALL PRIVILEGES ON DATABASE audit TO audit;"`
//`docker exec -it audit-postgres psql -U audit -h localhost -c "ALTER USER audit WITH SUPERUSER;"`
//`docker run -d --name audit-postgres -e POSTGRES_PASSWORD=audit --network host postgres`
//`docker exec -it audit-postgres psql -U postgres -h localhost -c "CREATE DATABASE audit;"`
//`docker exec -it audit-postgres psql -U postgres -h localhost -c "CREATE TABLE audit_log (auditUnit varchar(255), auditTransactionId varchar(255), auditProtocol varchar(255), auditTransactionDate varchar(20), auditUserIp varchar(16), auditUserId varchar(255));"`
//You can also map the fields of already existent table to the fields in the audit log.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment