robinncode/db_craft 问题修复 & 功能扩展

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

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

robinncode/db_craft

Composer 安装命令:

composer require robinncode/db_craft

包简介

DB Craft is a CodeIgniter4 Seeder, Migration Generator. Automatic Migration Generation: DB-Craft provides a simple command-line interface to generate migration files automatically based on the connected database. This feature allows developers to keep track of database schema changes and easily

README 文档

README

DB-Craft is a package for CodeIgniter 4 that provides convenient commands to generate migration and seeder files from a connected database.

  • Automatic Migration Generation: DB-Craft provides a simple command-line interface to generate migration files automatically based on the connected database. This feature allows developers to keep track of database schema changes and easily apply them to different environments.

  • Table-Specific Migrations: Developers can also generate migration files for specific tables, providing granular control over database changes. This flexibility allows for efficient database management and versioning.

  • Seeding Support: DB-Craft includes functionality to generate seeders, enabling developers to populate their database with initial data. This feature is especially useful for setting up sample data or populating reference tables.

Installation

You can install the DB-Craft package via Composer by running the following command:

composer require robinncode/db_craft

Dependencies

DB-Craft has the following dependencies:

  • PHP: ^7.0.* || ^8.0.*
  • CodeIgniter/Framework: ^4.0.*

Usage

DB-Craft comes with the following commands:

Generate Migration Files

To generate all migration files from the connected database, run the following command:

php spark get:migration

To generate migration files for a specific table, run the following command:

php spark get:migration table_name

Replace table_name with the name of the specific table for which you want to generate migration files.

Generate Seeder Files

To generate all seeder files from the connected database, run the following command:

php spark get:seed

To generate seeder files for a specific table with table data, run the following command:

php spark get:seed table_name

Replace table_name with the name of the specific table for which you want to generate seeder files.

License

DB-Craft is open-source software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固