UW-Macrostrat / macrostrat

A geological data platform for exploration, integration, and analysis
Apache License 2.0
4 stars 1 forks source link

Command to migrate MariaDB database #61

Closed amyfromandi closed 2 months ago

amyfromandi commented 4 months ago

This branch contains migration code that enables a complete MariaDB to PostgreSQL database migration, as detailed in #60. The script in this pull request should make several key data evolutions:

A successful operation of this script will result in full integration of all data from MariaDB, allowing the Macrostrat API to operate off of a single PostgreSQL database (UW-Macrostrat/macrostrat-api#229)

Architecturally, this should be implemented within the macrostrat command-line application:

Latest update:

Next steps:

davenquinn commented 4 months ago

For data validation summary with these scripts (see #60), can we print row counts, etc. as tables to improve readability (maybe using the rich Python library)?

amyfromandi commented 2 months ago

Removed v1 schlep scripts and moved all index files here schlep-index. Kept schlep scripts for tables that are modified in the pre/post migration scripts in case they are needed for future references i.e. the process scripts. remaining schlep scripts

These changes are referenced from #81