Skip to content

Commit 1bbe3f0

Browse files
authored
Fix: add missing 0.8.6-0.9.0 migration script (#365)
* Add missing 0.8.6-0.9.0 migration script resolves #335 * fix set_version line in 0.8.6-0.9.0 * set version from $TO instead of copying 999_version.sql
1 parent 13b7d8d commit 1bbe3f0

File tree

4 files changed

+5610
-1
lines changed

4 files changed

+5610
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Add `load_queryables` function to pypgstac for loading queryables from a JSON file
1313
- Add support for specifying collection IDs when loading queryables
1414

15+
### Fixed
16+
- Added missing 0.8.6-0.9.0 migration script
17+
1518
## [v0.9.5]
1619

1720
### Changed

docker/pypgstac/bin/makemigration

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ cat $SQLDIR/000_idempotent_pre.sql >>$MIGRATIONSQL
137137
echo "-- BEGIN migra calculated SQL" >>$MIGRATIONSQL
138138
cat $MIGRATION >>$MIGRATIONSQL
139139
echo "-- END migra calculated SQL" >>$MIGRATIONSQL
140-
cat $SQLDIR/998_idempotent_post.sql $SQLDIR/999_version.sql >>$MIGRATIONSQL
140+
cat $SQLDIR/998_idempotent_post.sql >>$MIGRATIONSQL
141+
echo "SELECT set_version('${TO}');" >>$MIGRATIONSQL
141142

142143
echo "Migration created at $MIGRATIONSQL."
143144
exit 0

0 commit comments

Comments
 (0)