-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create/drop all views when upgrading tgis db
- Loading branch information
Showing
2 changed files
with
57 additions
and
24 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; |