Running migrations, on Azure database

Open
#1,448 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, javascript, mysql, node.js
Domain
cli, cloud, database

Research direction

Start with config\config.json and the npx sequelize-cli db:migrate output, paying attention to the selected development environment and the Azure MySQL connection. Compare the reported schema state with the migration files and determine why the CLI considers the database up to date. Done means the intended migrations run against the Azure database and the generated tables are visible.

Written by the indexing model from the issue text.

Description

What you are doing?

I need to run the migrations to create the tables in my database, currently my database is on an azure MySQL server, how do I run the migrations from my local host?

What do you expect to happen?

I hope I can see the generated table when I run the command
npx sequelize-cli db:migrate

What is actually happening?

npx sequelize-cli db:migrate

Sequelize CLI [Node: 18.18.0, CLI: 6.6.2, ORM: 6.35.2]

Loaded configuration file "config\config.json".
Using environment "development".
No migrations were executed, database schema was already up to date.

Dialect: mysql
__Database version: 8
__Sequelize CLI version: 6.6.2
__Sequelize version: 6.35.2

Dominant language
JavaScript
Stars
2.6k
Forks
524
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sequelize/cli

All issues in sequelize/cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.