[pkg-bacula-commits] [bacula] 01/01: Re-added an updated upstream-fix-update_sqlite3_tables.patch

Carsten Leonhardt leo at moszumanska.debian.org
Sun Sep 10 13:44:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch master
in repository bacula.

commit 5f57ff216af36ccb9518331ef5f2323edfaad2c6
Author: Carsten Leonhardt <leo at debian.org>
Date:   Sun Sep 10 15:43:40 2017 +0200

    Re-added an updated upstream-fix-update_sqlite3_tables.patch
---
 debian/changelog                                   |  8 ++---
 debian/patches/series                              |  1 +
 .../upstream-fix-update_sqlite3_tables.patch       | 41 ++++++++++++++++++++++
 3 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 79f3fe0..ddc3431 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,10 +5,10 @@ bacula (9.0.4+dfsg-1) unstable; urgency=low
   * Added notice about discontinued sqlite3 support also to the package
     description of bacula-common-sqlite3
   * Dropped debian patches
-    upstream-bring-back-tmpfiles-configuration.patch,
-    upstream-fix-sqlite-db-creation.patch and
-    upstream-fix-sqlite-update.patch, these have been addressed or applied
-    in the new upstream version
+    upstream-bring-back-tmpfiles-configuration.patch and
+    upstream-fix-sqlite-db-creation.patch, these have been addressed or
+    applied in the new upstream version
+  * Updated upstream-fix-sqlite-update.patch
   * Added patches to modify the baculabackupreport script to use sensible
     defaults
 
diff --git a/debian/patches/series b/debian/patches/series
index fc1990c..1be5b1a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ debian-enable-hardening-for-bat.patch
 non-forking-systemd-units.patch
 upstream-fix-baculabackupreport-defaults.patch
 debian-fix-baculabackupreport-defaults.patch
+upstream-fix-update_sqlite3_tables.patch
diff --git a/debian/patches/upstream-fix-update_sqlite3_tables.patch b/debian/patches/upstream-fix-update_sqlite3_tables.patch
new file mode 100644
index 0000000..0909f1b
--- /dev/null
+++ b/debian/patches/upstream-fix-update_sqlite3_tables.patch
@@ -0,0 +1,41 @@
+Description: Fix sqlite3 update script
+Author: Carsten Leonhardt <leo at debian.org>
+Bug: http://bugs.bacula.org/view.php?id=2316
+Last-Update: 2017-09-10
+--- a/src/cats/update_sqlite3_tables.in
++++ b/src/cats/update_sqlite3_tables.in
+@@ -203,8 +203,8 @@
+    VolHoleBytes BIGINT UNSIGNED DEFAULT 0,
+    VolHoles INTEGER UNSIGNED DEFAULT 0,
+    VolType INTEGER UNSIGNED DEFAULT 0,
+-   VolParts INTERGER UNSIGNED DEFAULT 0,
+-   VolCloudParts INTERGER UNSIGNED DEFAULT 0,
++   VolParts INTEGER UNSIGNED DEFAULT 0,
++   VolCloudParts INTEGER UNSIGNED DEFAULT 0,
+    VolErrors INTEGER UNSIGNED DEFAULT 0,
+    VolWrites BIGINT UNSIGNED DEFAULT 0,
+    VolCapacityBytes BIGINT UNSIGNED DEFAULT 0,
+@@ -239,14 +239,20 @@
+ DROP TABLE Media;
+ ALTER TABLE new_Media RENAME TO Media;
+ CREATE INDEX inx8 ON Media (PoolId);
+-
++CREATE INDEX inx9 ON Media (StorageId);
+ CREATE UNIQUE INDEX Media_Volumename_Id ON Media (VolumeName);
+ 
+-
+ DROP TABLE BaseFiles;
+ ALTER TABLE basefiles_temp RENAME TO BaseFiles;
+ 
+-CREATE INDEX job_jobtdate_inx ON job (JobTDate);
++CREATE INDEX job_jobtdate_inx ON Job (JobTDate);
++ALTER TABLE Pool ADD COLUMN CacheRetention BIGINT UNSIGNED DEFAULT 0;
++
++DROP TABLE IF EXISTS NextId;
++CREATE INDEX fileset_name_idx on FileSet (FileSet);
++CREATE INDEX pool_name_idx on Pool (Name);
++CREATE UNIQUE INDEX client_name_idx on Client (Name);
++CREATE INDEX basefiles_jobid_idx ON BaseFiles ( JobId );
+ 
+ UPDATE Version SET VersionId=16;
+ COMMIT;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list