FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Upgrading Database fails

    Scheduled Pinned Locked Moved
    Q&A
    2
    4
    458
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bchampion
      last edited by

      When doing a maintenance mode upgrade of the database, I am getting this error in the logs

      -- Update the version
      UPDATE version
      SET version = '1.18.0';
      . Cause: org.postgresql.util.PSQLException: ERROR: cannot drop table old_identities because other objects depend on it
      Detail: view verus_users depends on table old_identities
      Hint: Use DROP ... CASCADE to drop the dependent objects too.

      Any thoughts on why this would be occurring?

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        What version are you upgrading from/to?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        B 1 Reply Last reply Reply Quote 0
        • B
          bchampion @dan
          last edited by

          @dan 1.17.5 - 1.18.4

          1 Reply Last reply Reply Quote 0
          • danD
            dan
            last edited by

            Hmmmm.

            ...
            Detail: view verus_users depends on table old_identities
            ...
            

            I'm not familiar with the verus_users view and am not sure why that would be in the FusionAuth database. As far as I can tell, that isn't a standard part of the FusionAuth data model.

            Did someone at your organization perhaps create a view to get access to the FusionAuth data? If so, you'd need to remove that view manually to perform the upgrade, then recreate it later.

            Hope that helps.

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 0
            • First post
              Last post