55 lines
1.8 KiB
SQL
55 lines
1.8 KiB
SQL
-- Register the Program-only shared-child batch route without changing any
|
|
-- external Agent routing or automatically granting the new capability.
|
|
|
|
ALTER TABLE business_parser_settings
|
|
DROP CONSTRAINT IF EXISTS business_parser_settings_route_check;
|
|
|
|
ALTER TABLE business_parser_settings
|
|
ADD CONSTRAINT business_parser_settings_route_check CHECK (route_id IN (
|
|
'team_order_create',
|
|
'team_order_batch_create',
|
|
'shared_plan_create',
|
|
'shared_child_order_create',
|
|
'shared_child_order_batch_create',
|
|
'passenger_list_import_independent',
|
|
'passenger_list_import_shared_child',
|
|
'arrangement_guide_create',
|
|
'arrangement_vehicle_create',
|
|
'arrangement_hotel_create',
|
|
'arrangement_transport_create',
|
|
'arrangement_other_create',
|
|
'order_update_shared_plan',
|
|
'order_update_shared_child',
|
|
'order_update_independent',
|
|
'arrangement_hotel_update',
|
|
'order_cancel',
|
|
'order_restore',
|
|
'confirmation_export'
|
|
));
|
|
|
|
ALTER TABLE user_business_route_authorizations
|
|
DROP CONSTRAINT IF EXISTS user_business_route_authorizations_route_check;
|
|
|
|
ALTER TABLE user_business_route_authorizations
|
|
ADD CONSTRAINT user_business_route_authorizations_route_check CHECK (route_id IN (
|
|
'team_order_create',
|
|
'team_order_batch_create',
|
|
'shared_plan_create',
|
|
'shared_child_order_create',
|
|
'shared_child_order_batch_create',
|
|
'passenger_list_import_independent',
|
|
'passenger_list_import_shared_child',
|
|
'arrangement_guide_create',
|
|
'arrangement_vehicle_create',
|
|
'arrangement_hotel_create',
|
|
'arrangement_transport_create',
|
|
'arrangement_other_create',
|
|
'order_update_shared_plan',
|
|
'order_update_shared_child',
|
|
'order_update_independent',
|
|
'arrangement_hotel_update',
|
|
'order_cancel',
|
|
'order_restore',
|
|
'confirmation_export'
|
|
));
|