Example #1
0
def create_db_schema():
    """
    Initializes db structure if needed (open & close works like unix 'touch' - to make sure db file exists)
    """
    open(database_path, 'a').close()
    if os.stat(database_path).st_size == 0:
        print 'creating database...'
        db.create_all()