DB upgrade: prevent variable leakage
This commit is contained in:
parent
1b801cbe12
commit
94c149e184
@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
upgradedatabase_1_2() {
|
upgradedatabase_1_2() {
|
||||||
|
local data \
|
||||||
|
datas \
|
||||||
|
id \
|
||||||
|
rename_pattern \
|
||||||
|
pattern \
|
||||||
|
fat32
|
||||||
echo "Upgrading database to version 2... (backup is $database.bak_v1)"
|
echo "Upgrading database to version 2... (backup is $database.bak_v1)"
|
||||||
cp "$database" "$database.bak_v1"
|
cp "$database" "$database.bak_v1"
|
||||||
echo 'ALTER TABLE destination_files ADD COLUMN fat32compat INTEGER;' >&3
|
echo 'ALTER TABLE destination_files ADD COLUMN fat32compat INTEGER;' >&3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user