J
J
Jekson2020-10-12 14:50:35
Django
Jekson, 2020-10-12 14:50:35

Command to view contents of migration file?

After listing migrations
python manage.py showmigrations --list

action
 [X] 0001_initial
 [X] 0002_auto_20190322_0642
activitylog
 [X] 0001_initial
 [X] 0002_auto_20190621_1051
attend
 [X] 0001_initial
 [X] 0002_auto_20190514_0712
auth
 [X] 0001_initial
 [X] 0002_alter_permission_name_max_length


How can I find out the contents of the 002_alter_permission_name_max_length migration file from the command line?

ps file path unknown

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-10-12
@Lepilov

If in Unix-like:
cat <путь до файла миграции>
If in windows-like - then
type <путь до файла миграции>
How to find out the path:
5f8454843544e312907681.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question