Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Update 8.0.0.sqlite #1435

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dist/php/8.0.0.sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
);
Expand All @@ -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;
UPDATE ajxp_version SET db_build=68;