Commit Graph

12 Commits (ac6cc435d4fc49b1320857c6cfa52650147f1637)

Author SHA1 Message Date
Stephane Mangin ac6cc435d4 [IMP] database_cleanup: black, isort, prettier 2023-02-09 12:09:19 +02:00
OCA-git-bot d6e2d97a9b database_cleanup 12.0.1.0.1 2023-02-09 12:09:19 +02:00
Martin Trigaux 0c9705d7ab [MIG] database_cleanup: migration to 12.0
Update version number
Use correct import
Update .pot to match new syntax
Adapt icon to fontawesome
Add models description
Rename field external id to new syntax <model>__<field>
2023-02-09 12:09:19 +02:00
Simone Orsi 0cec1c0c7d Global pylint cleanup 2023-02-09 12:09:19 +02:00
Holger Brunn 339fe0d60e [ADD] [database_cleanup] migrate to 11.0 2023-02-09 12:09:19 +02:00
Eric Antones 31d5881ec3 [MIG] database_cleanup: Migration to version 10.0
Using new base model inheritance.
2023-02-09 12:09:19 +02:00
Holger Brunn 5b2a5a3b65 [ADD] allow creating missing indexes and purging properties (#736)
* [ADD] allow creating missing indexes

* [FIX] tests; installation

* [ADD] allow purging properties

* [ADD] missing file

* [ADD] test purging properties

* [ADD] missing parent_id for menu entry

* [FIX] don't delete too many and wrong properties
2023-02-09 12:09:19 +02:00
Holger Brunn 316680ada2 [ADD] migrate database_cleanup
[ADD] test purging modules

[ADD] test purging tables
2023-02-09 12:09:19 +02:00
Holger Brunn 419988f770 [ADD] allow to clean up menus 2023-02-09 12:09:19 +02:00
Anthony Muschang b0f17049b3 [CHG] Migration to 8.0
[CHG] database_cleanup: move description to README.rst
2023-02-09 12:09:19 +02:00
Stefan Rijnhart c66ca7a3a7 [FIX] Don't remove uid field from wkf_instance, which is written in
raw SQL query (but never read afterwards). Workaround for
    lp:1277899

[FIX] Preserve dangling workflow table which is in use

[RFR] Group models per table when detecting columns to purge
      to prevent problems with models sharing the same table

[ADD] Allow purging of dangling data entries

[FIX] Data purging now working

[IMP] Docstrings

[FIX] Label
[FIX] Catch attempt to unlink field from nonexisting model

[RFR] Flake8
2023-02-09 12:09:19 +02:00
Stefan Rijnhart 41a7e46b7e [ADD] Database cleanup module 2023-02-09 12:09:19 +02:00