Skip to content

Commit

Permalink
Alter table, add missing columns #12
Browse files Browse the repository at this point in the history
  • Loading branch information
4lm committed Jan 31, 2019
1 parent 02c7542 commit bd57ac0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion database_setup/reeem_db_setup_newage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ COMMENT ON TABLE model_draft.reeem_newage_output IS '{
"instruction": "tba",
"copyright": "tba"},
"contributors": [
{"name": "Ludwig Hülk", "email": "[email protected]", "date": "2017-07-24", "comment": "Create table"} ],
{"name": "Ludwig Hülk", "email": "[email protected]", "date": "2017-07-24", "comment": "Create table"},
{"name": "4lm", "email": "none", "date": "2019-01-31", "comment": "Alter table, add missing columns"} ],
"resources": [
{"name": "model_draft.reeem_newage_output",
"format": "PostgreSQL",
Expand All @@ -160,5 +161,9 @@ COMMENT ON TABLE model_draft.reeem_newage_output IS '{
{"name": "updated", "description": "Timestamp", "unit": "none"} ] } ],
"metadata_version": "1.3"}';

-- Add missing columns
ALTER TABLE model_draft.reeem_newage_output
ADD COLUMN "schema" text;

-- scenario log (project,version,io,schema_name,table_name,script_name,comment)
SELECT scenario_log('REEEM','v0.1.0','setup','model_draft','reeem_newage_output','database_setup_newage.sql',' ');

0 comments on commit bd57ac0

Please sign in to comment.