lablup / lablup/backend.ai

Add an action to check for differences between sqlalchemy and alembic

Open
#6,514 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Motivation  

[Why is this Task important? Explain the context and reasons for this task.]  

- Due to mistakes, there is often a mismatch between the alembic migration file and the metadata currently written in sqlalchemy.

## Objective  

[Clearly state the purpose or goal of this task.]  

- Added action to github action to check if schema poured with slqalchemy metadata and autogenerated script with alembic revision --autogenerate is empty

## Details  

[Outline the specific steps or changes needed to complete this task.]  

1. Make sure that the upgrade, downgrade functions are empty when you run alembic revision.
1. Add that task to your CI workflow.

## Impact  

[Describe how this task may indirectly influence other services, if at all.]  

-

JIRA Issue: BA-542

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.