Skip to content

Raniksingh/db_migration_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Database Scripts Collection

This repository contains a collection of scripts for managing and interacting with various database systems, including MySQL, PostgreSQL, and Redshift.

Overview

The scripts are organized into directories based on the database system they target. Each directory contains scripts for specific tasks such as:

  • Dumping and restoring metadata
  • Handling constraints, indexes, and triggers
  • Managing auto-incrementing columns
  • Migrating users and grants
  • Validating database schemas
  • Comparing user grants
  • Comparing parameters

Installation

No specific installation is required for most scripts. Ensure you have the necessary database clients and libraries installed for the respective database system you are working with.

For Python scripts, you might need to install dependencies using pip:

pip install -r requirements.txt

(Note: A global requirements.txt may not be suitable if scripts have conflicting dependencies. Consider adding individual requirements.txt files within specific script directories if needed.)

Usage

Navigate to the specific directory for the database system you are interested in (e.g., MySQL_Scripts, PostgreSQL_Scripts). Each script typically includes usage instructions or can be run directly if it's a standalone utility.

Example (Python script):

python MySQL_Scripts/mysql_scripts/ValidateMySQL.py --help

(This is a hypothetical example. Actual usage may vary per script. Check individual scripts for specific instructions.)

Contributing

Contributions are welcome! If you have scripts or improvements to existing ones, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix: git checkout -b feature-name or git checkout -b fix-name.
  3. Make your changes and ensure they are well-documented.
  4. Test your changes thoroughly.
  5. Commit your changes: git commit -m "Add new feature or fix"
  6. Push to your branch: git push origin feature-name
  7. Create a Pull Request detailing your changes.

Please ensure your code adheres to any existing coding styles and includes appropriate comments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors