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

Start using CodeIgniter DB migrations #213

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

notartom
Copy link
Member

@notartom notartom commented Apr 1, 2024

We've already done a few schema changes "out of band", but with
#212 we now have a
situation where a schema change is needed in a PR for the code to
work, and since we have no way to supply that, our CI (continuous
integration, not Code Igniter), basic such as it is, fails because the
schema that the code relies on is not deployed in the CI VM.

In addition, tracking schema changes inline with migrations is just
good standard practice.

This patch starts making use of Code Igniter's DB migrations framework
(https://codeigniter.com/userguide3/libraries/migration.html) to allow
PRs to include schema changes. There will be a librivox-ansible
follow-up patch to run the DB migrate script on every deployment.

We've already done a few schema changes "out of band", but with
LibriVox#212 we now have a
situation where a schema change is needed in a PR for the code to
work, and since we have no way to supply that, our CI (continuout
integration, not Code Ingiter), basic such as it is, fails because the
schema that the code relies on is not deployed in the CI VM.

In addition, tracking schema changes inline with migrations is just
good standard practice.

This patch starts making use of Code Igniter's DB migrations framework
(https://codeigniter.com/userguide3/libraries/migration.html) to allow
PRs to include schema changes. There will be a librivox-ansible
follow-up patch to run the DB migrate script on every deployment.
@notartom notartom merged commit 27d11d7 into LibriVox:master Apr 1, 2024
1 check passed
@notartom notartom deleted the code-igniter-migrations branch April 1, 2024 15:02
notartom added a commit to notartom/librivox-ansible that referenced this pull request Apr 1, 2024
Following up on LibriVox/librivox-catalog#213,
run the DB migrate command to enable CI to pass when DB schema changes
are needed.
notartom added a commit to notartom/librivox-ansible that referenced this pull request Apr 1, 2024
Following up on LibriVox/librivox-catalog#213,
run the DB migrate command to enable CI to pass when DB schema changes
are needed.
notartom added a commit to LibriVox/librivox-ansible that referenced this pull request Apr 1, 2024
Following up on LibriVox/librivox-catalog#213,
run the DB migrate command to enable CI to pass when DB schema changes
are needed.
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.

1 participant