a-ok Posted June 14, 2016 Share Posted June 14, 2016 I've had to add a new field to the DB via mySQL (and not via the CMS) under the table 'field_archive_text'; only issue is now I need it to appear as a field (which would then be populated by the data) in the CMS to add to a template but alas when I try to make the field it states it already exists. Is there a way to force re-check the tables from the DB and if a new one exists to add it as a field? Anyone else had a similar issue? Link to comment Share on other sites More sharing options...
adrian Posted June 14, 2016 Share Posted June 14, 2016 Adding a field via SQL is not that simple. It also needs an entry in the "fields" table. Add that and things might work. The real question is why are you adding it that way? If you need to do it programmatically, why not via the API? Tell us more and we can help more. Link to comment Share on other sites More sharing options...
a-ok Posted June 14, 2016 Author Share Posted June 14, 2016 I had to import a table from an old CMS; I just wrote a mySQL query to do it... but maybe I could've used the API? Link to comment Share on other sites More sharing options...
a-ok Posted June 14, 2016 Author Share Posted June 14, 2016 Adding a field via SQL is not that simple. It also needs an entry in the "fields" table. Add that and things might work. Yes that worked, adrian. Thanks and sorry for overlooking that section. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now