# [Phinx](https://phinx.org): Simple PHP Database Migrations
[![Build Status](https://travis-ci.org/robmorgan/phinx.png?branch=0.5.x-dev)](https://travis-ci.org/robmorgan/phinx)
[![Build status](https://ci.appveyor.com/api/projects/status/9vag4892hfq6effr)](https://ci.appveyor.com/project/robmorgan/phinx)
[![Code Coverage](https://scrutinizer-ci.com/g/robmorgan/phinx/badges/coverage.png?s=9776e35b967f5adb0f4958bd72b617e0a9519f7d)](https://scrutinizer-ci.com/g/robmorgan/phinx/)
[![Latest Stable Version](https://poser.pugx.org/robmorgan/phinx/version.png)](https://packagist.org/packages/robmorgan/phinx)
[![Total Downloads](https://poser.pugx.org/robmorgan/phinx/d/total.png)](https://packagist.org/packages/robmorgan/phinx)
Phinx makes it ridiculously easy to manage the database migrations for your PHP app. In less than 5 minutes you can install Phinx and create your first database migration. Phinx is just about migrations without all the bloat of a database ORM system or framework.
**Check out http://docs.phinx.org for the comprehensive documentation.**
![phinxterm](https://cloud.githubusercontent.com/assets/178939/3887559/e6b5e524-21f2-11e4-8256-0ba6040725fc.gif)
### Features
* Write database migrations using database agnostic PHP code.
* Migrate up and down.
* Migrate on deployment.
* Seed data after database creation.
* Get going in less than 5 minutes.
* Stop worrying about the state of your database.
* Take advantage of SCM features such as branching.
* Integrate with any app.
### Supported Adapters
Phinx natively supports the following database adapters:
* MySQL
* PostgreSQL
* SQLite
* Microsoft SQL Server
## Install & Run
### Composer
The fastest way to install Phinx is to add it to your project using Composer (http://getcomposer.org/).
1. Install Composer:
```
curl -sS https://getcomposer.org/installer | php
```
1. Require Phinx as a dependency using Composer:
```
php composer.phar require robmorgan/phinx
```
1. Install Phinx:
```
php composer.phar install
```
1. Execute Phinx:
```
php vendor/bin/phinx
```
### As a Phar
You can also use the Box application to build Phinx as a Phar archive (https://box-project.github.io/box2/).
1. Clone Phinx from GitHub
```
git clone git://github.com/robmorgan/phinx.git
cd phinx
```
1. Install Composer
```
curl -s https://getcomposer.org/installer | php
```
1. Install the Phinx dependencies
```
php composer.phar install
```
1. Install Box:
```
curl -LSs https://box-project.github.io/box2/installer.php | php
```
1. Create a Phar archive
```
php box.phar build
```
## Documentation
Check out http://docs.phinx.org for the comprehensive documentation.
## Contributing
Please read the [CONTRIBUTING](CONTRIBUTING.md) document.
## News & Updates
Follow Rob (@\_rjm\_) on Twitter to stay up to date (http://twitter.com/_rjm_)
## Misc
### Version History
**0.5.3** (Monday, 7th March 2016)
* Critical fix: allow `migration_name` to be `null`. Introduced in 0.5.2
* Status command now shows migration start and end times
* Bug fix for rolling back by date
* Documentation improvements
**0.5.2** (Tuesday, 1st March 2016)
* Status command now includes missing migration names
* Added support for Postgres table comments
* Added `insert()` for the TablePrefixAdapter
* Fixed the migration verbosity flag
* Added MySQL 5.7 JSON support
* Added support for MySQL `FULLTEXT` indexes
* Postgres now supports `BIGSERIAL` for primary keys
* Added support for MySQL index limits
* Initial support for multiple migration paths (using glob)
* Documentation improvements
* Unit test enhancements
**0.5.1** (Wednesday, 30th December 2015)
* **PHP 5.3 is no longer supported!**
* Add support for Symfony 3.0 components
* Ensure that the `status` command returns the correct exit code
* Allow `$version` to be passed into templates
* Support for MySQL `YEAR` column type
* Multiple documentation updates and corrections
**0.5.0** (Monday, 30th November 2015)
* Support for seeding data after database creation
* The migration and seed directories are now nested under `db` by default
* Moved `Phinx\Migration\Util` to `Phinx\Util\Util`
* All `insert()` methods now have a slightly different method signature
* Fixed key/insert operations for MySQL
* Introduced `AdapterInterface::hasIndexByName()`
* Improved `dropForeignKey()` handling for SQLite
* Added support for the MySQL `binary` datatype. BLOBs now use the proper type.
* The status command shows a count of pending migrations in JSON output
* We are now testing against PHP 7
**0.4.6** (Friday, 11th September 2015)
* You can now set custom migration templates in the config files
* Support for MySQL unsigned booleans
* Support for Postgres `smallint` column types
* Support for `AFTER` when using `changeColumn()` with MySQL
* Support for `precision` and `scale` when using the Postgres `decimal` type
* Fixed a bug where duplicate migration names could be used
* The schema table is now created with a primary key
* Fixed issues when using the MySQL `STRICT_TRANS_TABLE` mode
* Improved the docs in the default migration template
* Made Box PHAR ignore the bundled `phinx.yml` configuration file
* Updated Box installer URL
* Internal code improvements
* Documentation improvements
**0.4.5** (Tuesday, 1st September 2015)
* The rollback command now supports a date argument
* Fixed DBLIB DSN strings for Microsoft SQL Server
* Postgres support for `jsonb` columns added
* The `addTimestamps()` helper method no longer updates the `created_at` column
* Fix for Postgres named foreign keys
* Unit test improvements (including strict warnings)
* Documentation improvements
**0.4.4** (Sunday, 14th June 2015)
* The `change` method is now the default
* Added a generic adapter insert method. Warning: The implementation will change!
* Updated Symfony depdencies to ~2.7
* Support for MySQL `BLOB` column types
* SQLite migration fixes
* Documentation improvements
**0.4.3** (Monday, 23rd Feburary 2015)
* Postgres bugfix for modifying column DEFAULTs
* MySQL bugfix for setting column INTEGER lengths
* SQLite bugfix for creating multiple indexes with similar names
**0.4.2.1** (Saturday, 7th Feburary 2015)
* Proper release, updated docs
**0.4.2** (Friday, 6th Feburary 2015)
* Postgres support for `json` columns added
* MySQL support for `enum` and `set` columns added
* Allow setting `identity` option on columns
* Template configuration and generation made more extensible
* Created a base class for `ProxyAdapter` and `TablePrefixAdapter`
* Switched to PSR-4
**0.4.1** (Tuesday, 23rd December 2014)
* MySQL support for reserved words in hasColumn and getColumns methods
* Better MySQL Adapter test coverage and performance fixes
* Updated dependent Symfony components to 2.6.x
**0.4.0** (Sunday, 14th December 2014)
* Adding initial support for running Phinx via a web interface
* Support for table prefixes and suffixes
* Bugfix for foreign key options
* MySQL keeps column default when renaming columns
* MySQL support for tiny/medium and longtext columns added
* Changed SQL Server binary columns to varbinary
* MySQL supports table comments
* Postgres supports column comments
* Empty strings are now supported for default column values
* Booleans are now supported for default column values
* Fixed SQL Server default constraint error when changing column types
* Migration timestamps are now created in UTC
* Locked Symfony Components to 2.5.0
* Support for custom migration base classes
* Cleaned up source code formatting
* Migrations have access to the output stream
* Support for custom PDO connections when a PHP config
* Added support for Postgres UUID type
* Fixed issue with Postgres dropping foreign keys
**0.3.8** (Sunday, 5th October 2014)
* Added new CHAR & Geospatial column types
* Added MySQL unix socket support
* Added precision & scale support for SQL Server
* Several bug fix
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码—Catfish(鲶鱼) CMS 开源PHP内容管理系统.zip
共710个文件
php:346个
html:78个
js:54个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 58 浏览量
2022-11-22
03:34:25
上传
评论
收藏 8.74MB ZIP 举报
温馨提示
PHP实例开发源码—Catfish(鲶鱼) CMS 开源PHP内容管理系统.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—Catfish(鲶鱼) CMS 开源PHP内容管理系统.zip (710个子文件)
test.bmp 0B
bootstrap.min.css 111KB
jquery-ui.min.css 19KB
umeditor.css 18KB
umeditor.min.css 14KB
jquery-confirm.css 13KB
bootstrap-datetimepicker.min.css 12KB
mathquill.css 9KB
image.css 3KB
video.css 3KB
emotion.css 2KB
uploadify.css 1KB
formula.css 869B
default.css 74B
phpunit.xml.dist 830B
phpunit.xml.dist 773B
Migration.template.php.dist 756B
Seed.template.php.dist 326B
Symbola.eot 869KB
stixgeneral-webfont.eot 451KB
stixgeneralbol-webfont.eot 239KB
stixgeneralbolita-webfont.eot 210KB
stixgeneralitalic-webfont.eot 204KB
glyphicons-halflings-regular.eot 20KB
hiddeninput.exe 9KB
test.gif 233KB
wface.gif 49KB
jxface2.gif 40KB
yface.gif 28KB
bface.gif 27KB
icons.gif 20KB
jiazai.gif 19KB
tface.gif 19KB
fface.gif 18KB
cface.gif 8KB
zhixing.gif 4KB
zhixing_bai.gif 2KB
videologo.gif 2KB
ok.gif 866B
arrow.gif 185B
0.gif 43B
spacer.gif 43B
.gitignore 43B
.gitignore 42B
.gitignore 39B
.gitignore 34B
.gitignore 34B
.gitignore 29B
.gitignore 26B
.gitignore 16B
.gitignore 14B
.gitignore 13B
.gitignore 13B
.gitignore 13B
.gitignore 7B
.htaccess 210B
.htaccess 13B
.htaccess 13B
sidebar.html 16KB
index.html 10KB
write.html 10KB
rewrite.html 10KB
article.html 9KB
article.html 9KB
index.html 9KB
pagesettings.html 8KB
web.html 8KB
newpage.html 7KB
articles.html 7KB
formula.html 7KB
editpage.html 7KB
map.html 6KB
step1.html 5KB
header.html 5KB
modifymenu.html 5KB
step2.html 5KB
addmenu.html 5KB
header.html 5KB
index.html 5KB
header.html 5KB
category.html 4KB
category.html 4KB
recycle.html 4KB
header.html 4KB
comments.html 4KB
index.html 4KB
allpage.html 4KB
links.html 4KB
slideshow.html 4KB
managemenu.html 4KB
modifylink.html 3KB
index.html 3KB
general.html 3KB
personal.html 3KB
articlePage.html 3KB
articlePage.html 3KB
index.html 3KB
addlinks.html 3KB
manageuser.html 3KB
register.html 3KB
共 710 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
毕业_设计
- 粉丝: 1936
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Java实现大数据平台的知识图谱存储访问系统
- python+jsp基于Django的小球射击小游戏.zip
- Python实现CS-LSTM布谷鸟算法优化长短期记忆神经网络时间序列预测(完整源码和数据)
- html小游戏-消灭格子(超简单实现).rar
- wpf 实现视频播放器,MediaElement
- openEuler-20.03-LTS-SP4-netinst-x86-64-dvd.iso
- 基于spark的外卖大数据平台分析系统
- 基于Apache POI导出大数据量(百万级)Excel的实现
- Unity Easy Color Picker 2.2.1
- 保山市5县(市)区-2023年高德百度地图注记点2000坐标
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功