Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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