Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on how to run migrations using pg-diff #112

Open
3 tasks
jpmckinney opened this issue Mar 21, 2024 · 0 comments
Open
3 tasks

Add documentation on how to run migrations using pg-diff #112

jpmckinney opened this issue Mar 21, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@jpmckinney
Copy link
Member

jpmckinney commented Mar 21, 2024

https://michaelsogos.github.io/pg-diff/

This issue can wait until we need to edit the SQL files.

WIP

{
    "development": {
        "sourceClient": {
            "host": "localhost",
            "port": 5432,
            "database": "pelican_backend_dev",
            "applicationName": "pg-diff-cli"
        },
        "targetClient": {
            "host": "localhost",
            "port": 5432,
            "database": "pelican_backend",
            "applicationName": "pg-diff-cli"
        },
        "compareOptions": {
            "outputDirectory": "sqlscripts",
            "getAuthorFromGit": true,
            "schemaCompare": {
                "namespaces": "public",
                "dropMissingTable": false,
                "dropMissingView": false,
                "dropMissingFunction": false,
                "dropMissingAggregate": false,
                "roles": []
            },
            "dataCompare": {
                "enable": false
            }   
        },
        "migrationOptions": {
            "patchesDirectory": "pelican/migrations",
            "historyTableName": "migrations",
            "historyTableSchema": "public"
        }        
    }
}
@jpmckinney jpmckinney added the documentation Improvements or additions to documentation label Mar 21, 2024
@jpmckinney jpmckinney added this to the Priority milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant