# README
atlas migration
This dockerfile allows for running atlas migration for ENT.
- docker build:
docker build . -t atlas-migration
- Run via:
To run it on a local server (for example: postgres://guac:[email protected]:5432/guac?search_path=public&sslmode=disable
):
docker run -e PGHOST=host.docker.internal \
-e PGPORT=5432 \
-e PGDATABASE=guac \
-e PGUSER=guac \
-e PGPASSWORD=guac \
--network bridge \
atlas-migration
For remote servers:
docker run -e PGHOST=your_host \
-e PGPORT=your_port \
-e PGDATABASE=your_database \
-e PGUSER=your_user \
-e PGPASSWORD=your_password \
atlas-migration
# Variables
ArtifactsColumns holds the columns for the "artifacts" table.
ArtifactsTable holds the schema information for the "artifacts" table.
BillOfMaterialsColumns holds the columns for the "bill_of_materials" table.
BillOfMaterialsIncludedDependenciesColumns holds the columns for the "bill_of_materials_included_dependencies" table.
BillOfMaterialsIncludedDependenciesTable holds the schema information for the "bill_of_materials_included_dependencies" table.
BillOfMaterialsIncludedOccurrencesColumns holds the columns for the "bill_of_materials_included_occurrences" table.
BillOfMaterialsIncludedOccurrencesTable holds the schema information for the "bill_of_materials_included_occurrences" table.
BillOfMaterialsIncludedSoftwareArtifactsColumns holds the columns for the "bill_of_materials_included_software_artifacts" table.
BillOfMaterialsIncludedSoftwareArtifactsTable holds the schema information for the "bill_of_materials_included_software_artifacts" table.
BillOfMaterialsIncludedSoftwarePackagesColumns holds the columns for the "bill_of_materials_included_software_packages" table.
BillOfMaterialsIncludedSoftwarePackagesTable holds the schema information for the "bill_of_materials_included_software_packages" table.
BillOfMaterialsTable holds the schema information for the "bill_of_materials" table.
BuildersColumns holds the columns for the "builders" table.
BuildersTable holds the schema information for the "builders" table.
CertificationsColumns holds the columns for the "certifications" table.
CertificationsTable holds the schema information for the "certifications" table.
CertifyLegalDeclaredLicensesColumns holds the columns for the "certify_legal_declared_licenses" table.
CertifyLegalDeclaredLicensesTable holds the schema information for the "certify_legal_declared_licenses" table.
CertifyLegalDiscoveredLicensesColumns holds the columns for the "certify_legal_discovered_licenses" table.
CertifyLegalDiscoveredLicensesTable holds the schema information for the "certify_legal_discovered_licenses" table.
CertifyLegalsColumns holds the columns for the "certify_legals" table.
CertifyLegalsTable holds the schema information for the "certify_legals" table.
CertifyScorecardsColumns holds the columns for the "certify_scorecards" table.
CertifyScorecardsTable holds the schema information for the "certify_scorecards" table.
CertifyVexesColumns holds the columns for the "certify_vexes" table.
CertifyVexesTable holds the schema information for the "certify_vexes" table.
CertifyVulnsColumns holds the columns for the "certify_vulns" table.
CertifyVulnsTable holds the schema information for the "certify_vulns" table.
DependenciesColumns holds the columns for the "dependencies" table.
DependenciesTable holds the schema information for the "dependencies" table.
HashEqualsColumns holds the columns for the "hash_equals" table.
HashEqualsTable holds the schema information for the "hash_equals" table.
HasMetadataColumns holds the columns for the "has_metadata" table.
HasMetadataTable holds the schema information for the "has_metadata" table.
HasSourceAtsColumns holds the columns for the "has_source_ats" table.
HasSourceAtsTable holds the schema information for the "has_source_ats" table.
LicensesColumns holds the columns for the "licenses" table.
LicensesTable holds the schema information for the "licenses" table.
OccurrencesColumns holds the columns for the "occurrences" table.
OccurrencesTable holds the schema information for the "occurrences" table.
PackageNamesColumns holds the columns for the "package_names" table.
PackageNamesTable holds the schema information for the "package_names" table.
PackageVersionsColumns holds the columns for the "package_versions" table.
PackageVersionsTable holds the schema information for the "package_versions" table.
PkgEqualsColumns holds the columns for the "pkg_equals" table.
PkgEqualsTable holds the schema information for the "pkg_equals" table.
PointOfContactsColumns holds the columns for the "point_of_contacts" table.
PointOfContactsTable holds the schema information for the "point_of_contacts" table.
SlsaAttestationBuiltFromColumns holds the columns for the "slsa_attestation_built_from" table.
SlsaAttestationBuiltFromTable holds the schema information for the "slsa_attestation_built_from" table.
SlsaAttestationsColumns holds the columns for the "slsa_attestations" table.
SlsaAttestationsTable holds the schema information for the "slsa_attestations" table.
SourceNamesColumns holds the columns for the "source_names" table.
SourceNamesTable holds the schema information for the "source_names" table.
Tables holds all the tables in the schema.
VulnEqualsColumns holds the columns for the "vuln_equals" table.
VulnEqualsTable holds the schema information for the "vuln_equals" table.
VulnerabilityIdsColumns holds the columns for the "vulnerability_ids" table.
VulnerabilityIdsTable holds the schema information for the "vulnerability_ids" table.
VulnerabilityMetadataColumns holds the columns for the "vulnerability_metadata" table.
VulnerabilityMetadataTable holds the schema information for the "vulnerability_metadata" table.
WithDropColumn sets the drop column option to the migration.
WithDropIndex sets the drop index option to the migration.
WithForeignKeys enables creating foreign-key in schema DDL.
WithGlobalUniqueID sets the universal ids options to the migration.