Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

database updates (migrations)

  • bismark
  • bismark's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 weeks ago #181254 by bismark
database updates (migrations) was created by bismark
Assume I update my Limesurvey instance via git pull and there are any database updates.
There is a Console Command "updatedb".

Code:
php application/commands/console.php dbupdate

How I do I get noticed about new "migrations"?
Is it good practice to call the command after git pull every time?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 weeks ago #181264 by DenisChenu
Replied by DenisChenu on topic database updates (migrations)
dbupdate test if update must be done (or not) and don't send an exception if it's not needed
github.com/LimeSurvey/LimeSurvey/blob/ma...ateDbCommand.php#L49

Then you can use it.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 weeks ago #181269 by tpartner
Replied by tpartner on topic database updates (migrations)
I don't follow. Do we need to run this when updating via GIT? I have never done so.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 weeks ago #181274 by DenisChenu
Replied by DenisChenu on topic database updates (migrations)
If you don't do it : it's done when you connect to admin : github.com/LimeSurvey/LimeSurvey/blob/59...nController.php#L123

Really really rarely needed

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 weeks ago #181276 by tpartner
Replied by tpartner on topic database updates (migrations)
Thanks Denis.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose