Skip to content

Commit ed8566f

Browse files
committed
Separated sql scripts from install.sh
1 parent 46c54f0 commit ed8566f

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

source/install.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,4 @@
22

33
set -ev
44

5-
sqlplus -L -S ${DB_USER}/${DB_PASS} <<SQL
6-
whenever sqlerror exit failure rollback
7-
whenever oserror exit failure rollback
8-
9-
@source/award_bonus/employees_test.sql
10-
@source/award_bonus/award_bonus.prc
11-
12-
@source/between_string/betwnstr.fnc
13-
14-
@source/remove_rooms_by_name/rooms.sql
15-
@source/remove_rooms_by_name/remove_rooms_by_name.prc
16-
17-
exit
18-
SQL
5+
sqlplus -L -S ${DB_USER}/${DB_PASS} @source/install.sql

source/install.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
whenever sqlerror exit failure rollback
2+
whenever oserror exit failure rollback
3+
4+
@source/award_bonus/employees_test.sql
5+
@source/award_bonus/award_bonus.prc
6+
7+
@source/between_string/betwnstr.fnc
8+
9+
@source/remove_rooms_by_name/rooms.sql
10+
@source/remove_rooms_by_name/remove_rooms_by_name.prc
11+
12+
exit

test/install.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,4 @@
22

33
set -ev
44

5-
sqlplus -L -S ${DB_USER}/${DB_PASS} <<SQL
6-
whenever sqlerror exit failure rollback
7-
whenever oserror exit failure rollback
8-
9-
@test/award_bonus/test_award_bonus.pks
10-
@test/award_bonus/test_award_bonus.pkb
11-
12-
@test/between_string/test_betwnstr.pks
13-
@test/between_string/test_betwnstr.pkb
14-
15-
@test/remove_rooms_by_name/test_remove_rooms_by_name.pks
16-
@test/remove_rooms_by_name/test_remove_rooms_by_name.pkb
17-
18-
exit
19-
SQL
5+
sqlplus -L -S ${DB_USER}/${DB_PASS} @test/install.sql

test/install.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
whenever sqlerror exit failure rollback
2+
whenever oserror exit failure rollback
3+
4+
@test/award_bonus/test_award_bonus.pks
5+
@test/award_bonus/test_award_bonus.pkb
6+
7+
@test/between_string/test_betwnstr.pks
8+
@test/between_string/test_betwnstr.pkb
9+
10+
@test/remove_rooms_by_name/test_remove_rooms_by_name.pks
11+
@test/remove_rooms_by_name/test_remove_rooms_by_name.pkb
12+
13+
exit

0 commit comments

Comments
 (0)