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:
ALTER TABLE "messages_messagesending"
ALTER COLUMN "id" TYPE bigint DEFAULT next_sharded_id()
USING "id"::bigint
-- What's this for?
DEFAULT next_sharded_id();
I've tried migrated 32-bit id field to PostgresShardForeignKey
And got error:
Here is what
manage.py sqlmigratecommand shows: