yiisoft / yiisoft/db-migration

Suggest list of commands for Yii 3.0 migration tool.

Open
#28 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:under discussion
Dominant language
PHP
Stars
32
Forks
18
Avg merge
22h 18m
Merged PRs (30d)
2

Description

  • generate/create - Creates a new migration.
  • database/list - List all tables from database.
  • migrate/up - Upgrades the application by applying new migrations.
  • migrate/down - Downgrades the application by reverting old migrations.
  • migrate/fresh - Drops all tables and related constraints. Starts the migration from the beginning.
  • migrate/history - Displays the migration history.
  • migrate/redo - Redoes the last few migrations.

You can suggest more commands.

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

Start by reviewing the existing migration-tool command implementations for generate/create, database/list, migrate/up, and migrate/down. Define the scope of migrate/fresh from the issue: drop all tables and related constraints, then restart migrations from the beginning; the issue names no files or tests, so the relevant entry points and verification approach must first be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.