Skip to content

Tables fail to deploy on MySQL #108

@kjsanger

Description

@kjsanger

Tables having a default value of CURRENT_TIME for a timestamp fail to deploy on MySQL because the function is quoted. This looks like a bug in sql-translator which is a regression on a bug fixed in 2008.

 perl -MWTSI::DNAP::Warehouse::Schema -e 'my $s = WTSI::DNAP::Warehouse::Schema->connect("dbi:mysql:dbname=mlwarehouse;host=xxx.xxx.xxx.xxx", $user, $passord); $s->deploy'

My workaround is to scrape the invalid DDL from STDERR and fix it manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions