V
V
Vladislav2018-06-13 16:45:10
MODX
Vladislav, 2018-06-13 16:45:10

How to pull user tables in MODX via Gitify?

I use Gitify in my project for version control. Maybe someone here knows how to get the gitify extract command to pull in user tables?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zzamzam, 2018-06-13
@vos_50

Add to .gitify in the data section:

users:
    class: modUser
    primary:
        - username
user_group_roles:
    class: modUserGroupRole
    primary:
        - id
        - name
user_attributes:
    class: modUserProfile
    primary:
        - id
membergroup_names:
    class: modUserGroup
    primary:
        - id
        - name
member_groups:
    class: modUserGroupMember
    primary:
        - id

The general meaning is that you just need to specify the name of the class (model) through which the data will be exported and imported to / from the database. In this case, we are pulling out several tables (the users themselves, their permissions, groups, etc.)
5b214feb5235d323041799.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question