On Friday, February 22, 2019 at 8:51:22 AM UTC-8, Martinos wrote:
>
> I have a migration as such:
>
> Sequel.migration do
>   change do
>     create_table(:CDR, :ignore_index_errors => true) do
>        primary_key :id, :type => "bigint", :keep_order => true
>     end
>   end
> end
>
> When I run the migration, the primary_key gets create however the 
> autoincrement sequece is not created.
>

You are overriding the :type with a string, which forces a literal database 
type of bigint.  You should use the :Bignum symbol, which Sequel will 
recognize and transform into the appropriate database type:

    create_table(:CDR, :ignore_index_errors => true) do
       primary_key :id, :type => :Bignum, :keep_order => true
    end

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