Formatierung Upgrade Script 1.0.3-6.6.0
git-svn-id: https://svn.libreccm.org/ccm/trunk@2399 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
285d05fc40
commit
d091a4e362
|
|
@ -47,89 +47,3 @@ ALTER TABLE cam_option_targets RENAME TO ct_decisiontree_option_targets;
|
||||||
|
|
||||||
-- ALTER TABLE ct_decisiontrees DROP CONSTRAINT cam_dec_tre_fir_sectio_f_9jr7j RESTRICT;
|
-- ALTER TABLE ct_decisiontrees DROP CONSTRAINT cam_dec_tre_fir_sectio_f_9jr7j RESTRICT;
|
||||||
-- ALTER TABLE ct_decisiontrees DROP CONSTRAINT cam_decisi_tree_tre_id_f_g0r8e RESTRICT;
|
-- ALTER TABLE ct_decisiontrees DROP CONSTRAINT cam_decisi_tree_tre_id_f_g0r8e RESTRICT;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- rename cam_tree_sections to
|
|
||||||
|
|
||||||
-- rename ct_contact_* tables to ct_ldn_contact_* tables following
|
|
||||||
-- ccm naming conventions to make maintenance tasks easier
|
|
||||||
|
|
||||||
|
|
||||||
-- if we could figure out the old names we could rename constraints too
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
|
|
||||||
alter table ct_contacts RENAME TO ct_ldn_contacts ;
|
|
||||||
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
|
|
||||||
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
|
|
||||||
alter table ct_contact_address RENAME TO ct_ldn_contact_address ;
|
|
||||||
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_p_y5yhy PRIMARY KEY (address_id) ;
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_f_bfcho FOREIGN KEY (address_id)
|
|
||||||
-- REFERENCES cms_items (item_id) MATCH SIMPLE
|
|
||||||
-- ON UPDATE NO ACTION ON DELETE NO ACTION;
|
|
||||||
|
|
||||||
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
|
|
||||||
alter table ct_contact_phones RENAME TO ct_ldn_contact_phones ;
|
|
||||||
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_p_y5yhy PRIMARY KEY (address_id) ;
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_f_bfcho FOREIGN KEY (address_id)
|
|
||||||
-- REFERENCES cms_items (item_id) MATCH SIMPLE
|
|
||||||
-- ON UPDATE NO ACTION ON DELETE NO ACTION;
|
|
||||||
|
|
||||||
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
-- alter table ct_contacts drop constraint ... ;
|
|
||||||
|
|
||||||
alter table ct_contact_types RENAME TO ct_ldn_contact_types ;
|
|
||||||
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_p_y5yhy PRIMARY KEY (address_id) ;
|
|
||||||
-- alter table ct_ldn_contact_address
|
|
||||||
-- add constraint ct_ldn_con_add_addr_id_f_bfcho FOREIGN KEY (address_id)
|
|
||||||
-- REFERENCES cms_items (item_id) MATCH SIMPLE
|
|
||||||
-- ON UPDATE NO ACTION ON DELETE NO ACTION;
|
|
||||||
|
|
||||||
|
|
||||||
alter table contact_content_item_map drop constraint cont_con_ite_map_ite_i_p_scqe9 ;
|
|
||||||
alter table contact_content_item_map drop constraint cont_con_ite_map_con_i_f_lanid ;
|
|
||||||
alter table contact_content_item_map drop constraint cont_con_ite_map_ite_i_f_fr0po ;
|
|
||||||
|
|
||||||
alter table contact_content_item_map RENAME TO ct_ldn_contact_content_item_map ;
|
|
||||||
|
|
||||||
alter table ct_ldn_contact_content_item_map
|
|
||||||
add constraint ct_ldn_con_con_ite_map_p_nannu PRIMARY KEY(item_id) ;
|
|
||||||
alter table ct_ldn_contact_content_item_map
|
|
||||||
add constraint ct_ldn_con_con_ite_map_f_g9mgi foreign key (contact_id)
|
|
||||||
references ct_ldn_contacts (contact_id) MATCH SIMPLE
|
|
||||||
ON UPDATE NO ACTION ON DELETE NO ACTION;
|
|
||||||
alter table ct_ldn_contact_content_item_map
|
|
||||||
add constraint ct_ldn_con_con_ite_map_f_a0qiy foreign key (item_id)
|
|
||||||
references cms_items(item_id) MATCH SIMPLE
|
|
||||||
ON UPDATE NO ACTION ON DELETE NO ACTION;
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue