How do I update the database and add new tables when a new data model is added to flask-sqlalchemy?

I generate database tables in the @ manager.shell command line of flask-script.

for example, before a model is User , when the table is generated for the first time:

db.create_all()

at this point, a user table is generated.

then add a new table called Post . If you don"t use flask-migrate, how can you update the database and let the database generate post tables?

Apr.11,2021

directly manipulate the database.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bec109-31246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bec109-31246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?