Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

데이터베이스 열의 기본 날짜 재고찰 #274

Open
maycactus-FOSS opened this issue Aug 17, 2023 · 1 comment
Open

데이터베이스 열의 기본 날짜 재고찰 #274

maycactus-FOSS opened this issue Aug 17, 2023 · 1 comment

Comments

@maycactus-FOSS
Copy link
Contributor

현재 그누보드는 날짜 열의 기본값으로 '0000-00-00'을 사용하고 있는데 문제가 발생하고 있습니다 due to the deprecation of the NO_ZERO_DATE mode in MySQL. 더 이상 사용되지 않는 이 관행은 데이터 무결성 및 애플리케이션 동작의 잠재적 중단에 대한 우려를 불러일으킵니다.

MySQL 문서에 따르면 NO_ZERO_DATE 모드는 미래의 MySQL 릴리스에서 별도의 모드 이름으로의 지원 중단 및 해당 효과가 엄격한 SQL 모드의 영향에 포함될 것으로 예상됩니다.

https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_zero_date
https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_zero_date
https://dev.mysql.com/doc/refman/8.1/en/sql-mode.html#sqlmode_no_zero_date

@smaker
Copy link

smaker commented Sep 15, 2023

9999-12-31 23:59:59는 아주 먼 미래의 날짜인 것으로 보이고,
게시물의 등록일자가 아예 없는 것(NULL 값이 들어가 있는 것) 또한 이상하다고 생각합니다.

차라리, CURRENT_TIMESTAMP()를 기본 값으로 하는 것은 어떨까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants