Modifying database

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jun 16 20:56:52 CDT 2003


on 6/16/03 20:44, RBTools at rbtools at columbus.rr.com wrote:

Hi steve,

> I am using:
>   RB 4.5.1
>   Valentina V4RB 1.9.6
>   Mac OSX 10.2.6
> 
> I need to modify the structure of my database to allow for a new table and
> additional columns in an existing table.  Can this be done without having to
> repopulate the database?

Yes.

> My thought was to use Vapp to modify the database
> and then make the same changes in my code to match.

Better do next

On open check VersionSchema of your db,
If it is say 1 then call Upgrade_1_2() function

Here you need open db as Vdatabase class
Change its columns as you need,.
Close db.

Then open db as MyDatabase class and of course in your classes you also need
to do this changes.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list