Thanks Jon, I'll give it some more thought.


On Oct 9, 5:59 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I'm porting an existing application to Cake.  One of the database
> > tables was setup with a primary index that is made up of 3 columns,
> > none are incrementing numeric values.
>
> > The table's index is made up of:
> > website_id
> > link_id
> > run_id
>
> > Is this possible in Cake?  Can I tell Cake not to use an index field
> > and just handle the index using my own code?
>
> not very easily (if at all).
>
> what I would do is create the SQL to recereate the DB using PHP by
> looping through the result set , using a counter to get a unique ID
> for each record.
>
> Then you'll have a primary key and your db is cake friendly.
>
> Open to other suggestions though, anyone got a better idea?
>
> Cheers,
>
> Jon
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to