Skip to content

Commit

Permalink
include the part about how to change the metadata database
Browse files Browse the repository at this point in the history
  • Loading branch information
neovintage committed Nov 30, 2015
1 parent e1f9a28 commit 00414d9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,19 @@ For more information on how to run a subset of the tests, take a look at the nos

See also the the list of test classes and methods in `tests/code.py`.

## Changing Metadata Database

When developing features the need may arise to persist information to the the
metadata database. Airflow has alembic built-in to handle all schema changes.
Alembic must be installed on your development machine before continuing.

```
# starting at the root of the project
$ pwd
~/airflow
# change to the airflow directory
$ cd airflow
$ alembic revision -m "add new field to db"
Generating
~/airflow/airflow/migrations/versions/12341123_add_new_field_to_db.py
```

0 comments on commit 00414d9

Please sign in to comment.