From 5a070425601987a5705689e701b131a5b8634489 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 6 Jul 2018 06:37:33 +0000 Subject: [PATCH] Added warning --- src/Model/Item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index 1f0d496ab8..7c4a3cbffe 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -78,6 +78,8 @@ class Item extends BaseObject 'author-id', 'author-link', 'author-name', 'author-avatar', 'owner-id', 'owner-link', 'owner-name', 'owner-avatar']; + // Never reorder or remove entries from this list. Just add new ones at the end, if needed. + // The item-activity table only stores the index and needs this array to know the matching activity. const ACTIVITIES = [ACTIVITY_LIKE, ACTIVITY_DISLIKE, ACTIVITY_ATTEND, ACTIVITY_ATTENDNO, ACTIVITY_ATTENDMAYBE]; /** -- 2.39.5