示例#1
0
def create(options, *args, **kwargs):
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO+'%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO+'%s : Bootstrapping the database ...' % current_time())
    boot_strap()
示例#2
0
def create(options, *args, **kwargs):
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO + '%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO + '%s : Bootstrapping the database ...' % current_time())
    boot_strap()
def create():
    """ Creates the database """
    print (ConsoleColors.INFO + '%s : Creating the database ... ' %
           current_time())
    __create__()
    if len(argv) == 3 and argv[2] == 'bootstrap':
        print (ConsoleColors.INFO +
               '%s : Bootstrapping the database ... ' % current_time())
        boot_strap()
示例#4
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO + '%s : Creating the database ... ' % current_time())
    create_tables()
    if len(argv) == 3 and (argv[2] == 'bootstrap' or argv[2] == '-b'):
        print('\n\n\n' + INFO + \
              '%s : Bootstrapping the database ... \n' % current_time())
        boot_strap()
示例#5
0
def create():
    """ Creates/bootstraps the database """
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap

    print(INFO + "%s : Creating the database ... " % current_time())
    create_tables()
    if len(argv) == 3 and (argv[2] == "bootstrap" or argv[2] == "-b"):
        print("\n\n\n" + INFO + "%s : Bootstrapping the database ... \n" % current_time())
        boot_strap()
示例#6
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO+'%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO+'%s : Bootstrapping the database ...' % current_time())
    try:
        boot_strap()
    except:
        print(WARN+"%s : Database has already been bootstrapped" % current_time())
示例#7
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import __create__, boot_strap
    print('%s : Creating the database ... ' %
          current_time())
    __create__()
    if len(argv) == 3 and (argv[2] == 'bootstrap' or argv[2] == '-b'):
        print('\n\n\n' +
            '%s : Bootstrapping the database ... \n' % current_time())
        boot_strap()
示例#8
0
def create():
    print(INFO + 'Creating the database ... ')
    __create__()
    if len(argv) == 3 and argv[2] == 'bootstrap':
        print(INFO + 'Bootstrapping the database ... ')
        boot_strap()