Commit graph

234 commits

Author SHA1 Message Date
William DURAND 0347aaccb8 Reverted commit 6785589a0c according to the previous revert 2011-07-30 19:18:00 +02:00
Maxime AILLOUD cbf4fe890c Update of the PHPDoc header of the TableDropCommand class 2011-07-30 19:04:56 +02:00
Maxime AILLOUD ae65d873a6 Modification of the generation of the buildtime file to use charset in Propel 2011-07-30 19:04:56 +02:00
Maxime AILLOUD 6785589a0c Using the propel connection through the dependency injector, and dealing with foreign key when dropping table 2011-07-30 19:04:55 +02:00
Maxime AILLOUD f74c659f24 Bug corrected when the database has no table in the command table:drop 2011-07-30 19:04:55 +02:00
Maxime AILLOUD 5a1f644a6a Namespace corrected for the exception class in the command: propel:database:drop, propel:database:create and propel:table:drop 2011-07-30 19:04:55 +02:00
Maxime AILLOUD 38150e71c9 Added a new command: propel:table:drop which allow to drop one, several or all table for a given connection by using the Symfony2 console 2011-07-30 19:04:55 +02:00
Maxime AILLOUD 49abcb9161 Insert charset parameter in the buildtime file in ordre to deal with UTF8 data 2011-07-30 19:04:55 +02:00
Maxime AILLOUD 102e688f5b Add the ability to the LoadFixturesCommand to load SQL files 2011-07-30 19:03:57 +02:00
osek666 d5ce54b7de Hardcoded -2 fails when namespace is longer. E.g. namespace="Sensio\Bundle\HelloBundle\Model" 2011-07-05 02:46:23 -07:00
William DURAND e27dc9cbd5 Added secure tests for the drop database command 2011-06-22 17:31:57 +02:00
William DURAND 096faad24a Added shortcut to use dialog helper 2011-06-22 17:27:28 +02:00
William DURAND 35a56e8ca8 Improved commands 2011-06-22 16:47:19 +02:00
William DURAND 4f1cc4ce05 Fixed PhingCommand + added a writeSection() method 2011-06-22 16:46:44 +02:00
William DURAND 3f49f58e8c Added a new command: propel:database:create which allow to create a database for a given connection by using the Symfony2 console 2011-06-22 15:32:13 +02:00
William DURAND 294e4d72bc Fixed database:drop command 2011-06-22 14:17:37 +02:00
William DURAND 28cbe61feb Added a new command to drop a database 2011-06-22 14:11:24 +02:00
William DURAND 833441e428 Merge branch 'master' of git://github.com/willdurand/PropelBundle 2011-06-22 13:48:49 +02:00
William DURAND c7f5ed7e2b Added a method to get the dbname in Command classes 2011-06-22 13:48:43 +02:00
William DURAND c9cfae539d Fixed PhingCommand class to fit last Symfony2 changes. Fixed #17 2011-06-22 13:46:14 +02:00
William DURAND 4c07e38ce3 Added a way to detect errors during Phing execution 2011-06-20 09:41:00 +02:00
fzaninotto 17d994bcd7 Added support for the debug option in build-model and build-sql commands 2011-05-30 17:03:08 +02:00
William DURAND 465fad8872 Merge branch maxailloud 2011-05-25 00:04:27 +02:00
William DURAND 4459a9ef43 Fixed typo 2011-05-24 23:53:55 +02:00
William DURAND 5dd7dd9be4 Added charset at build time 2011-05-24 23:52:43 +02:00
Maxime AILLOUD 35af040979 Add the ability to the LoadFixturesCommand to load SQL files 2011-05-24 23:36:49 +02:00
Maxime AILLOUD 835e0f517f No need of "--" when adding an option in a command, automatically add 2011-05-24 23:31:55 +02:00
Maxime AILLOUD ad23a1f7d7 Avoid php notice if the database configuration was not provided 2011-05-18 12:43:44 +02:00
William DURAND 580e0e3c89 Merge remote-tracking branch 'origin/master' into form_beta1 2011-05-17 00:24:39 +02:00
William DURAND bd64c555aa Refactored PhingCommand to check Propel database configuration before to launch a command 2011-05-17 00:21:20 +02:00
William DURAND aa7eb61088 Fixed PhingCommand 2011-05-05 19:17:12 +02:00
William DURAND 26d106a2ef Added output message 2011-04-19 17:39:10 +02:00
William DURAND 68ae0ef9d7 Fixed license 2011-04-19 17:38:46 +02:00
William DURAND 2cd58d70e1 Fixed output for command load-fixtures 2011-04-19 14:34:02 +02:00
William DURAND 7fbd755f05 Changed getConnection return to get the name of the connection 2011-04-19 14:32:38 +02:00
William DURAND 5576005b6d Refactored command: status 2011-04-19 14:23:33 +02:00
William DURAND 047d83f33e Minor changes for commands: generate-diff and migrate 2011-04-19 14:23:17 +02:00
William DURAND 9aca0bfaa8 Added new command: load-fixtures 2011-04-19 14:18:42 +02:00
William DURAND 6942b6982c Refactored insert-sql command 2011-04-19 14:18:07 +02:00
William DURAND e181e2d995 Minor changes on graphviz command 2011-04-19 14:16:28 +02:00
William DURAND 143072ec87 Fixed licence 2011-04-19 14:16:13 +02:00
William DURAND c9be0512b1 Fixed output for command: build-sql 2011-04-19 14:14:20 +02:00
William DURAND d4c6d0a586 Fixed output for command: build-model 2011-04-19 14:13:08 +02:00
William DURAND 9c810c2e03 Refactored data-sql command 2011-04-19 14:11:34 +02:00
William DURAND f5b580e6ad Refactored commands, added a new method in PhingCommand to handle '--connection' option 2011-04-19 14:03:52 +02:00
William DURAND d4c541c120 Fixed data-dump command 2011-04-19 13:59:19 +02:00
William DURAND dd8c42df38 Added option 'connection' to fix the build command 2011-04-19 13:57:53 +02:00
William DURAND b041a9973b Added a new config parameter (build_properties) to add build properties in config.yml 2011-04-18 22:51:27 +02:00
William DURAND 580f7ae28a Refactored command outputs 2011-04-18 21:40:16 +02:00
William DURAND 69c14b871c Added a new configuration file: app/config/propel.ini which is a build.properties file (http://www.propelorm.org/wiki/Documentation/1.6/BuildConfiguration) 2011-04-17 12:13:36 +02:00
William DURAND ed1d9ad267 Improved some commands 2011-04-13 22:27:07 +02:00
William DURAND da462aa337 Added output message to the 'build-model' command 2011-04-13 17:01:55 +02:00
William DURAND 7168326359 Fixed output message in 'insert-sql' command 2011-04-07 10:54:24 +02:00
William DURAND 03effb8a47 Improved 'insert-sql' command 2011-04-06 15:05:32 +02:00
William DURAND a20743d3b9 Phing output depends of %kernel.debug% 2011-04-06 15:00:40 +02:00
Thomas 5cacef0132 check if a namespace or package are set before creating model 2011-04-04 19:40:04 +02:00
Thomas 3ca1987727 Fix command namespace 2011-04-04 19:38:34 +02:00
William DURAND 98356cb3b4 Fixed help for commands 2011-03-26 18:30:43 +01:00
William DURAND 4a6088b334 Added new command: 'data-sql' that generates SQL from dumped data 2011-03-26 18:20:27 +01:00
William DURAND 373623219f Added new command to generate a Graphviz file of your project 2011-03-26 12:46:01 +01:00
William DURAND bcd3c9d41c Minor change in PhingCommand 2011-03-26 12:37:46 +01:00
William DURAND 774ad87f52 Minor change in BuildSql 2011-03-26 12:35:06 +01:00
William DURAND ab34c67425 Fixed 'data-dump' command output 2011-03-26 12:34:17 +01:00
William DURAND ae53bc81bc Fixed 'reverse' command output 2011-03-26 12:32:27 +01:00
William DURAND e4f086d4ca Added 'insert-sql' option in BuildCommand 2011-03-26 12:31:57 +01:00
William DURAND 95bfaf002f Put the generated file in app/propel (ReverseCommand) 2011-03-25 18:58:42 +01:00
William DURAND 4a9ccee871 Added 'data-dump' command 2011-03-25 18:44:32 +01:00
William DURAND db27ed0d45 Added tmpDir as an attribute 2011-03-25 18:44:13 +01:00
William DURAND 89ae394bc4 Added 'reverse' command to generate XML schema from an existing database 2011-03-25 17:33:12 +01:00
William DURAND 4d98e5101f Added getters 2011-03-25 16:24:34 +01:00
William DURAND d7789af52e Use array access for the PropelConfiguration object 2011-03-25 16:21:31 +01:00
William DURAND 5b5feecaf5 Changed namespace to Propel\PropelBundle 2011-02-14 22:31:28 +01:00
William DURAND bd2eb417cf Added a new command : propel:insert-sql 2011-02-02 19:47:50 +01:00
William DURAND d49820cf94 Refactoring of the 'propel:migration:migrate' command 2011-02-02 19:46:57 +01:00
William DURAND e433716413 Added new command : propel:migration:status 2011-02-02 02:34:45 +01:00
William DURAND 2da085cff9 Renamed migrations command classes
Migrations commands are now :

    > php app/console propel:migration:generate-diff

    > php app/console propel:migration:migrate
2011-02-02 02:34:14 +01:00
William DURAND fd5b36ac07 Added a new command : propel:migrate 2011-02-02 02:06:58 +01:00
William DURAND d4d981a25c Added a new command : propel:generate-diff 2011-02-02 02:06:38 +01:00
William DURAND fcaec28f25 Fixed imports + updated help 2011-02-02 02:05:36 +01:00
William DURAND dacf1ed5e1 Fixed help 2011-02-02 02:04:34 +01:00
William DURAND 6ba3d7c1de Fixed typo 2011-02-02 02:03:35 +01:00
William DURAND a6dc926249 Cleaned PhingCommand class + added new method to create a 'buildtime-conf.xml' file. 2011-02-02 02:02:45 +01:00
William DURAND c95eddec25 Fix error with InputOption in BuildCommand definition 2011-01-21 19:36:24 +01:00
Fabien Potencier d2b2a18237 added files 2010-10-28 14:41:03 +02:00