Make not assume that the cel_sqlite3_custom SQL table primary key is AcctId.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 5 Jan 2012 23:47:11 +0000 (23:47 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 5 Jan 2012 23:47:11 +0000 (23:47 +0000)
commit082fbbc6d014ea5db58c9b9a6c21e8d128f44ee5
tree5318fcb342ee512a14def8e22b52cab16c3a10ff
parentd6b359ff0b333fdb0b1485ca5744078fe9bec733
Make not assume that the cel_sqlite3_custom SQL table primary key is AcctId.

If a table is created by some other application and the primary key is not
named "AcctId", cel/cel_sqlite3_custom.c will always try to create the
table and fail because it already exists.

* Change the SQL table query to not require AcctId as the primary key.

(closes issue ASTERISK-18963)
Reported by: socketpair
Patches:
      fix.patch (license #6337) patch uploaded by socketpair
........

Merged revisions 349819 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 349820 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@349821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
cel/cel_sqlite3_custom.c