joncrlsn / pgdiff

Compares the PostgreSQL schema between two databases and generates SQL statements that can be run manually against the second database to make their schemas match.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature - Allow using Multiple schemaTypes

ibigpapa opened this issue · comments

Running the following will only select the SCHEMA and not TABLE COLUMN

./pgdiff -U <user> -W <pass> -H <host> -D <db> -O <options> -S <schema> \
-u <user> -w <pass> -h <host> -d <db> -o <options> -s <schema> \
SCHEMA TABLE COLUMN

-- schemaType: SCHEMA
-- db1: {<db> <host> <port> <user> <password> <schema> <options>}
-- db2: {<db> <host> <port> <user> <password> <schema> <options>}
-- Run the following SQL against db2:

Ideally this would actually run all 3 SCHEMA TABLE COLUMN in specified order or combined.