lenra-io / lenra_cli

The Lenra's command line interface
MIT License
16 stars 1 forks source link

[Task] Interactive command - erase: Erase data #27

Open taorepoara opened 2 years ago

taorepoara commented 2 years ago

What should be done

Implement the erase interactive command.

It erases all the databases data (PostgreSQL and MongoDB).

Technical recommandation

Drop Mongo's app databse and delete all postgres app users.

Is this task linked with any other ?

Blocked by https://github.com/lenra-io/lenra_cli/issues/21

taorepoara commented 1 year ago

For Postgres, use mix Ecto.reset() (or equivalent in the released app).