From 58f3150e1c5343cc09619a5c1c2f004c1ea1ed07 Mon Sep 17 00:00:00 2001 From: Hugh Ranalli Date: Fri, 7 Sep 2018 14:48:17 -0400 Subject: [PATCH] Update 8.0.0.sqlite Fixing errors in update script. These errors cause the Debian repository update to fail. I was sure I fixed this the other day and submitted a pull request, but can find neither my changes nor the request. The change I am most unsure of is line 13, where I have added the necessary additional reference to ajxp_user_prefs. However, as I am not sure exactly what this query is doing, I am not sure if my change is correct or not. --- dist/php/8.0.0.sqlite | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/php/8.0.0.sqlite b/dist/php/8.0.0.sqlite index 449dbac11a..51f4f4c37b 100644 --- a/dist/php/8.0.0.sqlite +++ b/dist/php/8.0.0.sqlite @@ -5,14 +5,15 @@ CREATE TABLE IF NOT EXISTS ajxp_user_prefs_temp ( val blob DEFAULT NULL ); /* SEPARATOR */ -CREATE UNIQUE INDEX (ajxp_user_prefs_unique) ON ajxp_user_prefs_temp(`login`,`name`); +CREATE UNIQUE INDEX ajxp_user_prefs_unique ON ajxp_user_prefs_temp(`login`,`name`); /* SEPARATOR */ INSERT INTO ajxp_user_prefs_temp (SELECT * from ajxp_user_prefs WHERE NOT EXISTS( SELECT 1 - FROM ajxp_user_prefs As S2 + FROM ajxp_user_prefs, ajxp_user_prefs As S2 WHERE S2.login = ajxp_user_prefs.login AND S2.name = ajxp_user_prefs.name AND S2.rid > ajxp_user_prefs.rid + GROUP BY 1 HAVING COUNT(*) > 0 ) ); @@ -21,8 +22,8 @@ DROP TABLE ajxp_user_prefs; /* SEPARATOR */ ALTER TABLE ajxp_user_prefs_temp RENAME TO ajxp_user_prefs; /* SEPARATOR */ -ALTER TABLE ajxp_roles ADD COLUMN owner_user_id text DEFAULT NULL +ALTER TABLE ajxp_roles ADD COLUMN owner_user_id text DEFAULT NULL; /* SEPARATOR */ CREATE UNIQUE INDEX owner_role ON ajxp_roles(`role_id`, `owner_user_id`); /* SEPARATOR */ -UPDATE ajxp_version SET db_build=68; \ No newline at end of file +UPDATE ajxp_version SET db_build=68;