Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move site imports migration to clickhouse repo #4316

Closed

Conversation

ruslandoga
Copy link
Contributor

@ruslandoga ruslandoga commented Jul 6, 2024

Changes

When upgrading from v2.0.0 to v2.1.1 site_imports data migration fails because import_id columns are missing from ClickHouse tables at the time of the migration. This happens because PostgreSQL migrations run before ClickHouse migrations that add import_id columns. This PR moves site_imports data migration from PostgreSQL migrations to Clickhouse migrations.

Converting this to Draft to test the following scenarios:

  • Plausible Cloud: how removing existing repo/ migration affects Plausible.Repo (would rollback ignore it or fail?)
  • Upgrading Plausible CE from v2.1.1: check how migration is skipped
  • Upgrading Plausible CE from v2.0.0: check how nested with_repo interact

Reviews are still welcome!

Tests

  • Automated tests have been added

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@ruslandoga ruslandoga requested a review from zoldar July 6, 2024 10:11
@ruslandoga ruslandoga removed the request for review from zoldar July 6, 2024 10:40
@ruslandoga ruslandoga marked this pull request as draft July 6, 2024 10:40
@ruslandoga ruslandoga added the self-hosting Anything self-hosted label Jul 7, 2024
@ruslandoga
Copy link
Contributor Author

ruslandoga commented Aug 24, 2024

Closing in favor of "global" ordering of pending migrations: #4466

@ruslandoga ruslandoga closed this Aug 24, 2024
@ruslandoga ruslandoga deleted the move-site-imports-migration-to-clickhouse-repo branch September 23, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
self-hosting Anything self-hosted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant