Skip to content

Commit

Permalink
fix: fixed migration crashing if the column already existed
Browse files Browse the repository at this point in the history
  • Loading branch information
stefa168 committed Nov 26, 2023
1 parent 9143445 commit a102576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/0002_serial_number.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alter table inverter_messages
add column inverter_sn varchar(64) default null;
add column if not exists inverter_sn varchar(64) default null;

-- We need to add to all the rows of inverter_messages of which the id corresponds to a message_data.message_id
-- the inverter_sn of the corresponding message_data row.
Expand Down

0 comments on commit a102576

Please sign in to comment.