Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Add DB migration infrastructure
Browse files Browse the repository at this point in the history
We will need it soon.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
  • Loading branch information
veruu committed Jun 7, 2018
1 parent 17f277e commit d4ea584
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,21 @@ tested patch recorded, and further patches could be tested by executing the
However, it can be used again to push the last tested patch back, and retest
already-tested patches, or to push it forward to skip testing some patches.

### Database upgrading

In case database schema changes, new migration scripts will be provided in
`db_migrations` directory. They aren't needed for new checkouts, but are
required for sktm to work correctly when upgrading. New scripts since the last
upgrade should be applied in the correct (numerical) order with commands:

sqlite3 <db_path> < <script_name>

For example, if the database path is `.sktm.db` and migration `01-pending.sql`
is being applied, the command will be

sqlite3 ~/.sktm.db < 01-pending.sql


License
-------
sktm is distributed under GPLv2 license.
Expand Down
Empty file added db_migrations/.placeholder
Empty file.

0 comments on commit d4ea584

Please sign in to comment.