Book a Demo

Author Topic: Automatic EA database schema "upgrades" / "downgrades"  (Read 4441 times)

mtamme

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Automatic EA database schema "upgrades" / "downgrades"
« on: April 18, 2018, 09:36:54 pm »
Hi!

We have around 30 EA installations which are connected to a shared PostgreSQL EA repository. Occasionally we experience some kind of database schema "upgrades" / "downgrades" when the "Version" property in the usys_system table changes from 4.01 to 7.0 or the other way around.

My questions are now as follows:

1) What's the reason for these version changes?
2) Why is only the version changed and not the "VersionDate" too?
2) How can this be fixed?
3) Are there also other changes happening in the database which we are not aware of?

Thanks,
Martin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatic EA database schema "upgrades" / "downgrades"
« Reply #1 on: April 18, 2018, 09:49:28 pm »
Martin,

Can you also explain how/why this is a problem for you?

Geert

mtamme

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automatic EA database schema "upgrades" / "downgrades"
« Reply #2 on: April 18, 2018, 11:19:13 pm »
Hi Geert,

we just recognized the issue since we check the 'Version' property before we execute some SQL scripts via the EA Automation Interface. With this check we just want to ensure compatibility with the current EA database schema. Since we only checked for version 4.01, which is (what we experienced) the default for EA 9.3 till 13.5 we had a problem when suddenly version 7.0 appeared in the usys-system table. But after a while version 7.0 disappeared and version 4.01 was back again.

We didn't experience any problems right now, except that our compatibility check failed. My main question is, if there are some other changes going on inside the database during these "upgrades" / "downgrades" which we are not aware of or is there generally another way to check compatibility with the EA database schema?

Thanks,
Martin

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Automatic EA database schema "upgrades" / "downgrades"
« Reply #3 on: April 19, 2018, 09:21:54 am »
From memory, enabling auditing upgrades the version to 7.0 to that versions of EA prior to version 7 know they shouldn't use it.

Disabling auditing either gives you the option of going back to 4.01 or does it automatically.

In a similar way, if you set a minimum EA version in the model options, it changes the version to something that old versions of EA that don't know about the option just set won't open.

mtamme

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automatic EA database schema "upgrades" / "downgrades"
« Reply #4 on: April 19, 2018, 06:11:57 pm »
This was the answer I was looking for.

Thank you Simon!