PRIMARY KEY(FileSetId)
);
+CREATE INDEX fileset_name_idx on FileSet (FileSet);
+
CREATE TABLE JobMedia (
JobMediaId INTEGER,
JobId INTEGER UNSIGNED REFERENCES Job NOT NULL,
PRIMARY KEY(MediaId)
);
+CREATE UNIQUE INDEX Media_Volumename_Id ON Media (VolumeName);
CREATE INDEX inx8 ON Media (PoolId);
CREATE INDEX inx9 ON Media (StorageId);
PRIMARY KEY (PoolId)
);
+CREATE INDEX pool_name_idx on Pool (Name);
CREATE TABLE Client (
ClientId INTEGER,
PRIMARY KEY(ClientId)
);
+CREATE UNIQUE INDEX client_name_idx on Client (Name);
+
CREATE TABLE BaseFiles (
BaseId BIGINT,
BaseJobId INTEGER UNSIGNED REFERENCES Job NOT NULL,
);
-CREATE TABLE NextId (
- id INTEGER UNSIGNED DEFAULT 0,
- TableName TEXT NOT NULL,
- PRIMARY KEY (TableName)
- );
-
-
-
--- Initialize JobId to start at 1
-INSERT INTO NextId (id, TableName) VALUES (1, 'Job');
-
CREATE TABLE Version (
VersionId INTEGER UNSIGNED NOT NULL
);
('I', 'Incomplete Job',25);
-- Initialize Version
-INSERT INTO Version (VersionId) VALUES (15);
+INSERT INTO Version (VersionId) VALUES (16);
PRAGMA default_cache_size = 100000;
PRAGMA synchronous = NORMAL;
END-OF-DATA
+echo ""
+echo "WARNING: !!!! SQLite3 is no longer supported. !!!!"
+echo "WARNING: !!!! Please switch to MySQL or PostgreSQL !!!!"
+echo "WARNING: !!!! as soon as possible. !!!!"
+echo ""
+
chmod 640 ${db_name}.db
exit 0