@check_precondition
def delete(self, gid, sid, did, scid, tid, cid):
    '\n        Drops the Check Constraint object.\n\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Check Id\n            cid: Check Constraint Id\n        '
    try:
        SQL = render_template('/'.join([self.template_path, 'properties.sql']), tid=tid, cid=cid)
        (status, res) = self.conn.execute_dict(SQL)
        if (not status):
            return internal_server_error(errormsg=res)
        if (not res['rows']):
            return make_json_response(success=0, errormsg=_('Error: Object not found.'), info=_('The specified check constraint could not be found.\n'))
        data = res['rows'][0]
        SQL = render_template('/'.join([self.template_path, 'delete.sql']), data=data)
        (status, res) = self.conn.execute_scalar(SQL)
        if (not status):
            return internal_server_error(errormsg=res)
        return make_json_response(success=1, info=_('Check Constraint dropped.'), data={'id': tid, 'scid': scid, 'sid': sid, 'gid': gid, 'did': did})
    except Exception as e:
        return internal_server_error(errormsg=str(e))
Drops the Check Constraint object.

Args:
    gid: Server Group Id
    sid: Server Id
    did: Database Id
    scid: Schema Id
    tid: Check Id
    cid: Check Constraint Id
@check_precondition
def delete(self, gid, sid, did, scid, tid, cid):
    '\n        Drops the Check Constraint object.\n\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Check Id\n            cid: Check Constraint Id\n        '
    try:
        SQL = render_template('/'.join([self.template_path, 'properties.sql']), tid=tid, cid=cid)
        (status, res) = self.conn.execute_dict(SQL)
        if (not status):
            return internal_server_error(errormsg=res)
        if (not res['rows']):
            return make_json_response(success=0, errormsg=_('Error: Object not found.'), info=_('The specified check constraint could not be found.\n'))
        data = res['rows'][0]
        SQL = render_template('/'.join([self.template_path, 'delete.sql']), data=data)
        (status, res) = self.conn.execute_scalar(SQL)
        if (not status):
            return internal_server_error(errormsg=res)
        return make_json_response(success=1, info=_('Check Constraint dropped.'), data={'id': tid, 'scid': scid, 'sid': sid, 'gid': gid, 'did': did})
    except Exception as e:
        return internal_server_error(errormsg=str(e))