承接 smartlaravel/safe-migrate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

smartlaravel/safe-migrate

Composer 安装命令:

composer require smartlaravel/safe-migrate

包简介

Adds a prompt the the migrate command when connected to any non local database.

README 文档

README

This package extends the migration and seed commands. When you run php artisan migrate and your DB_HOST setting is not set to 127.0.0.1 or localhost you will receive a safety confirmation asking you to confirm running the migration. This package was created out of an issue where I was connecting to different database connections to run commands remotely, I would forget to update the database connection and run a destructive migration on production. Luckily we backed our data up and no developers were harmed.

To install:

composer require smartlaravel/safe-migrate

To test:

You can set your hosts file to aim a random address to localhost, such as 12.23.34.45. Then set your Laravel .env file to use DB_HOST=12.23.34.45. Run php artisan migrate, php artisan migrate:fresh, etc. and you should see a prompt warning you that your database connection is not local.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固