Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Document Export method #41

Description

@cherry-john
    > This can be done with `mysqldump`, and using the mysql delete command to remove other instances. Access tokens etc can then be deleted by truncating those tables, but this is a quick manual process.

image

Based on the schema, my take is that when migrating from one server to anohter, delete all instances except the one you want to migrate.

Next, delete all users where userInstances = null for their userid

Then, remove any assetsBarcodes without an instanceId set

Truncate:

  • auditLog
  • authTokens
  • emailSent
  • emailVerificationCodes
  • loginAttempts
  • passwordResetCodes

@cherry-john could you add the above to #21 next time you're looking at it?

Originally posted by @Jbithell in adam-rms/adam-rms#178 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions