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

*: update db generators and tests #407

Merged
merged 1 commit into from
May 22, 2023

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented May 22, 2023

db: generate ddl only for the current version. Don't keep history of previous ddl versions in the db package.

tests: create fixtures for ddl at specific version. History of previous ddl versions will be kept in tests.

testutil/db: For create and migrate tests import data without using db methods since they are tied to the current version. The data fixture format contains table name and related column values.

@sgotti sgotti force-pushed the update_db_generators_and_tests branch from 327842e to 4069361 Compare May 22, 2023 11:07
db: generate ddl only for the current version. Don't keep history of
previous ddl versions in the db package.

tests: create fixtures for ddl at specific version. History of previous
ddl versions will be kept in tests.

testutil/db: For create and migrate tests import data without using db
methods since they are tied to the current version. The data fixture
format contains table name and related column values.
@sgotti sgotti force-pushed the update_db_generators_and_tests branch from 4069361 to 06aebfb Compare May 22, 2023 14:43
@sgotti sgotti merged commit 72a34d2 into agola-io:master May 22, 2023
1 check passed
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.

None yet

1 participant