[Asterisk-cvs] asterisk postgres_cdr.sql,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Tue Dec 2 17:16:15 CST 2003


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv3243

Modified Files:
	postgres_cdr.sql 
Log Message:
Fix SQL description for longer channels


Index: postgres_cdr.sql
===================================================================
RCS file: /usr/cvsroot/asterisk/postgres_cdr.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- postgres_cdr.sql	13 Oct 2003 18:18:15 -0000	1.1
+++ postgres_cdr.sql	2 Dec 2003 23:42:39 -0000	1.2
@@ -14,19 +14,19 @@
 CREATE TABLE cdr (
         AcctId		BIGSERIAL PRIMARY KEY,
 	calldate	TIMESTAMP with time zone NOT NULL DEFAULT now(),
-	clid		VARCHAR(45) NOT NULL default '',
-	src		VARCHAR(45) NOT NULL default '',
-	dst		VARCHAR(45) NOT NULL default '',
-	dcontext	VARCHAR(45) NOT NULL default '',
-	channel		VARCHAR(45) NOT NULL default '',
-	dstchannel	VARCHAR(45) NOT NULL default '',
-	lastapp		VARCHAR(45) NOT NULL default '',
-	lastdata	VARCHAR(45) NOT NULL default '',
+	clid		VARCHAR(80) NOT NULL default '',
+	src		VARCHAR(80) NOT NULL default '',
+	dst		VARCHAR(80) NOT NULL default '',
+	dcontext	VARCHAR(80) NOT NULL default '',
+	channel		VARCHAR(80) NOT NULL default '',
+	dstchannel	VARCHAR(80) NOT NULL default '',
+	lastapp		VARCHAR(80) NOT NULL default '',
+	lastdata	VARCHAR(80) NOT NULL default '',
 	duration	INTEGER NOT NULL default '0',
 	billsec		INTEGER NOT NULL default '0',
 	disposition	VARCHAR(45) NOT NULL default '',
 	amaflags	INTEGER NOT NULL default '0',
-	accountcode	VARCHAR(45) NOT NULL default '',
-	uniqueid	VARCHAR(45) NOT NULL default ''
+	accountcode	VARCHAR(20) NOT NULL default '',
+	uniqueid	VARCHAR(32) NOT NULL default ''
 );
 




More information about the svn-commits mailing list