Skip to content

Commit 1381c5d

Browse files
author
IlkaCu
committed
Revert "remove and create column otg_id"
This reverts commit 21dab4a.
1 parent 21dab4a commit 1381c5d

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

dataprocessing/sql_snippets/ego_dp_powerflow_assignment_otgid.sql

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ __author__ = "IlkaCu"
1111
*/
1212

1313
-- Set column otg_id to NULL
14-
ALTER TABLE model_draft.ego_dp_supply_res_powerplant
15-
DROP COLUMN otg_id;
16-
17-
ALTER TABLE model_draft.ego_dp_supply_res_powerplant
18-
ADD COLUMN otg_id;
14+
UPDATE model_draft.ego_dp_supply_res_powerplant
15+
SET otg_id = NULL;
1916

2017
-- Insert otg_id of bus for res pp
2118
UPDATE model_draft.ego_dp_supply_res_powerplant a
@@ -30,11 +27,8 @@ UPDATE model_draft.ego_dp_supply_res_powerplant a
3027

3128

3229
-- Set column otg_id to NULL
33-
ALTER TABLE model_draft.ego_dp_supply_conv_powerplant
34-
DROP COLUMN otg_id;
35-
36-
ALTER TABLE model_draft.ego_dp_supply_conv_powerplant
37-
ADD COLUMN otg_id;
30+
UPDATE model_draft.ego_dp_supply_conv_powerplant
31+
SET otg_id = NULL;
3832

3933
-- Insert otg_id of bus for conv pp
4034
UPDATE model_draft.ego_dp_supply_conv_powerplant a

0 commit comments

Comments
 (0)