XE모듈에 유닉스 타임을 디비칼럼에 추가하고자 합니다.

 

유닉스 타임의 경우 어떻게 디비타입을 잡아서 넣는것이 좋을까요?

 

(보통은 숫자로만 이루어진 칼럼으로 봐도 무관할찌..흐음..)

  • profile
    int 또는 bigint를 쓰세요. 2038년 이후 날짜를 저장하려면 bigint가 필요합니다.
    XE XML 기준으로는 number가 되겠네요.
  • profile profile
    number 하나만으로는 bigint 설정을 할 수 없지않나요?
  • profile profile
    오 ! bignumber가 있네요
  • profile profile
    number, bignumber 모두 bigint로 생성됩니다^^
    https://github.com/xpressengine/xe-core/blob/master/classes/db/DBMysql.class.php#L33
  • profile profile
    ㄷㄷㄷㄷㄷ 왜이렇게 ㄷㄷ 해깔리게 ㅠㅠㅠ