Giter VIP home page Giter VIP logo

Comments (2)

michaelsogos avatar michaelsogos commented on August 24, 2024

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.

viktorsamokov avatar viktorsamokov commented on August 24, 2024

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:
image
But later we change the value of the field to:
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.