Skip to content

applying auto migration does not rolled back the migration #1254

@Jacky56

Description

@Jacky56

Hello all,

Assume you have a auto migration which adds new columns:

1. manager.add_column(...)
2. manager.add_column(...)
3. manager.add_column(Some foreign key that doesn't exist as of yet will make the manager throw an error)
4. manager.add_column(...)

Now, what the piccolo.apps.migrations.auto.migration_manager.MigrationManager what will happen on the database:

  • add column 1
  • add column 2

now the manager will evaluate 3. but crash into an error, and will not rollback the 2 added columns on the database

piccolo version: piccolo[postgres]==1.24.2
cockroachDB version: Basic, Google Cloud v25.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions