File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
docs/src/content/docs/migrations Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ services:
3232 restart : no
3333 env_file :
3434 - ./.env
35+ environment :
36+ - DEBUG=true
3537 depends_on :
3638 23ai :
3739 condition : service_healthy
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
7474echo " DBHOST=\" 23ai\" " >> .env
7575echo " DBPORT=\" 1521\" " >> .env
7676echo " FORCE_SECURE=\" false\" " >> .env
77- echo " DEBUG=\" true\" " >> .env
7877```
7978
8079### Stop the containers
@@ -137,3 +136,14 @@ end;
137136docker image ls
138137docker image rm {image_name}
139138` ` `
139+
140+ # # Hotfix: DEBUG env var
141+
142+ < Aside type=" caution" > In the first version of this migration I added ` DEBUG=TRUE` to the ` .env` file.
143+
144+ Please remove this line from your ` .env` file if it exists, as it messed up SQLcl scripts.
145+ < /Aside>
146+
147+ (The new SQLcl version also uses this variable to output debug information. As some scripts read the output of SQLcl, it can cause issues.)
148+
149+ If you don' t have it in your `.env` file, you can proceed without any changes.
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ user_exists_in_db() {
77 fi
88
99 local USERNAME=$1
10- local count=$(
11- sql -S -name $DB_CONN_NAME << SQL
10+ local count
11+ count=$(
12+ sql -S -name " $DB_CONN_NAME " << SQL
1213SET HEADING OFF
1314SET FEEDBACK OFF
1415SET PAGESIZE 0
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
2424echo " DBHOST=\" 23ai\" " >> .env
2525echo " DBPORT=\" 1521\" " >> .env
2626echo " FORCE_SECURE=\" false\" " >> .env
27- echo " DEBUG=\" true\" " >> .env
2827
2928echo " Created .env file"
3029
You can’t perform that action at this time.
0 commit comments