hs.hsadmin/hsarback/database/database_update.sql

22 lines
953 B
MySQL
Raw Normal View History

2013-04-25 17:19:14 +02:00
-- INSERT INTO domain__domain_option
-- SELECT domain_option_id, domain_id FROM domain
-- JOIN unixuser on ( domain.domain_owner = unixuser.unixuser_id )
-- JOIN packet on ( unixuser.packet_id = packet.packet_id )
-- JOIN basepacket on ( packet.bp_id = basepacket.basepacket_id ), domain_option
2013-04-29 20:01:09 +02:00
-- WHERE basepacket.basepacket_code = 'PAC/DW'
2013-04-25 17:19:14 +02:00
-- AND domain_option.domain_option_name = 'php' ;
-- DELETE FROM domain__domain_option
-- USING domain_option, domain
-- JOIN unixuser on ( domain.domain_owner = unixuser.unixuser_id )
-- JOIN packet on ( unixuser.packet_id = packet.packet_id )
-- JOIN basepacket on ( packet.bp_id = basepacket.basepacket_id )
2013-04-29 20:01:09 +02:00
-- WHERE basepacket.basepacket_code != 'PAC/DW'
2013-04-25 17:19:14 +02:00
-- AND domain__domain_option.domain_option_id = domain_option.domain_option_id
-- AND domain_option.domain_option_name = 'php' ;
--
-- Name: packet_component_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--