定制 kilowhat/flarum-database-requirements 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kilowhat/flarum-database-requirements

最新稳定版本:1.0.0

Composer 安装命令:

composer require kilowhat/flarum-database-requirements

包简介

Reusable code to ensure the database requirements of a Flarum extension are met

README 文档

README

This is a library re-used across multiple KILOWHAT extensions to ensure the database requirements are met before an extension can be enabled.

It will not appear in the Flarum admin panel.

There is currently a single feature: ensure the JSON column type is supported by the database.

To use in an extension, create a new migration that executes before all other migrations with the following code (where vendor-name is the internal Flarum extension ID for your extension):

<?php

use Kilowhat\DatabaseRequirements\Migration;

return Migration::ensureJsonColumnSupport('vendor-name');

To work around false positives, the kilowhat.ignore-mysql-requirement key can be set to true in config.php.

After the migrations have run, the requirements will not be checked again.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2022-12-15