Changeset 2661

Show
Ignore:
Timestamp:
10/01/09 00:02:45 (4 years ago)
Author:
lmajano
Message:

new db appender property type to choose text fields

Location:
coldbox/trunk/system/logging
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/system/logging/appenders/DBAppender.cfc

    r2550 r2661  
    1818 - autocreate : if true, then we will create the table. Defaults to false (Optional) 
    1919 - ensureChecks : if true, then we will check the dsn and table existence.  Defaults to true (Optional) 
    20          
     20 - textDBType : Defaults to 'text'. This is used on the autocreate features of the appender for the 
     21                                   message and extended info fields.  This is the actual database type. 
     22                                    
    2123The columns needed in the table are 
    2224 
     
    6567                        if( NOT propertyExists("ensureChecks") ){ 
    6668                                setProperty("ensureChecks",true); 
     69                        } 
     70                        if( NOT propertyExists("textDBType") ){ 
     71                                setProperty("textDBType","text"); 
    6772                        } 
    6873                         
     
    169174                                        #listgetAt(cols,4)# DATETIME NOT NULL, 
    170175                                        #listgetAt(cols,5)# VARCHAR(100) NOT NULL, 
    171                                         #listgetAt(cols,6)# TEXT, 
    172                                         #listgetAt(cols,7)# TEXT, 
     176                                        #listgetAt(cols,6)# #getProperty("textDBType")#, 
     177                                        #listgetAt(cols,7)# #getProperty("textDBType")#, 
    173178                                        PRIMARY KEY (id) 
    174179                                ) 
  • coldbox/trunk/system/logging/readme.txt

    r2660 r2661  
    7878== Version 1.0 RC 2 (October 2009) == 
    7979 * Fix for adding categories via XML 
     80 * DBAppender new property textDBType to choose the text db type instead of the default 'text' 
    8081 
    8182== Version 1.0 Beta (August, 2009) ==