Skip to main content

Data Warehouse migrations for dbt.

Project description


Data Warehouse migrations for dbt.

tests codecov lint


  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 to see the migration history.

     select * from public.migrations order by id;

Data Warehouse Support

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.3.0-py3-none-any.whl (10.0 kB view hashes)

Uploaded py3

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