[GH-ISSUE #3651] Docker build issue #1877

Closed
opened 2026-02-27 11:19:40 +03:00 by kerem · 1 comment
Owner

Originally created by @Spitfireap on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3651

Docker fails to build due to migration n°24 failing with sqlite. This is probably due to the use of the deprecated unique_together in the migration.

Originally created by @Spitfireap on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3651 Docker fails to build due to migration n°24 failing with sqlite. This is probably due to the use of the deprecated unique_together in the migration.
kerem closed this issue 2026-02-27 11:19:41 +03:00
Author
Owner

@Spitfireap commented on GitHub (Aug 1, 2025):

I'm suspecting the migration to actually do strictly nothing (with psql at least) :

python manage.py sqlmigrate core 0025_rename_user_email_is_active_core_user_email_c0c03f_idx
BEGIN;
--
-- Rename unnamed index for ('email', 'is_active') on user to core_user_email_c0c03f_idx
--
-- (no-op)
COMMIT;
(env) modoboa@mail:~/instance$ python manage.py sqlmigrate --backwards core 0025_rename_user_email_is_active_core_user_email_c0c03f_idx
BEGIN;
--
-- Rename unnamed index for ('email', 'is_active') on user to core_user_email_c0c03f_idx
--
-- (no-op)
COMMIT;
<!-- gh-comment-id:3144787845 --> @Spitfireap commented on GitHub (Aug 1, 2025): I'm suspecting the migration to actually do strictly nothing (with psql at least) : ``` python manage.py sqlmigrate core 0025_rename_user_email_is_active_core_user_email_c0c03f_idx BEGIN; -- -- Rename unnamed index for ('email', 'is_active') on user to core_user_email_c0c03f_idx -- -- (no-op) COMMIT; (env) modoboa@mail:~/instance$ python manage.py sqlmigrate --backwards core 0025_rename_user_email_is_active_core_user_email_c0c03f_idx BEGIN; -- -- Rename unnamed index for ('email', 'is_active') on user to core_user_email_c0c03f_idx -- -- (no-op) COMMIT; ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1877
No description provided.