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
This commit is contained in:
Terry Wilson
2011-10-10 22:38:06 +00:00
parent f0d579f1d5
commit 7ef4224fe6
3 changed files with 11 additions and 2 deletions

View File

@@ -65,7 +65,9 @@ Asterisk Database:
SQLite 3. An existing Berkeley astdb file can be converted with the astdb2sqlite3 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 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 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: Manager:
- The AMI protocol version was incremented to 1.2 as a result of changing two - The AMI protocol version was incremented to 1.2 as a result of changing two

View File

@@ -216,6 +216,10 @@ astdb2sqlite3: LIBS+=$(SQLITE3_LIB)
astdb2sqlite3: _ASTCFLAGS+=$(SQLITE3_INCLUDE) 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),) ifneq ($(wildcard .*.d),)
include .*.d include .*.d
endif endif

View File

@@ -9,6 +9,9 @@
<member name="astdb2sqlite3"> <member name="astdb2sqlite3">
<defaultenabled>yes</defaultenabled> <defaultenabled>yes</defaultenabled>
</member> </member>
<member name="astdb2bdb">
<defaultenabled>yes</defaultenabled>
</member>
<member name="astman"> <member name="astman">
<defaultenabled>no</defaultenabled> <defaultenabled>no</defaultenabled>
<depend>newt</depend> <depend>newt</depend>