#if defined(BUILDING_CATS)
#ifdef HAVE_SQLITE
-#define BDB_VERSION 10
+#define BDB_VERSION 11
#include <sqlite.h>
#ifdef HAVE_SQLITE3
-#define BDB_VERSION 10
+#define BDB_VERSION 11
#include <sqlite3.h>
#ifdef HAVE_MYSQL
-#define BDB_VERSION 10
+#define BDB_VERSION 11
#include <mysql.h>
#ifdef HAVE_POSTGRESQL
-#define BDB_VERSION 10
+#define BDB_VERSION 11
#include <libpq-fe.h>
#ifdef HAVE_DBI
-#define BDB_VERSION 10
+#define BDB_VERSION 11
#include <dbi/dbi.h>
DROP TABLE IF EXISTS File;
DROP TABLE IF EXISTS Client;
DROP TABLE IF EXISTS Job;
+DROP TABLE IF EXISTS JobStat;
DROP TABLE IF EXISTS Media;
DROP TABLE IF EXISTS JobMedia;
DROP TABLE IF EXISTS Pool;
drop table jobmedia;
drop table file;
drop table job;
+drop table jobstat;
drop table media;
drop table client;
drop table pool;
grant all on location to ${USER};
grant all on locationlog to ${USER};
grant all on log to ${USER};
+grant all on jobstat to ${USER};
-- for sequences on those tables
#
bindir=@SQL_BINDIR@
-# nothing to do here
\ No newline at end of file
+# nothing to do here
);
-- Initialize Version
-INSERT INTO Version (VersionId) VALUES (10);
+INSERT INTO Version (VersionId) VALUES (11);
END-OF-DATA
then
INSERT INTO Status (JobStatus,JobStatusLong) VALUES
('i', 'Doing batch insert file records');
-INSERT INTO Version (VersionId) VALUES (10);
+INSERT INTO Version (VersionId) VALUES (11);
-- Make sure we have appropriate permissions
-- Initialize Version
-INSERT INTO Version (VersionId) VALUES (10);
+INSERT INTO Version (VersionId) VALUES (11);
PRAGMA default_cache_size = 100000;
-- Initialize Version
-INSERT INTO Version (VersionId) VALUES (10);
+INSERT INTO Version (VersionId) VALUES (11);
PRAGMA default_synchronous = OFF;