AtOM/lib/database/upgradedatabase_2_3
2025-04-02 23:22:18 +00:00

15 lines
404 B
Bash

#!/usr/bin/env bash
upgradedatabase_2_3() {
local data \
datas \
id \
destination
echo "Upgrading database to version 3... (backup is $database.bak_v2)"
cp "$database" "$database.bak_v2"
echo 'ALTER TABLE destinations ADD COLUMN enabled INTEGER DEFAULT 1;' >&3
Update destinations enabled 1 <<< "1 = 1"
Update atom version 3 <<<"1 = 1"
}