diff --git a/(1) Community Patch/Core Files/Core Changes/CoreChanges.sql b/(1) Community Patch/Core Files/Core Changes/CoreChanges.sql index aa5a8e8a74..3d09a819bb 100644 --- a/(1) Community Patch/Core Files/Core Changes/CoreChanges.sql +++ b/(1) Community Patch/Core Files/Core Changes/CoreChanges.sql @@ -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; diff --git a/(2) Vox Populi/Database Changes/Beliefs/PantheonChanges.sql b/(2) Vox Populi/Database Changes/Beliefs/PantheonChanges.sql index 7509662f45..f0fe8687d6 100644 --- a/(2) Vox Populi/Database Changes/Beliefs/PantheonChanges.sql +++ b/(2) Vox Populi/Database Changes/Beliefs/PantheonChanges.sql @@ -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); \ No newline at end of file +UPDATE Beliefs SET AI_GoodStartingPantheon = 1 WHERE Type IN ('BELIEF_ANCESTOR_WORSHIP', 'BELIEF_MESSENGER_GODS', 'BELIEF_GOD_KING', 'BELIEF_GODDESS_LOVE'); \ No newline at end of file