Comments (2)
Hi Viktor,
I'm not able to replicate the issue.
Can you please share the DDL for source table and target table in order to replicate your issue.
FYI: I tested both cases, when source removed NOT NULL flag, and also the opposite;
from pg-diff.
Hi Viktor,
I'm not able to replicate the issue.
Can you please share the DDL for source table and target table in order to replicate your issue.
FYI: I tested both cases, when source removed NOT NULL flag, and also the opposite;
Hi Michael,
Just to be on the same page, not removing the data type of the field, but changing the value (data) of the field from NULL to some value. For example if we have this column with these values:
But later we change the value of the field to:
These changes are not detected by the pg-diff.
The DDL sources are as follow:
SOURCE:
CREATE TABLE public.voucher_reasons ( id_voucher_reason serial NOT NULL, default_value float8 NULL, "name" varchar(50) NOT NULL, id_reason_type int4 NOT NULL, id_vat_rate int4 NOT NULL, created_on timestamp NOT NULL, modified_on timestamp NOT NULL, created_by int4 NOT NULL, modified_by int4 NOT NULL, status_reason int4 NOT NULL, status_changed_on timestamp NOT NULL, status int4 NOT NULL, id_cloud int4 NULL, is_reserved bool NOT NULL DEFAULT false, default_expiration varchar(50) NULL, expiration_readonly bool NOT NULL DEFAULT true, barcode_expression varchar(200) NULL, CONSTRAINT voucher_reasons_pkey PRIMARY KEY (id_voucher_reason) )
TARGET:
CREATE TABLE public.voucher_reasons ( id_cloud int4 NULL, status int4 NOT NULL, status_reason int4 NOT NULL, modified_by int4 NOT NULL, created_by int4 NOT NULL, id_vat_rate int4 NOT NULL, id_reason_type int4 NOT NULL, id_voucher_reason serial NOT NULL, default_value float8 NULL, "name" varchar(50) NOT NULL, status_changed_on timestamp NOT NULL, modified_on timestamp NOT NULL, created_on timestamp NOT NULL, is_reserved bool NOT NULL DEFAULT false, default_expiration varchar(50) NULL, expiration_readonly bool NOT NULL DEFAULT true, barcode_expression varchar(200) NULL, CONSTRAINT voucher_reasons_pkey PRIMARY KEY (id_voucher_reason) )
from pg-diff.
Related Issues (20)
- error: type "regrole" does not exist HOT 2
- It does not appear that the tool retrieve stored proc differences nor new or dropped one HOT 2
- Errors are printed to stdout instead of stderr HOT 3
- Feature request: some options and defaults for file handling HOT 6
- Feature request: Remove the need for the 'namespaces' field in the config HOT 3
- Redshift compatibility HOT 1
- Feature Request: Compare comments HOT 6
- Column Does not Exist HOT 8
- Data Compare - Arrays HOT 5
- Options to remove IF EXISTS (and similar) statements from generated scripts HOT 5
- Schema not specified for `COMMENT ON INDEX` statements, leading to RELATION ... DOES NOT EXIST HOT 3
- Data compare doesn't detect updates of NULL values HOT 2
- Triggers not implemented? HOT 3
- Please provide sample diff output in documentation HOT 1
- How to generate separate scripts for Functions only and Tables Only HOT 1
- Disabling comments HOT 1
- create type not implemented? HOT 1
- migration option historyTableSchema HOT 1
- SSL options HOT 1
- Feature Request: Support for Incremental Materialized Views HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-diff.