New column in existing table [SOLVED]

A place for users and developers of the Xataface to discuss and receive support.

New column in existing table [SOLVED]

Postby cantlep » Wed Mar 17, 2010 7:44 am

Hiya all,

I've added a new column to an existing table and now, when I go to index.php?-table=tablename I get this error

Code: Select all
Error: Could not load current record: Unknown column tablename.columnname


Is it not possible to add new columns to existing tables once Xataface "knows" about it?

Cheers

Paul
Last edited by cantlep on Thu Mar 18, 2010 3:33 am, edited 1 time in total.
cantlep
 
Posts: 172
Joined: Fri Mar 05, 2010 2:14 am

Re: New column in existing table

Postby shannah » Wed Mar 17, 2010 8:03 am

I have noticed this on some installs but don't know why it is happening
the problem
is xataface uses views to cache custom queries and in some installs the views don't auto update when the underlying tables are changed.

You can fix this by deleting al views named dataface__view_xxx
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: New column in existing table

Postby cantlep » Wed Mar 17, 2010 8:09 am

Hiya Steve,

Cheers for the uber quick reply. yeah, that sorted it. In case it helps, my entry for views in phpMyAdmin looked like this

Code: Select all
Table                                                                                       Action  Records 1  Type  Collation  Size  Overhead
dataface__view_Customers_e513cea1f5bc17f6e064b39d30ea631b            ~02 View --- -  -


Although I notice it's re-created it straight away with the same details so I guess that doesn't help you figure out why it happens in the first place :-(

Thanks for your help as always.

Cheers

Paul
cantlep
 
Posts: 172
Joined: Fri Mar 05, 2010 2:14 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 44 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved