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:
32
32
restart : no
33
33
env_file :
34
34
- ./.env
35
+ environment :
36
+ - DEBUG=true
35
37
depends_on :
36
38
23ai :
37
39
condition : service_healthy
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
74
74
echo " DBHOST=\" 23ai\" " >> .env
75
75
echo " DBPORT=\" 1521\" " >> .env
76
76
echo " FORCE_SECURE=\" false\" " >> .env
77
- echo " DEBUG=\" true\" " >> .env
78
77
```
79
78
80
79
### Stop the containers
@@ -137,3 +136,14 @@ end;
137
136
docker image ls
138
137
docker image rm {image_name}
139
138
` ` `
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() {
7
7
fi
8
8
9
9
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
12
13
SET HEADING OFF
13
14
SET FEEDBACK OFF
14
15
SET PAGESIZE 0
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
24
24
echo " DBHOST=\" 23ai\" " >> .env
25
25
echo " DBPORT=\" 1521\" " >> .env
26
26
echo " FORCE_SECURE=\" false\" " >> .env
27
- echo " DEBUG=\" true\" " >> .env
28
27
29
28
echo " Created .env file"
30
29
You can’t perform that action at this time.
0 commit comments