콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
8846 화면

Hi,

I created a new module that add a new field "user_last_change_state" to the object "account.invouce", and I've done some code with this field.

I needed that older records to have this field equal to 1 (admin id ).

Someone knows how to set the new data field with a default value to existent records?

Thanks

아바타
취소
베스트 답변

The simplest form is to do it from a sql script in postgresql. If you have linux, you could do it using pgadmin3 software. The script will be like this: UPDATE [file] SET [field] = 'value' WHERE [condition] ;

아바타
취소
작성자

I did that... but it this the best way ?

I my experience yes.... but maybe there's something better.

작성자

Hope that someone knows a better way =)

관련 게시물 답글 화면 활동
1
5월 22
3960
1
8월 19
3906
1
12월 21
6379
0
10월 21
2949
1
10월 21
3749