meridius/yadup 问题修复 & 功能扩展

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

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

meridius/yadup

最新稳定版本:1.1.2

Composer 安装命令:

composer require meridius/yadup

包简介

Database updator for Nette/Tracy panel

README 文档

README

Database updator for Nette/Tracy panel

How to

For Nette 2.2 support please see the bottom.

  1. Use the following Composer command in your existing project to add Yadup to it:

     composer require meridius/yadup
    
  2. Register the extension by adding the following to your config.neon (1st level):

     extensions:
     	yadup: Yadup\YadupExtension
    
  3. And at last don't forget to create directory for SQL updates files. Default is %appDir%/sql as specified below.

Further configuration

You can tailor the updator to your needs by creating a new section yadup in config.neon (on the same level as extensions). Accepted parameters with their default values are following:

yadup:
	dbUpdateTable: '_db_update'
	dbConnection: '@database.default'
	definerUser: '' # definer can be changed only in queries that already have one defined
	definerHost: ''
	sqlDir: '%appDir%/sql' # directory with sql script files
	sqlExt: '.sql' # extension of sql files; with 'dot'

Notes

For updator to work it is setting its own mapping to Yadup\\*Module\\*Presenter which shouldn't affect you in any way.

Full DB update in used terminology is the one that should contain DROP DATABASE or at least DROP TABLE to prevent possible incompatibilities with consequent updates.

File naming format for SQL update files is Y-m-d_H-i-s[_full].sql

Nette 2.2 support

Because of incompatible changes in Nette/Database 2.3 the support for 2.2 version is moved to the separate Yadup 1.0 version which will receive support for at least some time.

Installation

    composer require "meridius/yadup ~1.0.0"

Further configuration

Same as above, instead of:

yadup:
	dbConnection: '@nette.database.default'

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2014-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固