Skip to content

Commit a44a00c

Browse files
committed
Update MySQL DB migration scripts for "3.5 to 3.6"
1 parent 4524f68 commit a44a00c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

db/schema/trie_partitions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
]>
99

10-
<table id="dr_partitions" xmlns:db="http://docbook.org/ns/docbook">
11-
<name>dr_partitions</name>
10+
<table id="trie_partitions" xmlns:db="http://docbook.org/ns/docbook">
11+
<name>trie_partitions</name>
1212
<version>1</version>
1313
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
1414
<description>

modules/proto_hep/proto_hep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static const param_export_t params[] = {
143143
{ "homer5_on", INT_PARAM, &homer5_on },
144144
{ "homer5_delim", STR_PARAM, &homer5_delim.s },
145145
{ "hep_max_retries", INT_PARAM, &hep_max_retries },
146-
{ "hep_retry_cooldown", STR_PARAM, &hep_retry_cooldown },
146+
{ "hep_retry_cooldown", INT_PARAM, &hep_retry_cooldown },
147147
{0, 0, 0}
148148
};
149149

scripts/mysql/db-migrate.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020-2024 OpenSIPS Solutions
2+
# Copyright (C) 2020-2025 OpenSIPS Solutions
33
#
44
# This file is part of opensips, a free SIP server.
55
#
@@ -25,6 +25,13 @@ BEGIN
2525

2626

2727
# provisioning-data tables which can be copied 1:1
28+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'config'); -- new in 3.6
29+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'janus'); -- new in 3.6
30+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'sockets'); -- new in 3.6
31+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'trie_partitions'); -- new in 3.6
32+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'trie_table'); -- new in 3.6
33+
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'subscriber'); -- changed in 3.6
34+
2835
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'acc');
2936
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'address');
3037
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'cachedb');
@@ -78,7 +85,6 @@ CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'silo');
7885
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'sip_trace');
7986
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'smpp');
8087
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'speed_dial');
81-
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'subscriber');
8288
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'tls_mgm');
8389
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'tcp_mgm');
8490
CALL OSIPS_TB_COPY_3_5_TO_3_6(old_db, new_db, 'uri');

0 commit comments

Comments
 (0)