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

Add regular ecto migration with numeric ids v2 schemas #2768

Conversation

aerosol
Copy link
Member

@aerosol aerosol commented Mar 20, 2023

Changes

This work is on top of, and against #2762.

Normally, for live environments the migration will be done via
DataMigration.NumericIDs module (TBD). In which case PASS_V2_SCHEMA_MIGRATION
environment variable needs to be set, to only make the standard migrate
command write an entry into schema_migrations table.

For tests, and entirely new self-hosted instances however,
we want to keep the ability of preparing the database without enforcing
any data migration.

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Entry has been added to changelog
  • This PR does not make a user-facing change

Documentation

  • Docs have been updated
  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

@aerosol aerosol changed the title Add regular ecto migration Add regular ecto migration with numeric ids v2 schemas Mar 20, 2023
@aerosol aerosol force-pushed the numeric-ids-migration-control-module branch from 83486ca to 06f22bc Compare March 21, 2023 09:19
@aerosol aerosol force-pushed the numerc-ids-migration-for-test-purposes branch from 461f043 to 3aac5fe Compare March 21, 2023 09:23
@aerosol
Copy link
Member Author

aerosol commented Mar 21, 2023

Rebased against #2762 after #2733

aerosol and others added 2 commits March 22, 2023 14:13
* Implement v2 events/sessions schema modules

* Clean up session schemas
@aerosol aerosol merged commit 7f29588 into numeric-ids-migration-control-module Mar 23, 2023
@aerosol aerosol deleted the numerc-ids-migration-for-test-purposes branch March 23, 2023 08:07
aerosol added a commit that referenced this pull request Mar 23, 2023
* Implement Numeric IDs migration

* Fix typo

* Mute credo for now

* Improve configurability and add stop_t

* Adjust to Ch/Chto only

* Fix opts key for dictionary password

* Add regular ecto migration with numeric ids v2 schemas (#2768)

* Add regular ecto migration

* Fix typo

* Update priv/ingest_repo/migrations/20230320094327_create_v2_schemas.exs

Co-authored-by: Vini Brasil <vini@hey.com>

* Implement v2 events/sessions schema modules (#2777)

* Implement v2 events/sessions schema modules

* Clean up session schemas

---------

Co-authored-by: Vini Brasil <vini@hey.com>

* Update moduledocs

---------

Co-authored-by: Vini Brasil <vini@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants