Changeset - ad7aa6254a2b
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-04-21 12:48:51
lance@edbob.org
init tweak
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rattail/db.py
Show inline comments
 
@@ -28,18 +28,18 @@
 

	
 
from edbob.db.extensions import activate_extension
 

	
 
import rattail
 

	
 

	
 
def init_database(session):
 
def init_database(engine, session):
 
    """
 
    Initialize an ``edbob`` database for use with Rattail.
 
    """
 

	
 
    activate_extension('rattail', session.bind)
 
    activate_extension('rattail', engine)
 

	
 
    columns = [
 
        ('F01',         'UPC',                  'GPC(14)'),
 
        ('F02',         'Description',          'CHAR(20)'),
 
        ('F03',         'Department Number',    'NUMBER(4,0)'),
 
        ('F22',         'Size',                 'CHAR(30)'),
0 comments (0 inline, 0 general)