File: exhausted.load

package info (click to toggle)
pgloader 3.6.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,060 kB
  • sloc: sql: 32,321; lisp: 14,793; makefile: 435; sh: 85; python: 26
file content (15 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LOAD DATABASE
     FROM      mysql://root@localhost:3306/exhausted
     INTO postgresql:///exhausted

 WITH include drop, create tables, create indexes, reset sequences, truncate

 CAST type datetime to timestamptz drop default drop not null using zero-dates-to-null,
      type date drop not null drop default using zero-dates-to-null,
      type timestamp to timestamptz drop not null using zero-dates-to-null,

      -- now the default for tinyint(1)
      -- column bools.a to boolean drop typemod using tinyint-to-boolean,

      -- override char(1) to varchar(1), just use char(1) here.
      type char when (= precision 1) to char keep typemod;