<filename>app/db/drop_data.py<gh_stars>1-10
from app.db.database import db

tables = ['GameGoal', 'Athlete', 'Coach', 'Competition', 'Game', 'Season', 'Stadium', 'Team']


def drop():

    for table in tables:
        try:
            db.engine.execute('''DROP TABLE ''' + table)
        except Exception:
            print('Table ' + table + ' may have already been dropped, continuing to next drop')
