Skip to content

fix: Align server default for system_created#276

Open
mesemus wants to merge 2 commits into
inveniosoftware:masterfrom
oarepo:fix-alembic-migrations
Open

fix: Align server default for system_created#276
mesemus wants to merge 2 commits into
inveniosoftware:masterfrom
oarepo:fix-alembic-migrations

Conversation

@mesemus
Copy link
Copy Markdown

@mesemus mesemus commented Apr 25, 2026

Description

This PR aligns database schema (from alembic migrations) with the Python column definition by adding a server-side default on the database definition that is already present in alembic migrations.

Note: tests need inveniosoftware/invenio-accounts#551 to succeed.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

mesemus added 2 commits May 15, 2026 15:20
* alembic migration recipe uses
  server-side default, but the
  model does not.
* fixed by adding the default to
  the model
@mesemus mesemus force-pushed the fix-alembic-migrations branch from c6c1e93 to 22240ad Compare May 15, 2026 13:21
@mesemus mesemus changed the title fix: Remove server default for system_created fix: Align server default for system_created May 15, 2026
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