mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[GH-ISSUE #124] orm:schema-tool:create only creates domain_admins #95
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @petershaw on GitHub (Jan 20, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/124
Hi,
i run ./bin/doctrine2-cli.php orm:schema-tool:create, but only one table is created.
The Webinterfaice failes with:
I am using debian, with php PHP 5.4.36-0+deb7u3
Validate seems to be ok:
But this is my schema:
How to install necessary tables?
@ghost commented on GitHub (Jan 20, 2015):
yah, i have the same problem :/
@petershaw commented on GitHub (Jan 20, 2015):
Thank you very much.
@barryo commented on GitHub (Jan 20, 2015):
😄
@feaber commented on GitHub (Feb 1, 2015):
I still have same error.
Does this fix
6bef0bbaecwork for You?@feaber commented on GitHub (Feb 1, 2015):
Ok, so the database have to be named 'vimbadmin'.
If You use other db name, You will end up with error described by petershaw.
Not sure but still looks like issue here.
@barryo commented on GitHub (Feb 2, 2015):
It probably didn't until this fix. Reopening to allow for differently named databases when I have a chance.
@barryo commented on GitHub (Feb 2, 2015):
Comment added to installation instructions also.
@eXistenZNL commented on GitHub (Apr 30, 2015):
The problem is that every Doctrine schema XML has schema="vimbadmin" in the entity element.
A quick workaround is:
This removes the schema from Doctrine, which gets it working again. The SQL changes can be inspected by adding --dump-sql at the end of the doctrine command like so:
This is also the proper long term fix as far as I can see it, the Doctrine XML's should not be locked to a specific database. Although I am not sure if it's a Doctrine requirement, I am no Doctrine superhero.
Make sure you drop any existing table before re-running the Doctrine DB setup commando, I find it easier to just drop and create the specified DB again from the MySQL / MariaDB console.
@barryo Maybe this can be added to the installation docs for the time being.
@laapsaap commented on GitHub (May 4, 2015):
Seriously, in the 15 years that I have worked with PHP; this is the first time I seen a bug where you cannot change the database name. Is this what we get for adding so much more complexity in the frameworks ? Anyways this bug is really annoying because you just dont expect it. But fix above worked ^^ Thanks
@barryo commented on GitHub (May 5, 2015):
@laapsaap - nothing to do with the framework I imagine but rather a particular version of the tool we used to create the schema (Skipper). I haven't confirmed this but I suspect it is this.
@liayn commented on GitHub (May 27, 2015):
@eXistenZNL Thanks a lot, this resolved #138.
@eXistenZNL commented on GitHub (May 28, 2015):
@liayn You're welcome :)
@mfechner commented on GitHub (May 28, 2015):
Thanks for this, I added it to my fork that includes also some other modifications I require.
https://github.com/idefix6/ViMbAdmin
@klonos commented on GitHub (Oct 21, 2015):
Sorry to resurrect this, but is this still an issue? Asking because this issue is linked from the installation documentation -> DB setup.