From c7a58af4e932f2da8c37aff4c35cd777844ac843 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 20 Apr 2022 04:18:26 -0400 Subject: [PATCH] [ADD] makefile: command to clone database test to test2 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 359cbc6..4335718 100644 --- a/Makefile +++ b/Makefile @@ -182,6 +182,11 @@ db_create_db_test: ./script/make.sh db_drop_db_test ./.venv/bin/python3 ./odoo/odoo-bin db --create --database test +.PHONY: db_clone_test_to_test2 +db_clone_test_to_test2: + ./.venv/bin/python3 ./odoo/odoo-bin db --drop --database test2 + ./.venv/bin/python3 ./odoo/odoo-bin db --clone --database test2 --from_database test + ######################## # Image installation # ########################