You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/utils/kamctl/oracle/rtpproxy-create.sql

20 lines
491 B

CREATE TABLE rtpproxy (
id NUMBER(10) PRIMARY KEY,
setid VARCHAR2(32) DEFAULT 00 NOT NULL,
url VARCHAR2(64) DEFAULT '',
flags NUMBER(10) DEFAULT 0 NOT NULL,
weight NUMBER(10) DEFAULT 1 NOT NULL,
description VARCHAR2(64) DEFAULT ''
);
CREATE OR REPLACE TRIGGER rtpproxy_tr
before insert on rtpproxy FOR EACH ROW
BEGIN
auto_id(:NEW.id);
END rtpproxy_tr;
/
BEGIN map2users('rtpproxy'); END;
/
INSERT INTO version (table_name, table_version) values ('rtpproxy','1');