Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Editing Column Names 10 May 2013 10:19 #7158

Hi, I am trying to edit my component, I have changed the default table for the component to another table with slightly different columns, I have manged to rename all my view/models but I am still getting this error
Componentitem: :publish failed - Unknown column 'published' in 'field list'
Is there another place to edit the table details apart from models/views/table folders?

Please Log in or Create an account to join the conversation.

Re: Editing Column Names 10 May 2013 13:56 #7159

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Well, this is one of the main problem with the current migration. Cook was letting you the choice to name special fields as your please, but I seems not to be a good technic, so it is now restricted.


The publishing field must always be called 'published'. Check where is your error...

Please edit those fields, regenerate your code with 2.5.

You can also simply search/replace in your source, and must also check in SQL tables.

Actually, you should generate with 2.5 new version, and start to migrate. I will annouce all this soon.
The migration is an ultra important time to dedicate for each component you have already created or are working on.

So, during this migration, check well all your published fields are named 'published'. If not, the wizard will not work. Since 2.5, it is not anymore raising fatal.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Editing Column Names 10 May 2013 14:31 #7160

Thanks, this now makes sense, I also have noticed by default the id column is added automatically, if I want to use another field other than Id will I notice problems? I am using version 2.0

Please Log in or Create an account to join the conversation.

Last edit: by paulkish.
  • Page:
  • 1
Time to create page: 0.053 seconds
In the begining i would like to say that j-cook is absolutly fantastic tool! And the person who created it is a genius.
Czyżak (Forum)  

Get Started