invenso/doctrine-cleanup-migrations 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

invenso/doctrine-cleanup-migrations

最新稳定版本:1.0.0

Composer 安装命令:

composer require invenso/doctrine-cleanup-migrations

包简介

Invenso DoctrineCleanupMigrations Bundle

README 文档

README

Getting started

This package is used to clean up your migrations locally by compressing it to one file and deleting all references but the two newly created ones.

Installation

To install this package run:

composer require invenso/doctrine-cleanup-migrations

Usage

After installation run:

php bin/console invenso:cleanup:migrations

and follow the logging closely.

Pending migration check

Before deleting everything the cleanup script will check if there are still migrations pending. If that's the case you need to make sure those will be either applied or discarded before being able to proceed.

Run:

php bin/console doctrine:migrations:status

To see more information about the pending versions.

After cleanup migration

After the cleanup you'll get the option to migrate your newly cleaned migrations. The default option is "N" but if you fill out "Y" you'll have to confirm this 2-3 more times.

You can also choose to run the migrations manually:

php bin/console doctrine:migrations:migrate

统计信息

  • 总下载量: 1.98k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-01-11