Jump to content

Adding fields via mySQL and not via CMS


a-ok
 Share

Recommended Posts

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

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...