Part of the EllisLab Network
   
 
Scaffolding issue
Posted: 01 November 2006 02:16 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  6
Joined  10-31-2006

Hi!

I have a problem when I try to use scaffolding in one of my tables: it doesn’t appear any field to edit, and none of them has default value, so I have an error when I try to insert.

The table is this:

group_id INTEGER NOT NULL
user_id   INTEGER NOT NULL

and both fields are in the primary key (I imagine that that’s the reason they don’t appear).

Is this a bug or a feature???

Thank you.

 Signature 

The cat ate my source code.

Profile
 
 
Posted: 01 November 2006 06:33 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  481
Joined  03-08-2006

A table should only have one primary key, and as far as I know, CI won’t show these field types as editable in Scaffolding.

 Signature 

Flickr | Last.fm | Del.icio.us

Profile
 
 
Posted: 02 November 2006 02:26 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  6
Joined  10-31-2006

Ok, so it’s a feature, in that case I can’t use scaffolding :(

The table only have one primary key (it’s THE primary key). If you are trying to say that the primary key should have only one field, IMHO I think that it’s wrong, at least in my experience.

I’ve always worked with DB2 for banking systems (some tables with more than 5 Billion records!!!), and you have to be really careful with the order of the fields, the size and the indexes: the best is to have just one index, that it’s the primary and unique key, the cluster index, and the search index, so you don’t need extra fields (ID), and you improve the performance in joins and most frequent selects (it’s very important the order of the fields in the index and the fields you use in the where clause).

Thank you.

 Signature 

The cat ate my source code.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66429 Total Logged-in Users: 31
Total Topics: 84793 Total Anonymous Users: 4
Total Replies: 455038 Total Guests: 209
Total Posts: 539831    
Members ( View Memberlist )
Newest Members:  X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeerfedegheEdged