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' ;
|
2013-04-17 18:02:19 +02:00
|
|
|
|
2013-05-11 17:52:53 +02:00
|
|
|
--
|
|
|
|
-- Name: packet_component_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|