I’m running: liquibase generateChangeLog
I am getting an output file, but it’s only generating a view that exists on both database servers, and none of the diffs with regards to table schema are there. So I’m pretty sure I’m doing something wrong. But I don’t know what. The view that’s getting generated is this:
CREATE VIEW pg_stat_statements AS SELECT pg_stat_statements.userid,
pg_stat_statements.dbid,
pg_stat_statements.queryid,
pg_stat_statements.query,
pg_stat_statements.calls,
pg_stat_statements.total_time,
pg_stat_statements.min_time,
pg_stat_statements.max_time,
pg_stat_statements.mean_time,
pg_stat_statements.stddev_time,
pg_stat_statements.rows,
pg_stat_statements.shared_blks_hit,
pg_stat_statements.shared_blks_read,
pg_stat_statements.shared_blks_dirtied,
pg_stat_statements.shared_blks_written,
pg_stat_statements.local_blks_hit,
pg_stat_statements.local_blks_read,
pg_stat_statements.local_blks_dirtied,
pg_stat_statements.local_blks_written,
pg_stat_statements.temp_blks_read,
pg_stat_statements.temp_blks_written,
pg_stat_statements.blk_read_time,
pg_stat_statements.blk_write_time
FROM pg_stat_statements(true) pg_stat_statements(userid, dbid, queryid, query, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time);;
I’d like to confirm the following liquibase properties:
- “referenceUrl”: This is the url for the database SUPPLYING THE CHANGES
- “url”: This is the url for the database WHERE THE CHANGES ARE GOING
Finally, In my liquibase properties, I have the following:
- changeLogFile
- url
- driver
- username
- password
- referenceDriver
- referenceUrl
- referenceUsername
- referencePassword
- logLevel
- logFile
- classpath
From what I understand, I don’t need to provide a default schema. To reiterate: What am I doing wrong? Much thanks in advance!