Skip to content

Commit

Permalink
Grant exec on proc update_dc_append_comments, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlLevik committed Jan 19, 2023
1 parent 16e8871 commit a11698e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ History
Unreleased / master
-------------------

1.34.1 (2023-01-19)
-------------------

* Add ``EXECUTE`` perm on procedure ``update_dc_append_comments`` to 'ispyb_processing' role.


1.34.0 (2023-01-16)
-------------------

Expand Down
1 change: 1 addition & 0 deletions grants/ispyb_processing.sql
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ GRANT EXECUTE ON PROCEDURE upsert_dc_grid TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE upsert_motion_correction TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE retrieve_persons_for_session TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE upsert_proposal TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE update_dc_append_comments TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE update_dc_position TO 'ispyb_processing';
GRANT EXECUTE ON PROCEDURE upsert_ctf TO 'ispyb_processing';

Expand Down
5 changes: 3 additions & 2 deletions schemas/ispyb/lookups.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

/*!40000 ALTER TABLE `AdminVar` DISABLE KEYS */;
INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','1.34.0');
INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','1.34.1');
/*!40000 ALTER TABLE `AdminVar` ENABLE KEYS */;

/*!40000 ALTER TABLE `SchemaStatus` DISABLE KEYS */;
Expand Down Expand Up @@ -209,7 +209,8 @@ INSERT INTO `SchemaStatus` (`schemaStatusId`, `scriptName`, `schemaStatus`, `rec
(234,'2022_10_21_Shipping_extra.sql','DONE','2022-11-02 17:04:27'),
(235,'2022_11_02_AdminVar_bump_version.sql','DONE','2022-11-02 17:04:27'),
(236,'2023_01_16_Tomogram_new_cols.sql','DONE','2023-01-16 18:09:03'),
(237,'2023_01_16_AdminVar_bump_version.sql','DONE','2023-01-16 18:42:40');
(237,'2023_01_16_AdminVar_bump_version.sql','DONE','2023-01-16 18:42:40'),
(238,'2023_01_19_AdminVar_bump_version.sql','DONE','2023-01-19 12:24:28');
/*!40000 ALTER TABLE `SchemaStatus` ENABLE KEYS */;

/*!40000 ALTER TABLE `ComponentType` DISABLE KEYS */;
Expand Down
5 changes: 5 additions & 0 deletions schemas/ispyb/updates/2023_01_19_AdminVar_bump_version.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2023_01_19_AdminVar_bump_version.sql', 'ONGOING');

UPDATE AdminVar SET `value` = '1.34.1' WHERE `name` = 'schemaVersion';

UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2023_01_19_AdminVar_bump_version.sql';

0 comments on commit a11698e

Please sign in to comment.