-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace DB package tables by sip and aip tables
Stop using package across the persistence layers. Use SIP on ingest and AIP on storage renaming DB tables, types and enums. The use of package still happens on the API design/spec and the dashboard, these will be modified in following PRs. - Allow generating migrations for both databases using ariga.io/atlas. - Add `atlas-hash` Make rule to re-generate sum file in migration dirs. - Update ingest database, ent schema and client: - Rename `package` table to `sip`. - Adapt `preservation_action` table relation. - Generate `use_atlas` migration to match schema from ent/Atlas. - Rename package related functions. - Update storage database, ent schema and client: - Rename `package` table to `aip`. - Rename package related functions. - Rename datatype SIP and PreservationAction.SIPID. - Rename SIP statuses and types. - Rename AIP statuses.
- Loading branch information
Showing
123 changed files
with
8,307 additions
and
8,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$(call _assert_var,MAKEDIR) | ||
$(call _conditional_include,$(MAKEDIR)/base.mk) | ||
$(call _assert_var,UNAME_OS) | ||
$(call _assert_var,UNAME_ARCH2) | ||
$(call _assert_var,CACHE_VERSIONS) | ||
$(call _assert_var,CACHE_BIN) | ||
|
||
ATLAS_VERSION ?= 0.31.0 | ||
|
||
ATLAS := $(CACHE_VERSIONS)/atlas/$(ATLAS_VERSION) | ||
$(ATLAS): | ||
rm -f $(CACHE_BIN)/atlas | ||
mkdir -p $(CACHE_BIN) | ||
$(eval TMP := $(shell mktemp -d)) | ||
$(eval OS := $(shell echo $(UNAME_OS) | tr A-Z a-z)) | ||
curl -sSL \ | ||
https://release.ariga.io/atlas/atlas-$(OS)-$(UNAME_ARCH2)-v$(ATLAS_VERSION) \ | ||
> $(CACHE_BIN)/atlas | ||
chmod +x $(CACHE_BIN)/atlas | ||
rm -rf $(dir $(ATLAS)) | ||
mkdir -p $(dir $(ATLAS)) | ||
touch $(ATLAS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.