Albert Cervera i Areny
8053dc2fef
Add missing Loader parameter when loading override file.
2021-10-15 09:56:05 +02:00
Albert Cervera i Areny
a779e5bd0b
Use text=True on Popen() call because bufsize=1 is only supported in
...
text mode.
2021-10-03 23:08:33 +02:00
Albert Cervera i Areny
e7b2b1d9ae
Specify a loader to yaml.load.
2021-08-25 00:52:55 +02:00
Raimon Esteve
6dda995a24
FIX to_install parameters
2021-07-12 21:56:44 +02:00
Raimon Esteve
21571e82c4
Allow override in case has data
2021-07-07 18:05:48 +02:00
Albert Cervera i Areny
4491e8ad4e
Fix typo.
2021-06-22 15:37:16 +02:00
Albert Cervera i Areny
80f9bc60b3
Add --activate-dependencies to upgrade.
2021-06-04 12:21:54 +02:00
Albert Cervera i Areny
0950cd24fb
Adapt upgrade script to work without trytond.conf.
2021-05-14 18:01:51 +02:00
Albert Cervera i Areny
e74a1ba5ae
Allow adding commands 'before_before' and 'before_after' in override.yml.
2020-09-15 11:23:54 +02:00
Albert Cervera i Areny
96bb186ad1
Allow defining environment variables in the configuration files.
...
Use them in the upgrade_account_chart.py script
2019-09-06 00:15:48 +02:00
Albert Cervera i Areny
f7fe6ede59
Use class properties instead of using config global varialb in Upgrade class.
2019-08-14 11:58:26 +02:00
Albert Cervera i Areny
b57116fa5a
Allow configuring override file and ignore messages.
...
Added the possibility of ignoring some warnings in config.yml/upgrade.yml using
the 'ignore' key.
Also, allow specifying the name of the override file from the command line.
2019-07-17 00:43:29 +02:00
Albert Cervera i Areny
c4cecf8f14
Show the number of errors and warnings in the summary report.
2019-07-09 18:26:21 +02:00
Albert Cervera i Areny
aede1c50f3
Create a new cursor in each step.
2019-07-09 00:18:18 +02:00
Albert Cervera i Areny
94dbf8e9cb
Remove some unnecessary messages: we already tell the user the step that is about to be executed.
2019-07-05 18:22:50 +02:00
Albert Cervera i Areny
3bead29512
Avoid calling sys.exit() in the middle of the upgrade process so we always show elapsed time.
2019-07-05 18:16:40 +02:00
Albert Cervera i Areny
dcb0efc5a5
Show elapsed time at the end of the script.
2019-07-05 18:11:44 +02:00
Albert Cervera i Areny
2665dec36e
Abort the upgrade process if a script is not found or fails (errorcode != 0).
2019-07-05 18:06:53 +02:00
Albert Cervera i Areny
e9174b856e
Allow defining which steps are executed from the command line.
...
The new --from and --until command line parameters have been implemented which
allow users to execute only some of the steps of the upgrade process.
A new Upgrade() class has been created to better manage database connection and
better encapsulation.
2019-07-05 18:00:48 +02:00
Albert Cervera i Areny
bbdb22e8a6
Close database connection before running scripts
2019-07-05 15:21:41 +02:00
Albert Cervera i Areny
a813ef4713
Show an error if no configuration file could be found.
2019-05-30 18:01:13 +02:00
Albert Cervera i Areny
093894fa43
Do not crash if config_file is None.
2019-02-01 23:08:20 +01:00
Raimon Esteve
9e492a5e17
Upgrade to py3
2018-09-28 01:09:27 +02:00
?ngel ?lvarez
e87970b60e
fix som issues
2018-07-05 20:18:14 +02:00
?ngel ?lvarez
1b071d6350
merge
2018-05-30 12:52:10 +02:00
Raimon Esteve
efa32b5b6f
Add new 'where' section to execute an upgrade
2018-06-05 08:15:46 +02:00
Raimon Esteve
81d9873974
FIX babi upgrade when babi_report is installed
2018-06-05 08:15:08 +02:00
Albert Cervera i Areny
bc0874ce91
Ensure tables exist before executing SQL queries.
2018-05-29 00:55:46 +02:00
?ngel ?lvarez
b440801c50
add some queries to uninstall modules
2018-02-27 12:34:09 +01:00
?ngel ?lvarez
7f0e1802b7
add query to uninstall modules
2018-02-14 16:12:30 +01:00
Raimon Esteve
fd50a790e7
Check config file exist
2018-02-06 17:21:21 +01:00
?ngel ?lvarez
7cfb47dc85
add module to install
2017-12-06 10:14:44 +01:00
?ngel ?lvarez
35ffe087cf
merge
2017-04-19 09:54:53 +02:00
Albert Cervera i Areny
a9a5daa223
In run(), process both stdout and stderr, and report as error any Traceback found.
2017-04-17 21:52:45 +02:00
?ngel ?lvarez
588c8060f4
fix run function to avid deadlock
2017-03-22 18:58:49 +01:00
Raimon Esteve
6be14b3148
Show red the Not found script message
2017-03-15 09:17:06 +01:00
Raimon Esteve
27ac94ecbf
Defined relative path script in YML
2017-03-15 09:10:53 +01:00
Raimon Esteve
e7a40002dd
Add before/after options to custom in upgrade YML
2017-03-14 16:13:01 +01:00
Raimon Esteve
33c81cf4ce
FIX upgrade action when version > trytond version
2017-03-13 17:44:31 +01:00
Albert Cervera i Areny
cf34024777
Use appropriate filename.
2017-02-13 00:51:15 +01:00
Albert Cervera i Areny
4dac4fc509
Fix configuration file checking.
2017-02-13 00:46:25 +01:00
Albert Cervera i Areny
e7109d3b24
Use the same method to find the configuration file as server.py.
2017-02-13 00:37:34 +01:00
Albert Cervera i Areny
65f3f6c641
Add +x to upgrade script.
2017-01-24 10:04:37 +01:00
Albert Cervera i Areny
7477d146a0
Do not add modules to install on second trytond-admin execution.
2017-01-24 09:54:14 +01:00
Albert Cervera i Areny
9ce1fab102
Run trytond again after processing the 'after' actions.
2017-01-23 23:33:16 +01:00
Albert Cervera i Areny
c9182911e4
Remove purge functionallity.
2017-01-23 23:32:26 +01:00
Albert Cervera i Areny
147cc695e2
PEP8.
2017-01-23 22:57:04 +01:00
Albert Cervera i Areny
b59022413e
Execute before actions before uninstalling modules.
2017-01-23 22:55:01 +01:00
Albert Cervera i Areny
702f63d1b6
Require version number of the database being migrated from.
2017-01-23 22:50:28 +01:00
Albert Cervera i Areny
dc7f1ba1be
Really group summary by descarding timestamp from the log.
2017-01-21 02:17:09 +01:00