-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(custom-pu-grid): add new shape type from_shapefile
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
api/apps/geoprocessing/src/migrations/geoprocessing/1631266860142-ShapeTypeFromShapefile.ts
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,16 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class ShapeTypeFromShapefile1631266860142 implements MigrationInterface { | ||
async down(queryRunner: QueryRunner) { | ||
await queryRunner.query( | ||
`alter type shape_type add value 'from_shapefile';`, | ||
); | ||
await queryRunner.query( | ||
`CREATE TABLE planning_units_geom_from_shapefile PARTITION OF planning_units_geom FOR VALUES IN ('from_shapefile');`, | ||
); | ||
} | ||
|
||
async up(queryRunner: QueryRunner) { | ||
// see AddDraftStatusToJobStatusEnum1618241224000 | ||
} | ||
} |
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
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