You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
j db1612d8ea :bug: correctly parsing env vars for post_type and metakey hace 4 años
migrations :tada: first commit | more generic version hace 5 años
models :tada: first commit | more generic version hace 5 años
.env.sample :tada: first commit | more generic version hace 5 años
.gitignore :tada: first commit | more generic version hace 5 años
README.md :tada: first commit | more generic version hace 5 años
docker-compose.yml :tada: first commit | more generic version hace 5 años
dump.sample.sql :tada: first commit | more generic version hace 5 años
helpers.js :bug: correctly parsing env vars for post_type and metakey hace 4 años
index.js :tada: first commit | more generic version hace 5 años
package-lock.json :tada: first commit | more generic version hace 5 años
package.json :tada: first commit | more generic version hace 5 años

README.md

moving.co CLI

A CLI to move sql databases around.

:white_check_mark: Prerequisites

You will need…

Node.js 14+

:package: Installation

  1. Please enter your dB details in the .env.sample file, and rename to .env
  2. Add entries for the POST_TYPES you’re interested in
  3. Add any custom METAKEYS associated with your posts
  4. Start up the seed container using docker-compose up -d
  5. Load your dirty database docker exec -i scratch-mariadb mysql -uroot -proot --database=unclean < ./dump.sql

:electric_plug: Run

  1. Run npm get to grab data-models from your existing database
  2. Run npm run migrate to create tables from data-models in a temproary sqlite database

:robot: Deployment

TBD

:pill: Tests & Code Quality

TBD

:heart: Built With