table already exists

36 views
Skip to first unread message

Alex Glaros

unread,
Jul 24, 2022, 8:06:45 PM7/24/22
to py4web
On one of my tables, I set fake_migrate = True and now all tables raise "table already exists" error

I can force error to go away by explicitly setting all mig to "False" but would like option of leaving migration = True during development for all tables. 

Tried deleting all files in databases folder

I'll try anything. Suggestions?

Alex Glaros

unread,
Jul 24, 2022, 9:07:25 PM7/24/22
to py4web
I set DB_FAKE_MIGRATE = True but databases folder remains empty.  How to get databases folder re-populated?

Alex Glaros

unread,
Jul 25, 2022, 12:33:30 AM7/25/22
to py4web
re-ran it couple times and everything restored without me understanding what I did right...bottom line, fake_migrate worked.
Reply all
Reply to author
Forward
0 new messages