# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
. /usr/share/dbconfig-common/dpkg/config.mysql
+ dbc_first_version=0.9.20-2
+ dbc_oldversion="$2"
+ # check if we are migrating from a pre-dbc version
+ if [ "$dbc_oldversion" ] && [ "$dbc_first_version" ] && \
+ dpkg --compare-versions "$dbc_first_version" gt "$dbc_oldversion"; then
+ echo "WE ARE MIGRATING"
+ fi
dbc_go diogenes $@
fi
-