sqlalchemy.exc.OperationalError: (OperationalError) (1050, "Table 'pcoip_model' already exists") 'nCREATE TABLE pcoip_model (ntid INTEGER NOT NULL AUTO_INCREMENT, ntitems VARCHAR(64), ntitems_values VARCHAR(64), ntPRIMARY KEY (id)n)nn' ()
学习是最好的投资!
Just delete the table from the databaseor try again
db init db migrate db upgrade
Don’t use flask-migrate. Nine times out of ten, something will go wrong. Manually modifying the database and migrating data is the most reliable method.
Just delete the table from the database
or try again
Don’t use flask-migrate. Nine times out of ten, something will go wrong. Manually modifying the database and migrating data is the most reliable method.