sfPropelSqlDiffPlugin
0.1.5beta
for sf 1.2 and Propel
MIT
sfPropelSqlDiff plugin generates database sql patch, which contains difference beetween schema.yml and current database structure. If you are using sfPropelOrmPlugin, please use propel migrations istead this plugin.
Developers
License
Copyright (c) 2008 Smirnov Sergey
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
0.3.1beta
|
LGPL |
0.3.1beta
|
25/02/2011 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
0.3.1beta
|
LGPL |
0.3.1beta
|
25/02/2011 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
0.3.1beta
|
LGPL |
0.3.1beta
|
25/02/2011 |
|
0.2.0beta
|
LGPL |
0.2.0beta
|
16/04/2009 |
|
0.1.6beta
|
MIT license |
0.1.0beta
|
03/01/2009 |
|
0.1.5beta
|
MIT license |
0.1.0beta
|
03/01/2009 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
0.1.4beta
|
MIT license |
0.1.0beta
|
22/04/2008 |
|
0.1.3beta
|
MIT license |
0.1.0beta
|
11/04/2008 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.1.4beta
|
MIT license |
0.1.0beta
|
22/04/2008 |
|
0.1.3beta
|
MIT license |
0.1.0beta
|
11/04/2008 |
Changelog for release 0.1.5 - 03/01/2009
Other releases
Release 0.3.1 - 25/02/2011
- new package for symfony 1.4
Release 0.2.0 - 16/04/2009
- multiple databases support
- don't create foreign keys on myisam and ndbcluster tables
- task propel:build-all-diff now runs also propel:build-filters and propel:build-forms
- ignore views when building database patch
- license change: MIT -> LGPL
Release 0.1.6 - 03/01/2009
- fixed bug in propel:build-all-diff task
Release 0.1.5 - 03/01/2009
Release 0.1.4 - 22/04/2008
Not available
Release 0.1.3 - 11/04/2008
Not available
sfPropelSqlDiffPlugin
sfPropelSqlDiff plugin generate diff.sql file, which contains difference beetween schema.yml and current database structure.
Description
It provides new symfony task - propel-build-sql-diff which will create file diff.sql with ALTER TABLE statements, whitch will make current database structure
exactly as it described schema.yml without deleting data in tables as it does propel-build-sql task.
Currently it handles:
Plugin is in beta state now. It is tested only for mysql. You can discuss it at thread in symfony forum
Usage
After making changes in schema.yml
symfony propel-build-sql-diff frontend
(first parameter is application name, second, if not ommited, environment)
Then you can find sql file at data/sql/diff.sql
To execute diff.sql
symfony propel-insert-sql-diff frontend
To run model rebuild and apply database changes to database
symfony propel-update-all frontend
Changelog
0.1.3
0.1.2
- added task propel-update-all
- fixed problem with short open tags
- fixed problem with "foreign key constraint fails" error during diff.sql execution
0.1.1
- added task propel-insert-sql-diff
- fixed php notices
- fixed problem with default values like ''