Skip to content

Commit

Permalink
Merge pull request #1108 from NASA-AMMOS/bug/fix-parsed-json-migration
Browse files Browse the repository at this point in the history
Added a default empty object for parsed_json
  • Loading branch information
cohansen authored Aug 28, 2023
2 parents 105e59f + fa22184 commit 2441993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alter table command_dictionary
add column parsed_json jsonb not null;
add column parsed_json jsonb not null default '{}';

comment on column command_dictionary.parsed_json is e''
'The XML that has been parsed and converted to JSON';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ create table command_dictionary (
command_types_typescript_path text not null,
mission text not null,
version text not null,
parsed_json jsonb not null,
parsed_json jsonb not null default '{}',

created_at timestamptz not null default now(),

Expand Down

0 comments on commit 2441993

Please sign in to comment.