[symfony-users] Re: Using same database for two projects

2010-01-19 Thread Tom Ptacnik
I would simply copy the schema from one project to another. If I wan't
only some tables, so I would change a schema little bit... then create
database only from one project and the models generate by schema in
each project.


On 15 led, 14:40, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 Thanks for all the scenarios. If possible, please send me the solution for
 some tables as well as all tables.

 Regards

 Deepak Bhatia



 On Fri, Jan 15, 2010 at 6:54 PM, Tom Ptacnik to...@tomor.cz wrote:
  Two different projects with different tables/models? Or some tables
  will be shared? Or all tables will be shared?

  On 15 led, 10:31, DEEPAK BHATIA toreachdee...@gmail.com wrote:
   Hi,

   If we want to use the same database for the two projects in Symfony 1.1,
  how
   can we achieve that. I guess we just need to execute step1 and step 2
  below.

   =

   1. php symfony propel:build-model
   2. php symfony cc
   3. php symfony configure:database mysql://root:@localhost/rtdb2
   4. php symfony propel:build-sql
   5. mysqladmin -u root -p create rtdb2
   6. mysql -u root -p rtdb2  data/sql/lib.model.schema.sql
   7. php symfony propel:insert-sql
   8. php symfony propel:build-schema
   9. php symfony propel:build-schema --xml

  --
  You received this message because you are subscribed to the Google Groups
  symfony users group.
  To post to this group, send email to symfony-us...@googlegroups.com.
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Using same database for two projects

2010-01-15 Thread Tom Ptacnik
Two different projects with different tables/models? Or some tables
will be shared? Or all tables will be shared?


On 15 led, 10:31, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 Hi,

 If we want to use the same database for the two projects in Symfony 1.1, how
 can we achieve that. I guess we just need to execute step1 and step 2 below.

 =

 1. php symfony propel:build-model
 2. php symfony cc
 3. php symfony configure:database mysql://root:@localhost/rtdb2
 4. php symfony propel:build-sql
 5. mysqladmin -u root -p create rtdb2
 6. mysql -u root -p rtdb2  data/sql/lib.model.schema.sql
 7. php symfony propel:insert-sql
 8. php symfony propel:build-schema
 9. php symfony propel:build-schema --xml
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Using same database for two projects

2010-01-15 Thread DEEPAK BHATIA
Thanks for all the scenarios. If possible, please send me the solution for
some tables as well as all tables.

Regards

Deepak Bhatia

On Fri, Jan 15, 2010 at 6:54 PM, Tom Ptacnik to...@tomor.cz wrote:

 Two different projects with different tables/models? Or some tables
 will be shared? Or all tables will be shared?


 On 15 led, 10:31, DEEPAK BHATIA toreachdee...@gmail.com wrote:
  Hi,
 
  If we want to use the same database for the two projects in Symfony 1.1,
 how
  can we achieve that. I guess we just need to execute step1 and step 2
 below.
 
  =
 
  1. php symfony propel:build-model
  2. php symfony cc
  3. php symfony configure:database mysql://root:@localhost/rtdb2
  4. php symfony propel:build-sql
  5. mysqladmin -u root -p create rtdb2
  6. mysql -u root -p rtdb2  data/sql/lib.model.schema.sql
  7. php symfony propel:insert-sql
  8. php symfony propel:build-schema
  9. php symfony propel:build-schema --xml

 --
 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.




-- 

You received this message because you are subscribed to the Google Groups "symfony users" group.

To post to this group, send email to symfony-us...@googlegroups.com.

To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.