91556e3261
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/digikam?expand=0&rev=5060a6f307b5ea796270c4882a3920de
52 lines
3.6 KiB
Diff
52 lines
3.6 KiB
Diff
From ceb41a7f89ddf9716507466861828925357ab3f3 Mon Sep 17 00:00:00 2001
|
|
From: Maik Qualmann <metzpinguin@gmail.com>
|
|
Date: Fri, 19 Jan 2018 19:59:44 +0100
|
|
Subject: drop old table if new run required
|
|
|
|
---
|
|
data/database/dbconfig.xml.cmake.in | 21 +++++++++++++++++++++
|
|
1 file changed, 21 insertions(+)
|
|
|
|
diff --git a/data/database/dbconfig.xml.cmake.in b/data/database/dbconfig.xml.cmake.in
|
|
index a98434b..3ec790f 100644
|
|
--- a/data/database/dbconfig.xml.cmake.in
|
|
+++ b/data/database/dbconfig.xml.cmake.in
|
|
@@ -2024,6 +2024,7 @@
|
|
<statement mode="plain">CALL drop_foreign_key('TagProperties', 'TagProperties_Tags');</statement>
|
|
<statement mode="plain">CALL drop_foreign_key('ImageTagProperties', 'ImageTagProperties_Images');</statement>
|
|
<statement mode="plain">CALL drop_foreign_key('ImageTagProperties', 'ImageTagProperties_Tags');</statement>
|
|
+
|
|
<statement mode="plain">ALTER TABLE AlbumRoots MODIFY COLUMN label LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci;</statement>
|
|
<statement mode="plain">ALTER TABLE AlbumRoots MODIFY COLUMN identifier LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci;</statement>
|
|
<statement mode="plain">ALTER TABLE AlbumRoots MODIFY COLUMN specificPath LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci;</statement>
|
|
@@ -2063,6 +2064,26 @@
|
|
<statement mode="plain">ALTER TABLE ImageTagProperties MODIFY COLUMN property TEXT CHARACTER SET utf8 COLLATE utf8_general_ci;</statement>
|
|
<statement mode="plain">ALTER TABLE ImageTagProperties MODIFY COLUMN value LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci;</statement>
|
|
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageTagProperties_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS TagProperties_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageRelations_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageHistory_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS Settings_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS DownloadHistory_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageProperties_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageTags_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS Tags_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageCopyright_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageComments_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImagePositions_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS VideoMetadata_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageMetadata_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageInformation_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS ImageHaarMatrix_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS Images_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS Albums_old;</statement>
|
|
+ <statement mode="plain">DROP TABLE IF EXISTS AlbumRoots_old;</statement>
|
|
+
|
|
<statement mode="plain">RENAME TABLE AlbumRoots TO AlbumRoots_old;</statement>
|
|
<statement mode="plain">CREATE TABLE AlbumRoots LIKE AlbumRoots_old;</statement>
|
|
<statement mode="plain">ALTER TABLE AlbumRoots
|
|
--
|
|
cgit v0.11.2
|
|
|