###########################################################
[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
-confirm "Setting up new database: target db is \"$DATABASE\", source prefix is \"$DBPREFIX\""
+echo "Setting up new database: target db is \"$DATABASE\", source prefix is \"$DBPREFIX\""
+confirm "Please ensure your platal.conf is configured to use \"$DATABASE\""
echo "* create database"
mysql_exec_nodb "CREATE DATABASE IF NOT EXISTS $DATABASE;"
. " There is $warnings phone numbers that couldn't be imported.\n"
. " They need to be manually inserted.\n";
}
-echo "\nAfter solving any import problem and checking automatic conversions,\n"
- . "you can drop useless columns and tables by these requests:\n"
- . "DROP TABLE IF EXISTS tels;\n"
- . "ALTER TABLE auth_user_quick DROP COLUMN profile_mobile;\n"
- . "ALTER TABLE auth_user_quick DROP COLUMN profile_mobile_pub;\n"
- . "ALTER TABLE entreprises DROP COLUMN tel;\n"
- . "ALTER TABLE entreprises DROP COLUMN fax;\n"
- . "ALTER TABLE entreprises DROP COLUMN mobile;\n"
- . "ALTER TABLE entreprises DROP COLUMN tel_pub;\n";
-
// auxilliary functions