A month ago I adjusted my database schema. I added a column called ordinal.
I rebuilt my model and uploaded my changes.
Everything works fine apart from my instance of sfLucene will not rebuild.
I run
symfony lucene-rebuild frontend
But I get the error once it gets to the Model in question (others are fine):
propel exception: unknown column ORDINAL
I have tried clearing the Symfony cache but to no avail.
I feel like Lucene has cached the database schema somewhere not sure where.
Index rebuilding works fine on my local PC.
Problem solved
The
databases.ymlfile on the server had theall:setting pointed to my test server.Unfortunately, the test server is on the same box, therefore MySQL login was succeeding.
However the test database did not have the recently added fields.
The command line (i.e. the
symfony lucene-rebuildcommand) uses theall:setting in the databases.yml