Add not null DateTime column to SQLite without default value?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-06-12T04:05:24Z Indexed on 2010/06/12 4:12 UTC
Read the original article Hit count: 263

Filed under:
|
|

It looks like i cant add a not null constraint or remove a default constraint. I would like to add a datetime column to a table and have all the values set to anything (perhaps 1970 or year 2000) but it seems like i cant use not null without a default and i cant remove a default once added in. So how can i add this column? (once again just a plain datetime not null)

© Stack Overflow or respective owner

Related posts about datetime

Related posts about sqlite