1 Star 0 Fork 0

.何以致契阔/thinkphp 数据库迁移工具

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CreationInterface.php 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
.何以致契阔 提交于 2024-10-08 09:46 +08:00 . pd
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Phinx\Migration;
use think\console\Input as InputInterface;
use think\console\Output as OutputInterface;
/**
* Migration interface
*
* @author Richard Quadling <RQuadling@GMail.com>
*/
interface CreationInterface
{
/**
* @param \think\console\Input|null $input Input
* @param \think\console\Output|null $output Output
*/
public function __construct(?InputInterface $input = null, ?OutputInterface $output = null);
/**
* @param \think\console\Input $input Input
* @return $this
*/
public function setInput(InputInterface $input);
/**
* @param \think\console\Output $output Output
* @return $this
*/
public function setOutput(OutputInterface $output);
/**
* @return \think\console\Input
*/
public function getInput(): InputInterface;
/**
* @return \think\console\Output
*/
public function getOutput(): OutputInterface;
/**
* Get the migration template.
*
* This will be the content that Phinx will amend to generate the migration file.
*
* @return string The content of the template for Phinx to amend.
*/
public function getMigrationTemplate(): string;
/**
* Post Migration Creation.
*
* Once the migration file has been created, this method will be called, allowing any additional
* processing, specific to the template to be performed.
*
* @param string $migrationFilename The name of the newly created migration.
* @param string $className The class name.
* @param string $baseClassName The name of the base class.
* @return void
*/
public function postMigrationCreation(string $migrationFilename, string $className, string $baseClassName): void;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tlan_turing/turing-migration.git
git@gitee.com:tlan_turing/turing-migration.git
tlan_turing
turing-migration
thinkphp 数据库迁移工具
master

搜索帮助