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

In case a new database is created using postgres command 'createdb' (for whatever reason), is there a good way to avoid having demo data in the database?  It seems a newly created database through postgres command is configured to have the demo data by default.

A workaround would be to change the 'demo' field of the base module from True to False by following command before installing any module, but I wonder if there is a smarter way to achieve the same.

update ir_module_module set demo = False where name = 'base';

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ก.ค. 24
33918
1
มี.ค. 15
7387
How to select one database by default ? แก้ไขแล้ว
6
ก.ค. 24
82469
1
ก.ค. 24
22833
0
ก.ย. 18
2618