/usr/share/opensips/mysql/load_balancer-create.sql is in opensips-mysql-module 2.2.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | INSERT INTO version (table_name, table_version) values ('load_balancer','2');
CREATE TABLE load_balancer (
id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
group_id INT(11) UNSIGNED DEFAULT 0 NOT NULL,
dst_uri CHAR(128) NOT NULL,
resources CHAR(255) NOT NULL,
probe_mode INT(11) UNSIGNED DEFAULT 0 NOT NULL,
description CHAR(128) DEFAULT '' NOT NULL
) ENGINE=InnoDB;
CREATE INDEX dsturi_idx ON load_balancer (dst_uri);
|