0.0.41 • Published 10 months ago

@okeeffed/dmcs v0.0.41

Weekly downloads
-
License
CC-BY-NC-4.0
Repository
-
Last release
10 months ago

Data Migration/Codemods Service

DMCS is a way to help you manage running data migrations and code mods in a manner similar to how we run database migrations.

It was primarily born out of a desire for more controlled DynamoDB data migrations, but it applicable to any form of migrations (whether it be SQL database, codemods, etc).

How it works

There are a few important concepts.

  1. Projects: DMCS is multi-project, so if you want to use it for multiple things such as codemod migrations as well as DynamoDB data migrations, you can. They are separated into their own sub-folder configurations.
  2. Environments: DMCS supports multiple environments for tracking how migrations have been done. Alpha is file-based only, which comes with its own trade-offs. Effectively, once a migration is applied, it will be updated in the configuration file (defaulted to .dmcs.config.json while in beta).
  3. Migrations: Migrations are managed within .mjs files. There is a up and down function required for each file to help with managing migrations up and rollbacks to revert those changes. Migrations and rollbacks are applied in chronological or reverse-chronological order based on the timestamp applied to the file name when the migration file was created.

Given scope for a migration you want to run within a project and environment, you can run commands to do things such as creating new migration files.

Out-of-scope for initial alpha release

  • apply and revert for individual migrations. This can be added later.
  • Multiple file format support. YAML and TOML can be added later.
0.0.40

10 months ago

0.0.41

10 months ago

0.0.20

10 months ago

0.0.21

10 months ago

0.0.22

10 months ago

0.0.23

10 months ago

0.0.24

10 months ago

0.0.25

10 months ago

0.0.37

10 months ago

0.0.38

10 months ago

0.0.39

10 months ago

0.0.19

10 months ago

0.0.30

10 months ago

0.0.31

10 months ago

0.0.32

10 months ago

0.0.33

10 months ago

0.0.34

10 months ago

0.0.35

10 months ago

0.0.36

10 months ago

0.0.26

10 months ago

0.0.27

10 months ago

0.0.28

10 months ago

0.0.29

10 months ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago