Keep source view column order upgrade-safe

This commit is contained in:
Terranom674
2026-08-17 15:45:37 +02:00
parent 1d448bcdc4
commit f41f885105

View File

@@ -1,12 +1,12 @@
CREATE OR REPLACE VIEW piwigo_showcase_sources AS CREATE OR REPLACE VIEW piwigo_showcase_sources AS
SELECT SELECT
s.id AS share_id, s.id AS share_id,
s.item_type,
s.file_target AS display_name, s.file_target AS display_name,
st.id AS storage_id, st.id AS storage_id,
f.path AS source_path, f.path AS source_path,
s.accepted, s.accepted,
s.permissions s.permissions,
s.item_type AS item_type
FROM oc_share AS s FROM oc_share AS s
JOIN oc_filecache AS f ON f.fileid = s.file_source JOIN oc_filecache AS f ON f.fileid = s.file_source
JOIN oc_storages AS st ON st.numeric_id = f.storage JOIN oc_storages AS st ON st.numeric_id = f.storage