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.079 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started