migration

command
v0.0.0-...-5f71cfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Migration from Store v2 to Store v2

Previously Account.Id was an Auth0 user id. Conversion moves user id to Account.CreatedBy and generates a new Account.Id using xid. It also adds a User with id = old Account.Id with a role Admin.

To start a conversion simply run the command below providing your current Oldsecway Management datadir (where store.json file is located) and a new data directory location (where a converted store.js will be stored):

    ./migration --oldDir /var/oldsecway/datadir --newDir /var/oldsecway/newdatadir/  

Afterwards you can run the Management service providing /var/oldsecway/newdatadir/ as a datadir.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL