Commit 2d2b8cd
committed
Use different approach for marking
The previous attempt in e5e025a to mark the `ar_internal_metadata`
environment row as non-production does not work reliably. The change
here fixes the issue with a slightly more brute-force approach, but one
that does not require capabilities beyond pure SQL.
If the `ar_internal_metadata` table does not exist, we'll create a blank
one with no rows. The following update operation will no-op.ar_internal_metadata on restore1 parent e5e025a commit 2d2b8cd
2 files changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
94 | 89 | | |
95 | 90 | | |
96 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
194 | 191 | | |
195 | 192 | | |
0 commit comments