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

TOPIC:

DB primary key (id) 22 Feb 2012 15:16 #1434

Hi,

I have created an application with 7 tables, 3 of which are related.

It wasnt until I downloaded the component that I realised that I had unintentionally created an unwanted primary key field for each table. When I viewed the tables in PHPMyAdmin I noticed there was an 'id' field set by the Cook system and also my '#table#_id' field. Ideally I only want the 'id' field as the other field is not required!

However, when I create a new table I notice that sometimes a field is set to primary (has the star next to it). Am I missing/missunderstanding something?

Best regards,
Kris...

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

Re: DB primary key 23 Feb 2012 07:12 #1439

OK, so I just removed what I defined as my primary fields and used the automatically generated ones that you cant see in the table builder.

Thanks...

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

Re: DB primary key 23 Feb 2012 12:17 #1441

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
The yellow star defines the default label key. Not primary key.
Coding is now a piece of cake

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

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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started