Skip to content

Commit

Permalink
Merge pull request #124 from LSSTDESC/u/jrbogart/specify_prod_schema
Browse files Browse the repository at this point in the history
store associated production schema when creating non-production schema
  • Loading branch information
JoanneBogart committed May 31, 2024
2 parents b54ba6e + 30c21e4 commit d77691b
Show file tree
Hide file tree
Showing 15 changed files with 117 additions and 409 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
python -m pip install .
python -m pip install pytest
# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython
# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down Expand Up @@ -126,6 +131,11 @@ jobs:
python -m pip install .
python -m pip install pytest
# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython
# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down Expand Up @@ -183,6 +193,11 @@ jobs:
python -m pip install .
python -m pip install pytest
# GitPython is needed when creating a new database
- name: Install GitPython
run: |
python -m pip install GitPython
# Make a dummy config file.
- name: Create dummy config file
run: |
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Version 0.5.0
Separate out creation of production schema and non-production schema
since, under normal circumstances, there will be a single "real" production
schema (owner type == production only) but possibly multiple non-production
schemas to keep track of entries for the other owner types.
Add a field to the provenance table so a schema can discover the name of
its associated production schema and form foreign key constraints correctly.

Bumped database version to 2.3.0. This code requires
database version >= 2.3.0

## Version 0.4.2

- Add check during dataset registration to raise an exception if the `root_dir`
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ classifiers = [
"Programming Language :: Python :: 3",
]
keywords = ["desc", "python", "registry"]
# NOTE: Those needing to create a database will also need to install the
# GitPython package. It is not needed for accessing an existing db.
dependencies = [
'psycopg2',
'sqlalchemy',
'pyaml',
'GitPython',
'pandas'
]
requires-python = ">=3.7" # For setuptools >= 61.0 support
Expand Down
324 changes: 0 additions & 324 deletions scripts/create_registry_db.py

This file was deleted.

Loading

0 comments on commit d77691b

Please sign in to comment.