[asterisk-commits] twilson: branch 10 r340219 - in /branches/10: ./ utils/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 10 17:38:12 CDT 2011


Author: twilson
Date: Mon Oct 10 17:38:06 2011
New Revision: 340219

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340219
Log:
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/

Modified:
    branches/10/UPGRADE.txt
    branches/10/utils/Makefile
    branches/10/utils/utils.xml

Modified: branches/10/UPGRADE.txt
URL: http://svnview.digium.com/svn/asterisk/branches/10/UPGRADE.txt?view=diff&rev=340219&r1=340218&r2=340219
==============================================================================
--- branches/10/UPGRADE.txt (original)
+++ branches/10/UPGRADE.txt Mon Oct 10 17:38:06 2011
@@ -65,7 +65,9 @@
    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

Modified: branches/10/utils/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/10/utils/Makefile?view=diff&rev=340219&r1=340218&r2=340219
==============================================================================
--- branches/10/utils/Makefile (original)
+++ branches/10/utils/Makefile Mon Oct 10 17:38:06 2011
@@ -214,7 +214,11 @@
 
 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

Modified: branches/10/utils/utils.xml
URL: http://svnview.digium.com/svn/asterisk/branches/10/utils/utils.xml?view=diff&rev=340219&r1=340218&r2=340219
==============================================================================
--- branches/10/utils/utils.xml (original)
+++ branches/10/utils/utils.xml Mon Oct 10 17:38:06 2011
@@ -7,6 +7,9 @@
 	<defaultenabled>yes</defaultenabled>
   </member>
   <member name="astdb2sqlite3">
+	<defaultenabled>yes</defaultenabled>
+  </member>
+  <member name="astdb2bdb">
 	<defaultenabled>yes</defaultenabled>
   </member>
   <member name="astman">




More information about the asterisk-commits mailing list