Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3871 Lượt xem

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';

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 7 24
33918
1
thg 3 15
7569
6
thg 7 24
82955
1
thg 7 24
22992
0
thg 9 18
2747