what about

CREATE TABLE Abc ( ...)
?

On Thu, Oct 16, 2008 at 3:32 AM, devmet <[EMAIL PROTECTED]> wrote:

>
> Hi everybody,
>
> I have an abstract class and two child concrete classes from that
> abstract class. I have implemented Class Table Inheritance for these.
> These tables are now in production and they already have production
> data in them. Now, there is a need for another concrete class from the
> same abstract class. Implementing the class is not a problem, it just
> follows the previous two. However, I don't know how to create table
> for this type and make it related to the base table already in the
> production. I don't see any "UpdateSchema" or anything like that in
> ActiveRecordStarter. There is only CreateSchema(). The following is
> what I tried and was unsuccessful.
>
> I tried to just initialize the new type and to create schema for it
> but I received an error saying that it was missing the primary key.
>
>  I initialized the base type with it and tried to create the schema
> but it errored out saying that the table already existed.
>
> Then I tried CreateSchems(typeof(NewType)), This seems to have created
> the table but I'm not sure if it created the relationship too because
> when I deleted the base table, it didn't give any error message.
>
> Any help is greatly appriciated.
>
> devmet
> >
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to