forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade tgis db WIP * create/drop all views when upgrading tgis db * improve backup howto message, mention t.upgrade * fix create_temporal_database_views issues * wording Co-Authored-By: Veronica Andreo <[email protected]> * wording Co-Authored-By: Veronica Andreo <[email protected]> * fix typo Co-Authored-By: Veronica Andreo <[email protected]> * simplify error messaging * message formatting * minimal change in the message Co-authored-by: Veronica Andreo <[email protected]>
- Loading branch information
1 parent
b81cebe
commit 61b8d40
Showing
3 changed files
with
159 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--############################################################################# | ||
-- This SQL script drops all existing vies (used by upgrade_temporal_database()) | ||
-- | ||
-- Author: Martin Landa landa.martin <at> gmail <dot> com | ||
--############################################################################# | ||
|
||
-- raster_views | ||
DROP VIEW raster_view_abs_time; | ||
DROP VIEW raster_view_rel_time; | ||
|
||
-- raster3d_views | ||
DROP VIEW raster3d_view_abs_time; | ||
DROP VIEW raster3d_view_rel_time; | ||
|
||
-- vector_views | ||
DROP VIEW vector_view_abs_time; | ||
DROP VIEW vector_view_rel_time; | ||
|
||
-- strds_views | ||
DROP VIEW strds_view_abs_time; | ||
DROP VIEW strds_view_rel_time; | ||
|
||
-- str3ds_views | ||
DROP VIEW str3ds_view_abs_time; | ||
DROP VIEW str3ds_view_rel_time; | ||
|
||
-- stvds_views | ||
DROP VIEW stvds_view_abs_time; | ||
DROP VIEW stvds_view_rel_time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--############################################################################# | ||
-- This SQL script upgrades TGIS DB from version 2 to version 3. | ||
-- | ||
-- Author: Martin Landa landa.martin <at> gmail <dot> com | ||
--############################################################################# | ||
|
||
-- raster_metadata_table.sql | ||
ALTER TABLE raster_metadata | ||
ADD COLUMN band_reference VARCHAR; | ||
|
||
-- strds_metadata_table.sql | ||
ALTER TABLE strds_metadata | ||
ADD COLUMN number_of_bands INTEGER; | ||
|
||
-- tgis_metadata | ||
UPDATE tgis_metadata | ||
SET value = '3' | ||
WHERE key = 'tgis_db_version'; |