DROP FUNCTION IF EXISTS decode_lstat();
DROP FUNCTION IF EXISTS bareos_frombase64();
DROP VIEW IF EXISTS backup_unit_overview;
DROP VIEW IF EXISTS latest_full_size_categorized;
-- DROP TABLE IF EXISTS unsavedfiles;
DROP TABLE IF EXISTS basefiles;
DROP TABLE IF EXISTS jobmedia;
DROP TABLE IF EXISTS file;
DROP TABLE IF EXISTS job;
DROP TABLE IF EXISTS jobhisto;
DROP TABLE IF EXISTS media;
DROP TABLE IF EXISTS client;
DROP TABLE IF EXISTS pool;
DROP TABLE IF EXISTS fileset;
DROP TABLE IF EXISTS path;
-- DROP TABLE IF EXISTS filename;
DROP TABLE IF EXISTS counters;
DROP TABLE IF EXISTS version;
DROP TABLE IF EXISTS Device;
DROP TABLE IF EXISTS Storage;
DROP TABLE IF EXISTS MediaType;
DROP TABLE IF EXISTS Status;
DROP TABLE IF EXISTS Quota;
DROP TABLE IF EXISTS NDMPLevelMap;
DROP TABLE IF EXISTS NDMPJobEnvironment;
DROP TABLE IF EXISTS DeviceStats;
DROP TABLE IF EXISTS JobStats;
DROP TABLE IF EXISTS TapeAlerts;
DROP TABLE IF EXISTS log;
DROP TABLE IF EXISTS Location;
DROP TABLE IF EXISTS locationlog;
DROP TABLE IF EXISTS PathVisibility;
DROP TABLE IF EXISTS PathHierarchy;
DROP TABLE IF EXISTS RestoreObject;
