Skip to content

I've tried migrated 32-bit id field to PostgresShardForeignKey #72

@M1ha-Shvn

Description

@M1ha-Shvn

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions