You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried migrated 32-bit id field to PostgresShardForeignKey
And got error:
django.db.utils.ProgrammingError: syntax error at or near "DEFAULT"
LINE 1: ...sages_conversation" ALTER COLUMN "id" TYPE bigint DEFAULT ne...
Here is what manage.py sqlmigrate command shows:
ALTERTABLE"messages_messagesending"
ALTER COLUMN "id" TYPE bigint DEFAULT next_sharded_id()
USING "id"::bigint-- What's this for?
DEFAULT next_sharded_id();
The text was updated successfully, but these errors were encountered:
It's been 2 months since this issue was created =) I don't even remember where I caught it. But I guess you are right, as tables' id field is shown in the query, not foreign key to sharding model.
I've tried migrated 32-bit id field to PostgresShardForeignKey
And got error:
Here is what
manage.py sqlmigrate
command shows:The text was updated successfully, but these errors were encountered: