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

TOPIC:

Change ID primary key name 07 Feb 2012 21:09 #1194

  • M4d3L
  • M4d3L's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 7
is it possible to be able to change the name of the incremental field (ID)?

for some project, I have to integrate an admin to an already done database. and sometime, bad developper give some weird name to the incremented field and most of time we cant refactor the database for X raison.

So it will be nice to be able to choose the name to give to that field.

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

Change ID primary key name 13 Jun 2012 16:13 #2556

It is not possible to change name of ID field in the database.
73,
Miro

Cook saves your time and make your life easier.

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

Change ID primary key name 15 Jun 2012 05:01 #2565

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It will be possible in future.
I am currently working on this.

V2.0 will maybe handle this. (not sure yet, but the structure is almost ready)
Coding is now a piece of cake

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

Re: Change ID primary key name 25 Jul 2012 12:51 #2883

Great!! When version 2.0 is available?

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

Re: Change ID primary key name 25 Jul 2012 19:57 #2893

And too... If it is posible, allow column field name in capital letters, for example "ArtistName", cook, change to "artistname" automatically. I'm trying to make a proyect in cook, and connect this to external Db using the identical fields and properties to tables.

It is possible? I can't rename my table fields, is a project in production. But when I make a copy of individual table and rename fields to make a test, the cook component work fine! Only I need to wait to Cook allow a rename id field, and capital letters in all fields.

Thanks, and I hope :whistle:

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

Re: Change ID primary key name 29 Jul 2012 09:40 #2922

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
I thought you can change the field name to include capitals after it is saved for the first time
as for the ArtistName im sure in the the past i have done it this way

- create field name
- save the field
- cook changes it to lowercase
- edit the field name
- adjust field name using upper case where needed
- save the field again
The following user(s) said Thank You: ipagan

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

Last edit: by BTB300.

Re: Change ID primary key name 04 Aug 2012 07:13 #2977

Thanks!!!! I hope the j-cook update to rename primary key Id now.

:)

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

  • Page:
  • 1
Time to create page: 0.069 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started