Skip to content

Commit

Permalink
chore: optional DB migrations (#9047)
Browse files Browse the repository at this point in the history
* chore: optional DB migrations
- add a directory in master/static for "optional migrations" that are not strictly required for deployment but can be useful for added functionality
  • Loading branch information
azhou-determined authored Mar 26, 2024
1 parent 84ba688 commit 1992c97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions master/static/optional_migrations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Optional Database Migrations

This directory contains optional database migrations. While they may be needed to view historical
data for some product features, they are time-consuming and not necessary for all use cases.
Unlike the migrations in `master/static/migrations/`, these migrations will not run automatically
on cluster startup. Instead, they can be run manually with the following command:

```bash
psql -d $DET_DB_NAME --single-transaction -f $PATH_TO_MIGRATION
```

0 comments on commit 1992c97

Please sign in to comment.