Skip to content

Commit

Permalink
Merge pull request #1115 from jefft/fix-1114
Browse files Browse the repository at this point in the history
  • Loading branch information
tbar0970 authored Jan 4, 2025
2 parents 51cb841 + 664b712 commit 83f74c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upgrades/2024-upgrade-to-2.36.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ INSERT INTO person_status(id, label, `rank`)
SELECT ts.id, SUBSTRING_INDEX(SUBSTRING_INDEX(@sOptions, ',', ts.id), ',', -1), @rank:=@rank+1
FROM temp_statuses ts;

INSERT INTO person_status(label, `rank`, require_congregation)
INSERT IGNORE INTO person_status(label, `rank`, require_congregation)
VALUES
('Contact', @rank:=@rank+1, 0);

SET @contact_status_id = LAST_INSERT_ID();
SELECT id INTO @contact_status_id FROM person_status WHERE label='Contact';

INSERT INTO person_status(label, rank, is_archived, require_congregation)
INSERT IGNORE INTO person_status(label, rank, is_archived, require_congregation)
VALUES
('Archived', @rank:=@rank+1, 1, 0);

SET @archived_status_id = LAST_INSERT_ID();
SELECT id INTO @archived_status_id FROM person_status WHERE label='Contact';

CREATE TABLE _person_status_backup
SELECT id, status FROM _person;
Expand Down

0 comments on commit 83f74c7

Please sign in to comment.