![]() |
|
sfPropelSqlDiffPlugin - 0.1.4generate diff.sql file, which contains difference beetween schema.yml and current database structure |
|
![]() |
48
users
Sign-in
to change your status |
sfPropelSqlDiff plugin generate diff.sql file, which contains difference beetween schema.yml and current database structure. |
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.
| Name | Status | |
|---|---|---|
|
|
lead | ur.kb <<ta>> gresms |
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.
| Version | License | API | Released |
|---|---|---|---|
| 0.3.1beta | LGPL | 0.3.1beta | 25/02/2011 |
| Version | License | API | Released |
|---|---|---|---|
| 0.3.1beta | LGPL | 0.3.1beta | 25/02/2011 |
| 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 |
| 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 |
| 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 |
sfPropelSqlDiff plugin generate diff.sql file, which contains difference beetween schema.yml and current database structure.
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:
creation and deletion of tables/fields/indexes/foreign keys
changing fields/indexes/foreign keys
Plugin is in beta state now. It is tested only for mysql. You can discuss it at thread in symfony forum
symfony plugin-install http://plugins.symfony-project.com/sfPropelSqlDiffPlugin
symfony cc
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
