Skip to main content

Redshift Data Warehouse migrations for dbt.

Project description

migro

Redshift Data Warehouse migrations for dbt.

tests codecov lint

Setup

  1. Install migro in a dbt project.

     pip install migro
    
  2. Create a migration. For example:

     mkdir migrations
     migro make create_bobby_tables_user
    
  3. Open the sql file in the migrations folder and add this statement.

     create user bobby_tables with password '{{ password }}';
    
  4. Pretend to run the migration. Notice the password generated by the {{ password }} jinja template.

     migro up --pretend --limit=1
    
  5. Now run the migration.

     migro up
    
  6. Query the new migrations table in Redshift to see the migration history.

     select * from public.migrations order by id;
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

migro-0.0.7-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page