Skip to content

Commit

Permalink
Fix database errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Aug 8, 2024
1 parent 282f221 commit c1f7bd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions (1) Community Patch/Core Files/Core Changes/CoreChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,11 @@ UPDATE Improvements SET ConnectsAllResources = 1 WHERE CreatedByGreatPerson = 1;

CREATE TRIGGER Improvements_GPTIConnectsResources
AFTER INSERT ON Improvements
WHERE EXISTS ( SELECT Type FROM Improvements WHERE Type = NEW.Type )
FOR EACH ROW
BEGIN

UPDATE Improvements SET ConnectsAllResources = 1 WHERE Type = NEW.Type AND CreatedByGreatPerson = 1;

UPDATE Improvements
SET ConnectsAllResources = 1
WHERE Type = NEW.Type AND CreatedByGreatPerson = 1;
END;


Expand Down
8 changes: 1 addition & 7 deletions (2) Vox Populi/Database Changes/Beliefs/PantheonChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,4 @@ VALUES
('BELIEF_CAILLEACH', 'IMPROVEMENT_MINE', 'YIELD_CULTURE', 1);

-- help the AI select a good pantheon belief for India
INSERT INTO Beliefs
(Type, AI_GoodStartingPantheon)
VALUES
('BELIEF_ANCESTOR_WORSHIP', 1),
('BELIEF_MESSENGER_GODS', 1),
('BELIEF_GOD_KING', 1),
('BELIEF_GODDESS_LOVE', 1);
UPDATE Beliefs SET AI_GoodStartingPantheon = 1 WHERE Type IN ('BELIEF_ANCESTOR_WORSHIP', 'BELIEF_MESSENGER_GODS', 'BELIEF_GOD_KING', 'BELIEF_GODDESS_LOVE');

0 comments on commit c1f7bd7

Please sign in to comment.