26 context = op.get_context()
27
28 if context.bind.dialect.name == 'postgresql':
29 enum_in = ENUM(*PJSIP_INCOMING_CALL_OFFER_PREF_VALUES, name=PJSIP_INCOMING_CALL_OFFER_PREF_NAME)
30 enum_out = ENUM(*PJSIP_OUTGOING_CALL_OFFER_PREF_VALUES, name=PJSIP_OUTGOING_CALL_OFFER_PREF_NAME)
31
32 enum_in.create(op.get_bind(), checkfirst=False)
33 enum_out.create(op.get_bind(), checkfirst=False)
34
35 op.add_column('ps_endpoints', sa.Column('incoming_call_offer_pref',
36 sa.Enum(*PJSIP_INCOMING_CALL_OFFER_PREF_VALUES, name=PJSIP_INCOMING_CALL_OFFER_PREF_NAME)))
37
38 op.add_column('ps_endpoints', sa.Column('outgoing_call_offer_pref',
39 sa.Enum(*PJSIP_OUTGOING_CALL_OFFER_PREF_VALUES, name=PJSIP_OUTGOING_CALL_OFFER_PREF_NAME)))
40
41 op.add_column('ps_endpoints', sa.Column('stir_shaken_profile', sa.String(80)))
42