Hello all
What is the best way to reset the marketplace/database before going live? (deleting all fake data like users, transactions, discussions, feedbacks etc.)
Thanks
Delete the existing marketplace from the communities
table. After you have deleted all existing communities, when you go to the URL of your server, it will show you a form which let’s you create a new marketplace.
Thank you @rap1ds
Drawback of your method is that you lose all the configuration of the admin panel
Both the people and listings table have a deleted column. Do you could do something like:
update listings set deleted=1;
update people set deleted = 1 where is_admin = 0;
The where clause on second statement is to allow the admin user to remain enabled.
This is untested, but I have definitely “deleted” listings and people from my marketplace.
Thank you @mooreds . I will think about your method.
Community, if there are other ways, feel free to contribute
hey @mooreds
How would you handle resetting properly the discussions, transactions (fake ones created for developing/testing the payments) and everything related to them please?