On Tuesday, August 1, 2017 at 6:51:08 PM UTC-7, dota? =op wrote:
>
> EHLO 
>
> ive been trying to make a migration liek this 
>
> ``` 
> Sequel.migration do 
>   create_table :asd do 
>     Date :bsd, default: Sequel::CURRENT_TIMESTAMP 
>   end 
> end 
> ``` 
>
> but it will give errors for both Sequel::CURRENT_TIMESTAMP and 
> Sequel::CURRENT_DATE. which constant should i use here? 
>

I don't think MySQL supports non-constant default values except for 
CURRENT_TIMESTAMP on a datetime or timestamp column 
(https://dev.mysql.com/doc/refman/5.7/en/data-type-defaults.html). You'll 
have to pick a database that sucks less.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to