Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

[Question] About the Test database #2

Open
Sydney-o9 opened this issue Jan 12, 2014 · 0 comments
Open

[Question] About the Test database #2

Sydney-o9 opened this issue Jan 12, 2014 · 0 comments

Comments

@Sydney-o9
Copy link

Nice demo, I really enjoyed it. I have a quick question about the test table that we created.

In the Backgrounds section, we make sure the database is cleared between the scenarios:

  Background:                               
    Given There is no "Product" in database 
    And There is no "Category" in database  

and then we do

php app/console behat -e test @AcmeDemoBundle

This is a bit scary so I want to make sure I understand properly. Can we run this in our production environment? meaning is this safe 100%?

What if we omit -e test, is this going to delete our prod table?

From what I understand in the database section, we created a database for each environment: symfony_prod, symfony_dev and symfony_test.

But when executing

php app/console doctrine:schema:create -e test

We are informed

ATTENTION: This operation should not be executed in a production environment.

So here is my question, what is the safest way to do this in production environment?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant