sequelize / sequelize/sequelize

Schema file to show state of migrations

Open
#802 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependency
Dominant language
TypeScript
Stars
30.4k
Forks
4.3k
Avg merge
1d 6h
Merged PRs (30d)
68

Description

It would be nice to have an analog to Rails's db/schema.rb - a single file that describes the database schema, that is updated whenever a migration is run. Then, I wouldn't have to define the database schema for my model in two different places (the migration file and the sequelize.define() call in my app).

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.

Research direction

Begin by tracing how migrations are executed and how sequelize.define() currently describes models. Compare the desired single schema file with Rails's db/schema.rb; done means migrations update that file so the model schema no longer has to be maintained in two places.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.