I get this:
2016-02-18T17:43:17.385000-08:00 ERROR Database error 0A000: date/time value "current" is no longer supported
QUERY: CREATE TABLE foo
(
id bigserial not null,
name text,
created_on timestamptz(6) not null default 'CURRENT_TIMESTAMP(6)'
);
2016-02-18T17:43:17.385000-08:00 FATAL Failed to create the schema, see above.
But, when I remove the single-quotes, it works:
CREATE TABLE foo
(
id bigserial not null,
name text,
created_on timestamptz(6) not null default CURRENT_TIMESTAMP(6)
);
This my config:
LOAD database
FROM mysql://dev:dev@localhost/main
INTO postgresql://dev@localhost/main
WITH include drop, create tables, no truncate, create indexes, reset sequences, foreign keys
SET maintenance_work_mem to '512MB', work_mem to '128MB', search_path to 'main'
CAST type datetime to timestamptz
BEFORE LOAD DO $$ CREATE SCHEMA IF NOT EXISTS main; $$
;
I get this:
But, when I remove the single-quotes, it works:
This my config: