承接 migration/app 相关项目开发

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

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

migration/app

Composer 安装命令:

composer require migration/app

包简介

Simple Migration Application

README 文档

README

An application for MySQL that can create database tables with the help of console in simple applications.

Installion

  composer require migration/app

Create migrate.php file.

Paste the following codes into the migrate file.

#!usr/bin/php
<?php

use SimpleMigration\Application;
use SimpleMigration\Database\Connection;

require __DIR__ . '/vendor/autoload.php';

$database = require __DIR__ . '/Database/database.php';

$connection = new Connection($database);

$app = new Application($connection, $argv);
$app->run();

Edit the database.php file according to your mysql database.

<?php

return [
    'connection' => 'mysql',
    'host' => 'localhost',
    'database' => 'migration_exam',
    'user' => 'root',
    'password' => 'root',
    'port' => 3306,
];

Command descriptions

Command Description
php migrate Sends all migrations to the database.
php migrate create <migration name> Create a migration file.
php migrate down Deletes inserted databases

Screenshots

php migrate

Migrate

php migrate create

Create

php migrate down

Down

Displays a warning if the migration name is left break.

Empty

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固