phalcon / phalcon/migrations

[NFR] Generate new migration only on changed structure

Open
#16 0 comments 2 reactions 1 assignee View on GitHub

@Jeckerson is already working on this.

Since Jan 28, 2020.

NFR
Dominant language
PHP
Stars
28
Forks
25
Avg merge
9h 39m
Merged PRs (30d)
2

Description

It would be nice if there is an option to skip the generation when de database structure isn't changed.
For example when there is a migration (v1.0.0) and nothing has changed running the generate will result in something like:

vendor/bin/phalcon-migrations migration generate
Database hasn't changed. Skipped generation. Run migration generate --force to force generating a new version.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.