Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-6792

[Migration 3.20 to 3.27]Failed to validate Schema: Schema-validation: wrong column type encountered in column

XMLWordPrintable

      Hi,

      per cu.

      ~~~

      I updated RH build of Qurkus from 3.20.0 to 3.27.0. After application start i get an error: ERROR [io.qua.hib.orm.run.sch.SchemaManagementIntegrator] (Hibernate post-boot validation thread for <default>) Failed to validate Schema: Schema-validation: wrong column type encountered in column [NAZIV_ENOTE] in table [T_ENOTA]; found nvarchar2 (Types#NULL), but expecting varchar2(20 char) (Types#VARCHAR).

      ~~~

      As part of workaround , below suggestion to use columnDefinition works

      ~~~

       @Column(name = "NAZIV_ENOTE", columnDefinition = "NVARCHAR2(20)", nullable = false, updatable = false)

      ~~~

       

      However, cu. feels this fix is not viable, as it involves manually fixing all properties.

      Is there better way to fix this issue? Kindly advise

              ddalto@redhat.com Davide D'Alto
              rhn-support-asaji Anu Saji
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: