Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
merge 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Gillmann committed Dec 6, 2019
2 parents 6936e56 + 06c87ba commit 5ba9d86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ARG SA_PASSWORD
ENV SA_PASSWORD=$SA_PASSWORD
ARG SQL_SCRIPT_URL=https://github.com/openimis/database_ms_sqlserver/raw/master/Empty%20databases/openIMIS_ONLINE.sql
RUN wget $SQL_SCRIPT_URL -O /openIMIS_ONLINE.sql
COPY script/create_database.sh /create_database.sh
COPY script/* /
5 changes: 5 additions & 0 deletions script/demo_user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -Q "update tblUsersDistricts set userid = 16 where userid = 10"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -d imis -Q "update tblUsers set loginname = 'user' where loginname = 'test'"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -d imis -Q "update tblUsers set validityto = null, roleid = 7 where userid = 16"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -d imis -Q "update tblUserRole set UserID = 16 where UserID = 2"

0 comments on commit 5ba9d86

Please sign in to comment.