Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5647 มุมมอง

On odoo.sh ,If we already have one production branch with production DB, how we can create new DB on our staging branch instead of importing the production DB or restoring it from automated backups.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can hit the "+"-sign in the staging branch section.

Then you can select from which branch it should fork the staging branch... 

Enter a name in "To" action and the staging branch will be created.

The staging branch is always a copy of the production db as far as i remember. the dev branches will be a demo database with the modules installed in the production branch...

So i think a new (or empty) db in staging section is not possible.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Create a new database without installing any Apps on another Server (maybe hosted locally). Take a backup and restore that backup to the staging branch. 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I did not see any possiblity , so we should have setup the local envirnoment of the vesrion we want to create database of and then created a raw DB there which can be downloaded and imported to SH staging branch.

อวตาร
ละทิ้ง

What is the exact goal? Do you want to remove the production db completly and have a new database in staging?
If you upload an existing backup (from local env) it will be used for production and staging. So as far as i know you will not be able to separate the production and staging db´s.

ผู้เขียน

@Nils
The Goal is to use Raw DB on one staging branch for some testing wich is not possible on production db backup.
If I will upload a backup , it will only be used for staging not for production.
The production and staging DBs are always separate.

Hey Muhammad,
ok i will have a look. Up to this point i thought this is not, as the backups for example refers to the same files... from both production and staging.
But thanks for the input! Maybe this is helpful to know for future purposes.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 24
1431
2
ส.ค. 25
3266
1
มี.ค. 24
2236
2
ม.ค. 24
3001
CVE-2023-44487 vulnerability แก้ไขแล้ว
2
ต.ค. 23
3421