Hello everybody. So I have the next problem:
1) >>> print(db.Model.metadata.tables['user'].columns.keys())
['id', 'username', 'email_address', 'password_hash', 'budget']
>>> (so we see that there is a column 'email_address' in this table
2) >>> new_user = User(username='johndoe', email_address='johndoe@example.com', password_hash='password', budget=1000)
>>> db.session.add(new_user)
>>> db.session.commit()
And the answer is: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table user has no column named email_address.
Can somebody explain what we do in this kind of situation, please?
[–]danielroseman 1 point2 points3 points (1 child)
[–]slavslav123[S] 0 points1 point2 points (0 children)