From: Terry Wilson Date: Mon, 10 Oct 2011 22:38:06 +0000 (+0000) Subject: Add astdb conversion utility for Berkeley to SQLite 3 X-Git-Tag: 10.0.0-rc1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef4224fe6bfd6088a802c3eb1491f355dac8b5f;p=thirdparty%2Fasterisk.git Add astdb conversion utility for Berkeley to SQLite 3 If someone wants to backtrack from Asterisk 1.8 to 10 they can use the astdb2bdb utility to convert the database back to the Berkeley format that Asterisk 1.8 uses. Review: https://reviewboard.asterisk.org/r/1502/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@340219 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/UPGRADE.txt b/UPGRADE.txt index 4a1975fefc..c51e30517a 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -65,7 +65,9 @@ Asterisk Database: SQLite 3. An existing Berkeley astdb file can be converted with the astdb2sqlite3 utility in the UTILS section of menuselect. If an existing astdb is found and no astdb.sqlite3 exists, astdb2sqlite3 will be compiled automatically. Asterisk will - convert an existing astdb to the SQLite3 version automatically at runtime. + convert an existing astdb to the SQLite3 version automatically at runtime. If + moving back from Asterisk 10 to Asterisk 1.8, the astdb2bdb utility can be used + to create a Berkeley DB copy of the SQLite3 astdb that Asterisk 10 uses. Manager: - The AMI protocol version was incremented to 1.2 as a result of changing two diff --git a/utils/Makefile b/utils/Makefile index 1abf3603a9..718b9ba0c0 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -214,7 +214,11 @@ db1-ast/libdb1.a: CHECK_SUBDIR astdb2sqlite3: LIBS+=$(SQLITE3_LIB) astdb2sqlite3: _ASTCFLAGS+=$(SQLITE3_INCLUDE) -astdb2sqlite3: db1-ast/libdb1.a +astdb2sqlite3: db1-ast/libdb1.a + +astdb2bdb: LIBS+=$(SQLITE3_LIB) +astdb2bdb: _ASTCFLAGS+=$(SQLITE3_INCLUDE) +astdb2bdb: db1-ast/libdb1.a ifneq ($(wildcard .*.d),) include .*.d diff --git a/utils/utils.xml b/utils/utils.xml index 207495f52e..733bd535e0 100644 --- a/utils/utils.xml +++ b/utils/utils.xml @@ -9,6 +9,9 @@ yes + + yes + no newt