Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 03_tww_control_cable_db_sia405.sql #378

Merged
merged 7 commits into from
Aug 15, 2024
Merged

Conversation

sjib
Copy link
Contributor

@sjib sjib commented Aug 14, 2024

Add classes for Fernwirkkabel 2015 to tww data model - as in tdh

@sjib sjib added the datamodel Concerns the datamodel label Aug 14, 2024
@sjib sjib self-assigned this Aug 14, 2024
@sjib sjib marked this pull request as draft August 14, 2024 09:56
@sjib
Copy link
Contributor Author

sjib commented Aug 14, 2024

psql:/src/datamodel/scripts/../changelogs/0001/04_vsa_kek_extension.sql:15: ERROR: relation "examination" already exists

 2024-08-14 15:16:34.560 UTC [105] ERROR:  relation "examination" already exists
2024-08-14 15:16:34.560 UTC [105] STATEMENT:  CREATE TABLE tww_od.examination
	(
	   obj_id varchar(16) NOT NULL,
	   CONSTRAINT pkey_tww_od_examination_obj_id PRIMARY KEY (obj_id)
	)
	WITH (
	   OIDS = False
	);

@sjib
Copy link
Contributor Author

sjib commented Aug 14, 2024

2024-08-14 15:24:32.878 UTC [104] ERROR:  syntax error at or near ":" at character 91
2024-08-14 15:24:32.878 UTC [104] STATEMENT:  ALTER TABLE tww_od.sia405cc_cable_point ADD COLUMN geometry3d_geometry geometry('POINTZ', :SRID);

Missing -v SRID=$SRID in
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tww_control_cable_db_sia405.sql

should be:
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tww_control_cable_db_sia405.sql -v SRID=$SRID

@sjib sjib requested a review from ponceta August 14, 2024 16:00
@sjib sjib marked this pull request as ready for review August 14, 2024 16:01
@ponceta ponceta merged commit 88c11a2 into main Aug 15, 2024
7 checks passed
@ponceta ponceta deleted the 2024-08-14-add-control-cable branch August 15, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodel Concerns the datamodel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants