Model-Änderungen ohne Migrations
Bei der TUC-Card-Migration ist mir ein Fehler im Kontext der Model-Journal-App aufgefallen. Das Anwenden der Migrations ging zunächst gut.
(tuccard)hamari1@gumba:/var/www/django/tuccard/app$ ./manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, card, contenttypes, desfire_db, fountain_groups, jobutils, mifare_db, model_journal, psdproxy, sessions, stuweshop, target, urztools
Running migrations:
Applying card.0011_alter_card_id_alter_cardjournal_id_alter_client_id... OK
Applying card.0012_alter_card_token... OK
Applying desfire_db.0006_alter_desfireapp_id_alter_desfireappfiletpl_id_and_more... OK
Applying desfire_db.0007_alter_desfireappkey_value_alter_desfireapptpl_desc_and_more... OK
Applying fountain_groups.0002_alter_fountaingroup_id... OK
Applying psdproxy.0005_alter_psdtestcard_id_alter_psduser_id... OK
Applying stuweshop.0003_auto_20220621_1023... OK
Applying stuweshop.0004_alter_stuwearticlewhitelist_id_and_more... OK
Applying target.0004_alter_target_id... OK
Bei einer anschließenden Kontrolle kam aber ein Fehler:
(tuccard)hamari1@gumba:/var/www/django/tuccard/app$ ./manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, card, contenttypes, desfire_db, fountain_groups, jobutils, mifare_db, model_journal, psdproxy, sessions, stuweshop, target, urztools
Running migrations:
No migrations to apply.
Your models in app(s): 'model_journal' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
(tuccard)hamari1@gumba:/var/www/django/tuccard/app$ ./manage.py makemigrati^C
(tuccard)hamari1@gumba:/var/www/django/tuccard/app$ ./manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, card, contenttypes, desfire_db, fountain_groups, jobutils, mifare_db, model_journal, psdproxy, sessions, stuweshop, target, urztools
Running migrations:
No migrations to apply.
Your models in app(s): 'model_journal' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Ich kann den Fehler aber nicht lokal in der Entwicklungsumgebung reproduzieren.
Die Versionsstände auf dem Server sind wie folgt.
(tuccard)hamari1@gumba:/var/www/django/tuccard/app$ pip freeze
Dropping privileges to user django-sw-tuccard
asgiref==3.8.1
asttokens==2.4.1
backcall==0.2.0
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
coverage==7.4.3
crispy-bootstrap3==2024.1
cryptography==42.0.5
decorator==5.1.1
Django==4.2.11
django-crispy-forms==2.1
django-filter==24.2
-e git+https://gitlab.hrz.tu-chemnitz.de/urz-django/fountain.git@886aa46aa1e1974e24a056063add88504f7eb37c#egg=django_fountain
-e git+https://gitlab.hrz.tu-chemnitz.de/urz-django/fountain-groups.git@bf85be67666e90bd57b00812427dd265ff99725e#egg=django_fountain_groups
-e git+https://gitlab.hrz.tu-chemnitz.de/urz-django/django-model-journal.git@c0eb938303b5a88bcc0e7f28752261403cc44d8b#egg=django_model_journal
-e git+https://gitlab.hrz.tu-chemnitz.de/urz-django/tuc2014.git@faf6a864e1b7d873ea6f0c7f4f279b581cef601b#egg=django_tuc2014
-e git+https://pip.hrz.tu-chemnitz.de/git/urztools.git@f6fd63fd0e0dc4d3ef65eed4fcf3cdd6be8e9e51#egg=django_urztools
djangorestframework==3.14.0
exceptiongroup==1.2.0
executing==2.0.1
hexdump==3.3
idna==3.7
importlib_metadata==7.1.0
ipython==8.18.1
jedi==0.19.1
jsonfield==3.1.0
ldap3==2.9.1
lxml==4.9.4
Markdown==3.6
matplotlib-inline==0.1.6
mysqlclient==2.2.4
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pkg_resources==0.0.0
prompt-toolkit==3.0.43
psycopg==3.1.18
psycopg-binary==3.1.18
psycopg2-binary==2.9.9
ptyprocess==0.7.0
pure-eval==0.2.2
pyasn1==0.6.0
pycparser==2.22
Pygments==2.17.2
python-dateutil==2.9.0.post0
pytz==2024.1
requests==2.31.0
requests-mock==1.12.1
six==1.16.0
sqlparse==0.4.4
stack-data==0.6.3
traitlets==5.14.2
typing_extensions==4.11.0
urllib3==2.2.1
wcwidth==0.2.13
zipp==3.18.1