Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-2012

Cannot add foreign key to Post_Category

XMLWordPrintable

      [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 66) HHH000388: Unsuccessful: alter table Post_Category add index FK_g8au94h7jgtb4x69boctbqy56 (Post_id), add constraint FK_g8au94h7jgtb4x69boctbqy56 foreign key (Post_id) references Post (id)
      

      Looks like old data are not clean. Probably post_id is missing in some rows.

              lkrzyzan@redhat.com Libor Krzyzanek
              lkrzyzan@redhat.com Libor Krzyzanek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: