Levi Hackwith
Levi Hackwith

Reputation: 9332

Preventing Doctrine from Dropping / Recreating Database When using build --all

The problem:

doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'opnsrce'@'173.236.128.0/255.255.128.0' to database 'dev'. Failing Query: "DROP DATABASE dev" doctrine Creating "all" environment "doctrine" database

doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'opnsrce'@'173.236.128.0/255.255.128.0' to database 'dev'. Failing Query: "CREATE DATABASE dev"

The Question: How do I run build-all while simultaneously telling doctrine to not drop / create the database (it already exists)?

Update 1:

What further information can I provide in order to help the SO community answer this question?

Upvotes: 0

Views: 569

Answers (1)

Jeremy Kauffman
Jeremy Kauffman

Reputation: 10413

If you just want all the classes to be rebuilt but the db not to be dropped and recreated, try running:

symfony doctrine:build --all-classes

The build task has a lot of different options and flags. Try running:

symfony help doctrine:build

to see all of your options.

Upvotes: 1

Related Questions