Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrating custom groups #1685

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

migrating custom groups #1685

wants to merge 2 commits into from

Conversation

ArtificialOwl
Copy link
Member

@ArtificialOwl ArtificialOwl commented Sep 10, 2024

migrate owncloud's Custom Groups to Teams

for each Custom Group (CG):

  • creating Team using CG oldest Admin as Owner
  • adding CG members to generated Team
  • leveling other Admins from CG as Admin in generated Team,
  • converting shares to CG to generated Team,
  • fixing children shares

original data

+--------------+---------------------+------+-----+---------+----------------+
| Field        | Type                | Null | Key | Default | Extra          |
+--------------+---------------------+------+-----+---------+----------------+
| group_id     | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| uri          | varchar(255)        | NO   | UNI | NULL    |                |
| display_name | varchar(64)         | NO   |     | NULL    |                |
+--------------+---------------------+------+-----+---------+----------------+

+----------+---------------------+------+-----+---------+-------+
| Field    | Type                | Null | Key | Default | Extra |
+----------+---------------------+------+-----+---------+-------+
| group_id | bigint(20) unsigned | NO   | PRI | NULL    |       |
| user_id  | varchar(64)         | NO   | PRI | NULL    |       |
| role     | int(11)             | NO   |     | 0       |       |
+----------+---------------------+------+-----+---------+-------+

Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea about owncloud and their custom groups functionality, but apart from one comment i didn't spot anything obvious ☺️

lib/Command/MigrateCustomGroups.php Outdated Show resolved Hide resolved
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look sensible now. Thanks for adding additional context to the PR description. I didn't test this, bug I guess you did 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants