From 2a97eb25937b7cea24dd3024bfb1c17563ee8e23 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sat, 7 Aug 2021 15:51:22 -0400 Subject: [PATCH] [ADD] doc development: database guide to delete manually with filestore --- doc/DEVELOPMENT.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/DEVELOPMENT.md b/doc/DEVELOPMENT.md index 57d80c7..be44365 100644 --- a/doc/DEVELOPMENT.md +++ b/doc/DEVELOPMENT.md @@ -165,6 +165,29 @@ Or go back to normal ./script/install_locally.sh ``` +# Database + +## Clean database PostgreSQL + +Sometime, it's not possible to delete a database from the database manager `http://127.0.0.1:8069/web/database/manager`, so you can do it manually. Replace `database_name` by your database name: + +```bash +sudo -iu postgres +psql +``` + +And run: + +```postgres-sql +DROP DATABASE database_name; +``` + +Exit and delete filestore: + +```bash +rm -r ~/.local/share/Odoo/filestore/database_name +``` + # Coding ## Create module scaffold