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

default value for timestamp #67

Open
KenjiOhtsuka opened this issue Aug 5, 2018 · 0 comments
Open

default value for timestamp #67

KenjiOhtsuka opened this issue Aug 5, 2018 · 0 comments

Comments

@KenjiOhtsuka
Copy link
Owner

Still, I'm wondering how to handle Timestamp NOT NULL constraint,
because MySQL 5.5.6 and later handles Timestamp NOT NULL as default.
Current program handle nullable = true for TimestampColumn as default TIMESTAMP column in MySQL,
so it become NOT NULL. On the other hand, PostgreSQL handles plain Timestamp column nullable.

I think it is better to force nullable in MySQL when TimestampColumn has nullable = true.
The issue is the default nullable value in program, timestamp function in TableBuilder and addTimestampColumn in AbstractMigration

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

No branches or pull requests

1 participant