File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ jobs:
3737 mkdir ./oldMain
3838 wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/main/Empty%20databases/openIMIS_ONLINE.sql -O oldMain/openIMIS_ONLINE.sql
3939 wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/main/Demo%20database/openIMIS_demo_ONLINE.sql -O oldMain/openIMIS_demo_ONLINE.sql
40- mkdir ./1.30
41- wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/v1.3.0 /Empty%20databases/openIMIS_ONLINE.sql -O 1.30/openIMIS_ONLINE.sql
40+ mkdir ./1.42
41+ wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/v1.4.2 /Empty%20databases/openIMIS_ONLINE.sql -O 1.30/openIMIS_ONLINE.sql
4242 curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
4343 curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
4444 sudo apt-get update
4545 sudo ACCEPT_EULA=Y apt-get install -y mssql-tools build-essential dialog apt-utils unixodbc-dev -y
4646 python -m pip install --upgrade pip
47- - name : DB migration 1.30
47+ - name : DB migration 1.42
4848 run : |
4949 /opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -Q 'DROP DATABASE IF EXISTS imis'
5050 /opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -Q 'CREATE DATABASE imis'
51- /opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i 1.30 /openIMIS_ONLINE.sql | grep . | uniq -c
51+ /opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i 1.42 /openIMIS_ONLINE.sql | grep . | uniq -c
5252 /opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i "new/Migration script/openIMIS migration latest.sql" | grep . | uniq -c
5353 env :
5454 SA_PASSWORD : GitHub999
You can’t perform that action at this time.
0 commit comments