1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/appsettings/migrations
catborise a4ea23004f chore(appsettings): one squashed migration for a new database
0001_initial to 0024_log_retention_setting are mostly RunPython steps
that added, renamed, re-chose and described setting rows since 2020. A
squashed migration now creates the table in its final shape and inserts
the 38 rows those steps leave; it replaces all 24, so a new database
runs it alone. The 24 stay beside it, as Django's squashing expects
until every installation has applied them: a database that applied
them all records the squashed one without running anything, and one
that stopped between them (an older release, or an upstream
installation) applies the rest of them first.

Checked:
- on a new database its rows equal the old chain's (name, key, value,
  choices, description of every row);
- on a copy of a running panel's database (all 24 applied) migrate
  plans nothing for appsettings;
- a database migrated by the old code to 0023 applies 0024 and then
  records the squashed migration, with the same 38 rows;
- makemigrations finds no change.

It inserts its rows on the database being migrated, as the replaced steps
do. The tests of the replaced steps stay, since an installation that stopped
between them still runs them; the two that checked a few rows' columns
became one that checks every row's columns and description, and a value is
one of its choices.
2026-11-06 13:47:23 +03:00
..
0001_initial.py edit choices field length 2020-09-21 16:22:44 +04:00
0001_squashed_0024_log_retention_setting.py chore(appsettings): one squashed migration for a new database 2026-11-06 13:47:23 +03:00
0002_auto_20200527_1603.py replaced ugettext_lazy with gettext_lazy 2020-10-14 18:27:57 +06:00
0003_auto_20200615_0637.py edit choices field length 2020-09-21 16:22:44 +04:00
0004_auto_20200716_0637.py replaced ugettext_lazy with gettext_lazy 2020-10-14 18:27:57 +06:00
0005_auto_20200911_1233.py change choices size from 50 to 70 2020-09-11 15:35:32 +03:00
0006_auto_20220630_0717.py fix identation 2022-09-05 15:38:00 +03:00
0007_auto_20220905_0918.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
0008_auto_20220905_1459.py make adding cd-rom optional while vm creating. Add default value for cd-rom bus 2022-09-07 13:46:50 +03:00
0009_alter_appsettings_id.py Global setting for NIC type 2023-11-01 18:08:38 -04:00
0010_auto_20231030_1305.py Global setting for NIC type 2023-11-01 18:08:38 -04:00
0011_alter_appsettings_id.py if nic type is default then make it virtio 2024-02-28 08:16:44 +03:00
0012_remove_spice_qemu_console_type.py feat(console): remove deprecated SPICE support in favor of noVNC 2026-09-26 22:43:40 +03:00
0013_remove_qemu_console_default_type.py feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
0014_login_lockout_settings.py feat(locale): the Turkish catalog covers the whole panel 2026-10-31 21:56:24 +03:00
0015_remove_clone_instance_auto_migrate.py fix(instances): a clone stays on the host of the VM it was made from 2026-10-06 15:58:35 +03:00
0016_nic_type_rtl8139.py fix(instances): device edits fit every definition and device type 2026-10-09 18:13:23 +03:00
0017_snapshot_free_space_settings.py feat(locale): the Turkish catalog covers the whole panel 2026-10-31 21:56:24 +03:00
0018_worker_settings.py feat(locale): the Turkish catalog covers the whole panel 2026-10-31 21:56:24 +03:00
0019_prebuilt_themes.py build: the themes ship compiled, libsass is no longer installed 2026-10-18 22:36:29 +03:00
0020_fix_setting_choices.py fix(appsettings): settings take only the values the panel can use 2026-10-25 22:02:53 +03:00
0021_setting_descriptions.py feat(locale): the Turkish catalog covers the whole panel 2026-10-31 21:56:24 +03:00
0022_cpu_mode_choices.py fix(instances): a new VM's CPU is a mode or a model the host offers, checked by libvirt 2026-10-29 11:17:38 +03:00
0023_remove_bottom_bar.py feat(instances): the top of a VM's page in one card 2026-10-29 22:46:24 +03:00
0024_log_retention_setting.py feat(operations): the Logs page's rows and expired sessions are removed 2026-11-05 10:36:34 +03:00
__init__.py Add Settings page: Move theme & lang changer to settings page 2020-06-04 12:03:26 +03:00