Exemplo n.º 1
0
def initdb(c):
    """
    Deprecated, use db.init instead.
    """
    db.create_all()
Exemplo n.º 2
0
def db_init(c):
    """
    Set up a new, empty database.
    """
    db.create_all()
Exemplo n.º 3
0
def db_init(c):
    """
    Set up a new, empty database.
    """
    db.create_all()
Exemplo n.º 4
0
import random
from tessera import db
from tessera.models.v1 import *

db.create_all()

testadmin = User(username="******",
                 email="*****@*****.**",
                 password="******",
                 full_name="Test Testerson II",
                 is_admin=True)
test = User(username="******",
            email="*****@*****.**",
            password="******",
            full_name="Test Testerson")
db.session.add(testadmin)
db.session.add(test)
db.session.commit()

a_team = Team(name="The A Team")
a_team.team_lead = test

b_team = Team(name="The B Team")
b_team.team_lead = testadmin

db.session.add(a_team)
db.session.add(b_team)
db.session.commit()

# make the default statuses
backlog     = Status(name="Backlog", status_type="TODO")
Exemplo n.º 5
0
def initdb(c):
    """
    Deprecated, use db.init instead.
    """
    db.create_all()
Exemplo n.º 6
0
def init():
    db.create_all()
Exemplo n.º 7
0
def db_init(c):
    db.create_all()
Exemplo n.º 8
0
def initdb(c):
    db.create_all()
Exemplo n.º 9
0
def init():
    db.create_all()