]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add astdb conversion utility for Berkeley to SQLite 3
authorTerry Wilson <twilson@digium.com>
Mon, 10 Oct 2011 22:38:06 +0000 (22:38 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 10 Oct 2011 22:38:06 +0000 (22:38 +0000)
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

UPGRADE.txt
utils/Makefile
utils/utils.xml

index 4a1975fefce0231830e87e260451db257497cde4..c51e30517a57dcc05f99f9aec73cbb5314b38293 100644 (file)
@@ -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
index 1abf3603a9a20526a2e9634254eb9e4f2c917942..718b9ba0c06db0f44c9290f44b6a5cea937ee2b5 100644 (file)
@@ -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
index 207495f52e2d05f4f81773e79c017c149585604b..733bd535e02cce104f06831bd2bcc8f4b93786eb 100644 (file)
@@ -9,6 +9,9 @@
   <member name="astdb2sqlite3">
        <defaultenabled>yes</defaultenabled>
   </member>
+  <member name="astdb2bdb">
+       <defaultenabled>yes</defaultenabled>
+  </member>
   <member name="astman">
        <defaultenabled>no</defaultenabled>
        <depend>newt</depend>