Skip to content

truncate() should allow resetting sequences. #5356

Closed

Description

@sushantdhiman

Model.truncate() method should optionally allow to reset the sequence of the primary key; It can be achieved by adding these queries

  • Postgres truncate table table_name restart identity;

Activity

  1. added
    type: feature
    on Feb 3, 2016
  2. xorbis commented on Jun 23, 2016

    @xorbis

    Can truncate reset sequences now?
    The reference by kylehotchkiss does not seem related.

  3. janmeier commented on Jun 23, 2016

    @janmeier
    Member

    The issue is still open, so that would be a no :)

  4. janmeier commented on Jun 23, 2016

    @janmeier
    Member

    The reference is not present in the linked issue, so must have been a typo

  5. xorbis commented on Jun 23, 2016

    @xorbis

    I look forward to this feature, thanks for the quick reply, you guys are awesome.

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

    type: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions