[Flask] Running the migrations file doesn't create classifications table
amlannandy opened this issue · 0 comments
amlannandy commented
Describe the bug
Encountered this error while using the mobile app
(pymysql.err.ProgrammingError) (1146, "Table 'labellab.classification' doesn't exist")
[SQL: SELECT classification.id AS classification_id, classification.image_name AS classification_image_name, classification.image_url AS classification_image_url, classification.label AS classification_label, classification.confidence AS classification_confidence, classification.user_id AS classification_user_id, classification.classified_at AS classification_classified_at
FROM classification
WHERE classification.user_id = %(user_id_1)s]
[parameters: {'user_id_1': 3}]
On checking MySQL, found that the classification table is not created.
Also didn't find the command for it in the Labellab-sql-script file.
Additional context
I'd like to work on this issue, but need additional info about the classification table. i.e. column names and their datatypes