kreshnik/dbtruncate 问题修复 & 功能扩展

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

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

kreshnik/dbtruncate

Composer 安装命令:

composer require kreshnik/dbtruncate

包简介

A laravel command that helps truncate mysql database tables

README 文档

README

Automatically truncates all mysql tables for you. Works also with tables that use relationships, by using the FOREIGN_KEY_CHECKS system variable.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require kreshnik/dbtruncate

Laravel 5.5

"require-dev": {
	"kreshnik/dbtruncate": "dev-master"
}

Laravel 5.4

"require-dev": {
	"kreshnik/dbtruncate": "5.4.x-dev"
}

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

Kreshnik\Dbtruncate\DbtruncateServiceProvider::class

That's it! You're all set to go. Run the artisan command from the Terminal to see the new db:truncate command.

php artisan

Commands

db:truncate will prompt you to confirm the truncation process

Options

db:truncate --tables=table1,table2 In case you want to truncate specific tables. You can specify a list of tables divided with a comma.

db:truncate --exclude=table1,table2 A list of tables that will be excluded from the truncation process. The tables have to be divded with a comma.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-30