I have a flask SqlAclchemy table called User:
class User(db.Model):
id = db.Column(db.INTEGER, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True)
i have now edited it and added this line;favCol = db.Column(db.String(12))
how do i update the table for it to recognize this new colum when i add a new user?
At the moment when i create a User like User(username="bob",favCol="red")
it gives me an error:
TypeError: 'favCol' is an invalid keyword argument for User
I have heard of solution with Migrate although i would prefer re a simpler solution if possible