dbTalk Databases Forums  

newbie question

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss newbie question in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexander Ross
 
Posts: n/a

Default newbie question - 06-27-2003 , 06:12 PM






I have a text file caled db_def.sql. Right now (during initial development
of a site) it looks kinda like this:

DROP TABLES AND SEQUENCES etc...
ADD SEQUENCES
ADD TABLES
INSERT CERTAIN RECORDS...

Now that I'm getting farther and farther into development, I want a text
file that does this:

BACKUP ALL EXISTING RECORDS
DELETE TABLES
ADD TABLES
PUT BACK BACKEDUP RECORDS

How do I do this?
What do I need to be carefull of?
How should i handle SEQUENCES?


Thanks
Alex


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.