home *** CD-ROM | disk | FTP | other *** search
- Rem Copyright (c) 1988 by Oracle Corporation
- Rem NAME
- Rem IADUPG.SQL - Upgrade SQL*Forms' tables (Remove the cluster)
- Rem FUNCTION
- Rem NOTES
- Rem MODIFIED
- Rem Giljum 11/22/90 - Creation
- Rem
- Rem
-
- spool iadupg.lis
-
- Rem
- Rem First drop the views if they exist
- Rem
-
- drop view form_app
- /
- drop view form_blk
- /
- drop view form_fld
- /
- drop view form_trigger
- /
- drop view form_trg
- /
- drop view form_sqltxt
- /
- drop view form_page
- /
- drop view form_map
- /
- drop view form_comment
- /
- drop view form_reference
- /
- drop view form_procedure
- /
- drop view form_authuser
- /
- drop view form_user
- /
-
-
- Rem
- Rem Rename the tables
- Rem
-
- rename form_app_ to form_app
- /
- rename form_blk_ to form_blk
- /
- rename form_fld_ to form_fld
- /
- rename form_trigger_ to form_trigger
- /
- rename form_trg_ to form_trg
- /
- rename form_sqltxt_ to form_sqltxt
- /
- rename form_page_ to form_page
- /
- rename form_map_ to form_map
- /
- rename form_comment_ to form_comment
- /
- rename form_reference_ to form_reference
- /
- rename form_procedure_ to form_procedure
- /
-
- Rem
- Rem Remove the tables from the cluster
- Rem
-
- create table form_foo_ as select * from form_app
- /
- drop table form_app
- /
- rename form_foo_ to form_app
- /
- create table form_foo_ as select * from form_blk
- /
- drop table form_blk
- /
- rename form_foo_ to form_blk
- /
- create table form_foo_ as select * from form_fld
- /
- drop table form_fld
- /
- rename form_foo_ to form_fld
- /
- create table form_foo_ as select * from form_trigger
- /
- drop table form_trigger
- /
- rename form_foo_ to form_trigger
- /
- create table form_foo_ as select * from form_trg
- /
- drop table form_trg
- /
- rename form_foo_ to form_trg
- /
- create table form_foo_ as select * from form_sqltxt
- /
- drop table form_sqltxt
- /
- rename form_foo_ to form_sqltxt
- /
- create table form_foo_ as select * from form_page
- /
- drop table form_page
- /
- rename form_foo_ to form_page
- /
- create table form_foo_ as select * from form_map
- /
- drop table form_map
- /
- rename form_foo_ to form_map
- /
- create table form_foo_ as select * from form_comment
- /
- drop table form_comment
- /
- rename form_foo_ to form_comment
- /
- create table form_foo_ as select * from form_reference
- /
- drop table form_reference
- /
- rename form_foo_ to form_reference
- /
- create table form_foo_ as select * from form_procedure
- /
- drop table form_procedure
- /
- rename form_foo_ to form_procedure
- /
-
- Rem
- Rem The user table is treated specially
- Rem
-
- create table form_foo_ as select * from form_user_
- /
- drop table form_user_
- /
- rename form_foo_ to form_user_
- /
-
- Rem
- Rem Finally drop the cluster
- Rem
-
- drop cluster form_tables
- /
- spool off
-
-