Replies: 1 comment 3 replies
-
@chilico I can't reproduce it. In my case everything works. You must pass the (piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations forwards home
👍 2 migrations already complete
⏩ 1 migration not yet run
🚀 Running 1 migration:
- 2024-10-04T15:18:21:985721 [forwards]... ok! ✔️
(piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations check
Listing migrations ...
APP NAME | MIGRATION_ID | DESCRIPTION | RAN
home | 2024-10-04T15:17:31:858521 | | True
home | 2024-10-04T15:18:21:985721 | | True <-- after forwards is True
(piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations backwards home 2024-10-04T15:18:21:985721
Reverse 1 migration? [y/N] y
- 2024-10-04T15:18:21:985721 [backwards]... ok! ✔️
(piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations check
Listing migrations ...
APP NAME | MIGRATION_ID | DESCRIPTION | RAN
home | 2024-10-04T15:17:31:858521 | | True
home | 2024-10-04T15:18:21:985721 | | False <-- after reversing is False
(piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations forwards home
👍 2 migrations already complete
⏩ 1 migration not yet run
🚀 Running 1 migration:
- 2024-10-04T15:18:21:985721 [forwards]... ok! ✔️
(piccolo_env) rkl@mint21:~/dev/piccolo_env/test$ piccolo migrations check
Listing migrations ...
APP NAME | MIGRATION_ID | DESCRIPTION | RAN
home | 2024-10-04T15:17:31:858521 | | True
home | 2024-10-04T15:18:21:985721 | | True <-- after forwards is True |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had to rename a table, which works fine:
The issue comes when I try and reverse:
We're early in development and fortunately can drop and create as a workaround, but I want to know if I'm doing something wrong or whether this is an issue that needs fixing.
Beta Was this translation helpful? Give feedback.
All reactions