Welcome, Guest
Username: Password: Remember me

TOPIC: Editing Column Names

Editing Column Names 10 May 2013 10:19 #7158

  • paulkish
  • paulkish's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
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?
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
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
The administrator has disabled public write access.

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

  • paulkish
  • paulkish's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
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
Last Edit: 10 May 2013 14:34 by paulkish.
The administrator has disabled public write access.
Time to create page: 0.093 seconds

Get Started