Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
1c9cb87
Check main rather than master when making PR for schema files
KarlLevik Oct 17, 2024
6e8831f
Add new Expeye grants (#246) (#247)
KarlLevik Oct 28, 2024
6a760c3
Add roles and grants for MaxScale
KarlLevik Nov 1, 2024
7543303
Create fragment screening role with grants
KarlLevik Nov 5, 2024
88e46bc
Add scripts to delete DC and DCG rows and associated rows in other ta…
KarlLevik Nov 14, 2024
c43ce45
Update Expeye core grants (#248)
gfrn Dec 5, 2024
09e78e5
Add new boolean column "deleted" to the AutoProcProgramAttachment tab…
KarlLevik Dec 5, 2024
29898a8
Changes in preparation for release of v4.3.0 (#250)
KarlLevik Dec 5, 2024
b957b28
Use MariaDB 10.6.19 in Dockerfile
KarlLevik Dec 10, 2024
4ee4d83
Specify that the Wiki has info about installing via Dockerfile
KarlLevik Dec 10, 2024
7a7a846
Add more info, correct mistake, in "Useful scripts" README section
KarlLevik Dec 11, 2024
a5b4636
Fix wrong scriptName in insert to SchemaStatus (#251)
KarlLevik Dec 11, 2024
763a591
Fix wrong scriptName values in schema lookups.sql file
KarlLevik Dec 12, 2024
7050e5a
Add binnedPixelSize column to ParticleClassificationGroup
gfrn Jan 8, 2025
ff73888
Add gridSquareId FK in Tomogram
gfrn Jan 24, 2025
9c9cc8e
Merge pull request #252 from gfrn/main
gfrn Jan 24, 2025
163e65d
Bump version
gfrn Jan 29, 2025
d1fca49
Merge pull request #253 from gfrn/tomogram-mmag-gridsquare
gfrn Jan 29, 2025
ad5857b
Merge pull request #254 from gfrn/admin-var-bump
gfrn Jan 29, 2025
5556935
Changes in preparation for release of v4.4.0
gfrn Jan 29, 2025
eee113e
Merge pull request #255 from DiamondLightSource/pre-release-updates
gfrn Jan 29, 2025
86824cc
Add more processing table grants for Expeye
KarlLevik Feb 14, 2025
d2a318c
Add bool flag to indicate purged processed folder in visit dir (#256)
KarlLevik Feb 17, 2025
1b5695a
Add permissions for new endpoints (#257)
gfrn Feb 24, 2025
0ac97fa
Add version bump file + refresh schema files for v4.5.0 (#258)
KarlLevik Feb 25, 2025
60139f8
Add grant to AutoProcIntegration for Expeye (#259)
KarlLevik Feb 27, 2025
8a4c944
Add atlas experiment type (#260)
gfrn Mar 4, 2025
3480217
Add a dewarRegistryId FK to the Dewar table (#261)
KarlLevik Mar 5, 2025
a082d14
Add new proc upsert_processing_program_v2
KarlLevik Mar 5, 2025
2086eba
Preparation for version 4.6.0 (#263)
KarlLevik Mar 6, 2025
ee75d19
Add new particle classification columns (#264)
gfrn Mar 20, 2025
ebeeb4d
Add select grant on Container, BLSample, BLSampleImage
KarlLevik Apr 2, 2025
f6b9ac5
Add grants for propagation role
KarlLevik Apr 15, 2025
7a1afaa
Recreate FK constraints referencing LabContact(labContactId) with 'on…
KarlLevik Apr 17, 2025
ec4a57d
Add reference to BLSample, describe position type (#266)
gfrn Apr 28, 2025
b7c9a4d
Make DewarRegistry.labContactId FK "on delete set null" (#269)
KarlLevik Apr 30, 2025
eafe159
Add extra grants for Expeye (#268)
gfrn Apr 30, 2025
0cb8da0
Make Shipping FK deliveryAgent_flightCodePersonId "on delete set null…
KarlLevik Apr 30, 2025
e28ef44
Add select grant for propagation role on BLSampleGroup
KarlLevik May 1, 2025
6d1c3c9
Add blSampleId FK col in XrayCentringResult which is the actual sampl…
KarlLevik May 1, 2025
607a5c4
Add BLSamplePosition table (#272)
gfrn May 1, 2025
6ed22fe
Add grants for propagation role on SW_onceToken
KarlLevik May 2, 2025
9014199
Rename BLSamplePosition PK column positionId -> blSamplePositionId (#…
gfrn May 2, 2025
ba88503
SP update_container_assign: also return sample locations (#274)
KarlLevik May 8, 2025
22e9d5b
Preparations for release 4.7.0 (#275)
gfrn May 12, 2025
c2a65ca
Update HISTORY.rst
gfrn May 12, 2025
436fff0
Allow Expeye to query BLSamplePosition (#277)
gfrn May 15, 2025
a1e1f30
Allow Expeye to select on SpaceGroup (#276)
gfrn May 15, 2025
7fe5ffc
Allow ispyb-processing to modify BLSamplePosition (#279)
gfrn May 19, 2025
863b983
Add table Ligand w/ junction tables BLSample_has_Ligand, Ligand_has_P…
KarlLevik May 27, 2025
b254303
Inlcude all + fix order of grant files in build.sh (#281)
KarlLevik May 27, 2025
593bb8c
Set recordTimeStamp default to current timestamp (#278)
gfrn May 27, 2025
659c283
Add new col BLSession.icatId for the internal ICAT visit ID (#282)
KarlLevik May 29, 2025
7dd87e8
Add new DewarRegistry column enum and stop using Dewar.type is sproc…
KarlLevik Jun 6, 2025
966fd1c
Grant permissions on BLSamplePosition to ispyb-web (#284)
gfrn Jun 23, 2025
52111de
Add new ContainerType 'Cryo-EM Puck' (#285)
KarlLevik Jun 27, 2025
7344af7
Add pixel location columns to tomogram table (#286)
gfrn Jun 27, 2025
36db516
Refresh schema files and fix minor bug in grants file (#288)
KarlLevik Jun 27, 2025
b2c809b
Tomogram pixel location (#287)
gfrn Jun 27, 2025
438defe
Refresh schema files tables.sql and lookups.sql
KarlLevik Jun 27, 2025
c7b0595
Add extra grants for ispyb_processing (#289)
gfrn Jul 1, 2025
64b82d2
Grant ligand-related permissions to ispyb_web (#290)
gfrn Jul 2, 2025
947a0ee
Allow ispyb_web to remove ligand references (#291)
gfrn Jul 7, 2025
d2b518e
Preparations for release 4.8.0
gfrn Jul 17, 2025
8e48917
Include all files in released archive file
gfrn Jul 17, 2025
55f34dc
Update HISTORY.rst
gfrn Jul 17, 2025
90423bb
Fix date
gfrn Jul 17, 2025
f1a437b
Merge branch 'main' of github.com:DiamondLightSource/ispyb-database
gfrn Jul 17, 2025
68888e3
Update maximum string length for p_status (#292)
gfrn Jul 22, 2025
ef4ef3f
Use CREATE OR REPLACE ... PROCEDURE syntax (#293)
KarlLevik Jul 22, 2025
dc9e06c
Grants to the Ligand tables for the expeye role (#294)
KarlLevik Jul 24, 2025
ca39aa9
Add grants on Protein_has_PDB for expeye role (#295)
KarlLevik Jul 24, 2025
5ff39ac
Grant BLSampleImage perms to Expeye (#297)
gfrn Jul 25, 2025
6464aca
Add new column Container.parentContainerLocation (#296)
KarlLevik Jul 25, 2025
d0cdd52
New proc insert_screening_v2 with grant and updated routines.sql (#300)
KarlLevik Sep 24, 2025
aef8477
Add start and end date columns to Proposal table, update relevant sch…
KarlLevik Sep 25, 2025
fff554b
Update sp_update_container_status.sql (#298)
gfrn Oct 1, 2025
88c888d
Add new SWISSCI plate (#299)
gfrn Oct 1, 2025
a2c4bb1
Preparations for v4.9.0
KarlLevik Oct 1, 2025
a55c526
Add new experiment types
gfrn Nov 13, 2025
23899f2
Add new experiment types (#303)
gfrn Nov 20, 2025
4c178d5
Add laser parameters tables (#302)
gfrn Nov 20, 2025
c4ecd30
Merge branch 'main' of github.com:DiamondLightSource/ispyb-database
gfrn Nov 20, 2025
460e78e
Preparations for 4.9.0 release
gfrn Nov 20, 2025
cf847b0
Fix collation
gfrn Nov 20, 2025
05c875e
Update database sql files
gfrn Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10.8
image: mariadb:10.6
env:
MYSQL_USER: test
MYSQL_PASSWORD: test
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: shogo82148/actions-setup-mysql@v1
with:
distribution: 'mariadb'
mysql-version: '10.8'
mysql-version: '10.6'
auto-start: false
- name: Build database
run: |
Expand All @@ -44,7 +44,7 @@ jobs:

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update database sql files
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/mariadb:10.10.3
FROM docker.io/library/mariadb:10.6.19

WORKDIR /ispyb

Expand Down
143 changes: 143 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,149 @@ History
Unreleased / master
-------------------

4.10.0 (2025-11-20)
-------------------

Thank you so much, Karl! / Tusen takk, Karl!

Lookups:

- Add ``CLEM`` experiment type
- Add ``FIB`` experiment type

New or modified tables, columns, lookup values:

- New table ``LaserParameters``
- New table ``LaserPoint``
- Add ``LASER`` to ``RobotAction`` ``actionType`` column

4.9.0 (2025-10-01)
-------------------

New columns:

- Add ``startDate`` and ``endDate`` columns to the ``Proposal`` table
- Add ``parentContainerLocation`` column to the ``Container`` table

Table permissions for the expeye role:

- ``BLSampleImage``
- ``Protein_has_PDB``
- The ``Ligand`` tables

Stored procedures:

- Updated procedure ``update_container_status`` to allow more statuses
- New procedure ``insert_screening_v2`` with relevant grants
- In source file for procedure ``retrieve_containers_on_beamline_with_status``:

- Use ``CREATE OR REPLACE ... PROCEDURE`` syntax
- Update maximum string length for ``p_status`` parameter

Lookups:

- A new type "SWISSCI 2 Drop" was added to ``ContainerType``

4.8.0 (2025-07-17)
-------------------

New or modified tables, columns, lookup values:

- New table ``Ligand``
- New table ``BLSample_has_Ligand``
- New table ``Ligand_has_PDB``
- Add ``pixelLocationX`` and ``pixelLocationY`` columns to ``Tomogram`` table
- Add ``cryoEM`` container type to ``ContainerType``
- Add ``type`` enum column to ``DewarRegistry``
- Add ``icatId`` column to ``BLSession``
- Set ``recordTimeStamp`` column in ``BLSamplePosition`` to default to current time

4.7.0 (2025-05-12)
-------------------

New or modified tables, columns, lookup values:

- New table ``BLSamplePosition``
- Add a ``blSampleId`` FK to the ``XrayCentringResult`` table
- Add ``angularEfficiency`` and ``suggestedTilt`` columns to ``ParticleClassification``
- Recreate FK constraints referencing ``LabContact(labContactId)`` with 'on delete set null
- Make ``Shipping`` FK ``deliveryAgent_flightCodePersonId`` "on delete set null"

Roles and permissions:

- Add new grants for Expeye
- Add new permissions for ``ispyb_propagation``
- Add new permissions for ``ispyb_scripts_processing.sql``

Stored procedures:

- Also return sample locations for ``update_container_assign``

4.6.0 (2025-03-06)
-------------------

New columns:

- Add a ``dewarRegistryId`` FK to the ``Dewar`` table

Data in lookup tables:

- Add 'Atlas' experiment type

Stored procedures:

- Remove superfluous commit in procedure ``upsert_processing_program``
- New procedure ``upsert_processing_program_v2`` with additional param for pipeline ID

Permissions:

- Add ``SELECT`` grant for Expeye role on table ``AutoProcIntegration``
- Add ``EXECUTE`` grant for processing role on new procedure ``upsert_processing_program_v2``

4.5.0 (2025-02-25)
-------------------

New or modified tables and columns:

- Add ``purgedProcessedData`` boolean column to the ``BLSession`` table. This is
a flag to indicate whether the ``processed`` folder in the associated visit
directory has been purged.

4.4.0 (2025-01-29)
-------------------

New or modified tables and columns:

- Add ``binnedPixelSize`` column to the ``ParticleClassificationGroup`` table
- Add ``gridSquareId`` column to the ``Tomogram`` table

4.3.0 (2024-12-05)
-------------------

Note: The schema files now include a command in the first line to set the sanbox
mode which is incompatible with older clients. For more info and to disable, see:
https://mariadb.org/mariadb-dump-file-compatibility-change/

Admin: Changes to GitHub workflows as 'main' is now the default branch (previously 'master')

New or modified tables and columns:

- Add ``processingPipelineId`` column to the ``AutoProcProgram`` table
- Add new boolean column ``deleted`` to the ``AutoProcProgramAttachment`` table
- Add unique index on ``BLSample(containerId, location, subLocation)``
- Update the ``ProcessedTomogram`` table comment

Roles and permissions:

- Add new grants for Expeye and combine grants into two roles instead of three
- Add roles and grants for MaxScale
- Add role with grants for fragment screening

Scripts and data changes:

- Trim trailing '1' in the ``SpaceGroup`` table's ``spaceGroupShortName`` column
- Add scripts that can delete ``DataCollection`` and ``DataCollectionGroup`` rows and referenced rows in other tables

4.2.1 (2024-08-19)
-------------------

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

# ispyb-database

This package provides everything needed to create the Diamond flavour of the ISPyB database schema. As the schema evolves the update scripts will also be published here, so other users of the schema should be able to stay up-to-date.
This repository provides everything needed to create the Diamond flavour of the ISPyB database schema. As the schema evolves the update scripts will also be published here, so other users of the schema should be able to stay up-to-date.

## Requirements

* Server and a client packages of MariaDB 10.3 or later.
* Server and a client packages of MariaDB 10.6 or later.
* A Unix-like OS with `bash` shell.
* The pandoc package (only required to build documentation at the end of the `build.sh` script.)
* If binary logging is enabled in the DB system, then execute this before importing the test schema: `SET GLOBAL log_bin_trust_function_creators=ON;`

## Installation

1. Install MariaDB. See the Wiki for ideas on how to install in a particular environment.
2. Copy `.my.example.cnf` to `.my.cnf` and then edit that file to set the `user` and `password`, e.g. `user = root` and use the `password` you set when securing. Optionally, you can also set e.g. `host` and `port`.
1. Install MariaDB. The Wiki has ideas on how to install in a particular environment, including OS packages or containers via the provided Dockerfile. If you use the container approach with the provided Dockerfile, then steps 2 and 3 below are done for you automatically.
2. Copy `.my.example.cnf` to `.my.cnf` and then edit that file to set the `user` and `password`, e.g. `user = root` and correspond `password`. Optionally, you can also set e.g. `host` and `port`.
3. In a test environment run the `build.sh` file. This creates the database schema and applies the grants as described in the "Schema" and "Grants" sections below.

### Schema
Expand Down Expand Up @@ -94,8 +94,8 @@ mariadb ispyb < grants/ispyb_web.sql
## Useful scripts

* `build.sh`: Creates a development `ispyb_build` database and imports all the schema and grants files into it.
* `release.sh`: Makes a release, see the Releasing section.
* `bin/backup.sh`: Makes a backup of the development database.
* `release.sh`: Makes a release, see the `RELEASE.md` file for details.
* `bin/backup.sh`: Makes a backup of the development database, producing four files: `tables.sql`, `routines.sql`, `lookups.sql`, `data.sql`.
* `bin/missed_updates.sh`: Generates a list of files in the `schemas/ispyb/updates/` folder that haven't been applied.
* `bin/export_session.sh`: Exports a given session's database rows to SQL files. These can then easily be imported into an empty ispyb database. This can be used e.g. to create a single-session ISPyB/SynchWeb instance if combined with all the relevant data files and processing files for the session, and an instance of SynchWeb.

Expand Down
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ function exec_schema {

function exec_grants {
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_acquisition.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_propagation.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_expeye.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_fragment_screening.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_import.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_processing.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_ro_nopii.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_scripts_processing.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_ssx_writer.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_touchscreen.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_web.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_web_verify_tests.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_ssx_writer.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/ispyb_web.sql
mariadb --defaults-file=.my.cnf -D $1 < grants/maxscale.sql
}

function exec_missed_updates {
Expand Down
69 changes: 65 additions & 4 deletions grants/ispyb_expeye.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,72 @@ CREATE ROLE IF NOT EXISTS ispyb_expeye_core_role;

GRANT ispyb_propagation TO ispyb_expeye_core_role;

CREATE ROLE ispyb_expeye_acquisition_role;
CREATE ROLE IF NOT EXISTS ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE ON RobotAction TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON GridInfo TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON DataCollection TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Proposal TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON BLSession TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON DataCollectionGroup TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON DataCollection TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON Position TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON Shipping TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ShippingHasSession TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Project_has_Shipping TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON LabContact TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON Dewar TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON DewarLocation TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON DewarLocationList TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON DewarRegistry TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON DewarRegistry_has_Proposal TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON DewarReport TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON DewarTransportHistory TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON Container TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerInspection TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerQueue TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerQueueSample TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerRegistry TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerRegistry_has_Proposal TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerReport TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON ContainerType TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON ContainerHistory TO ispyb_expeye_acquisition_role;

GRANT SELECT ON ProcessingPipeline TO ispyb_expeye_acquisition_role;
GRANT SELECT ON ProcessingPipelineCategory TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON BLSample TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE on BLSampleImage TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON BLSampleGroup TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON BLSampleGroup_has_BLSample TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON BLSubSample TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Project_has_BLSample TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON BLSamplePosition TO ispyb_expeye_acquisition_role;

GRANT SELECT ON SpaceGroup TO ispyb_expeye_acquisition_role;
GRANT SELECT ON Protein TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON Crystal TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON XFEFluorescenceSpectrum TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE, DELETE ON DiffractionPlan TO ispyb_expeye_acquisition_role;

GRANT SELECT ON ComponentType TO ispyb_expeye_acquisition_role;
GRANT SELECT ON ComponentSubType TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Component_has_SubType TO ispyb_expeye_acquisition_role;

GRANT SELECT, INSERT, UPDATE ON RobotAction TO ispyb_expeye_acquisition_role;
GRANT SELECT, INSERT, UPDATE ON GridInfo TO ispyb_expeye_acquisition_role;

GRANT ispyb_expeye_acquisition_role TO ispyb_expeye_core_role;

GRANT SELECT ON AutoProcProgram TO ispyb_expeye_core_role;
GRANT SELECT, INSERT, UPDATE ON AutoProcProgramAttachment TO ispyb_expeye_core_role;
GRANT SELECT ON AutoProcIntegration TO ispyb_expeye_core_role;

GRANT SELECT ON ProcessingJob TO ispyb_expeye_core_role;

GRANT SELECT, INSERT, UPDATE ON Ligand TO ispyb_expeye_core_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Ligand_has_PDB TO ispyb_expeye_core_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON BLSample_has_Ligand TO ispyb_expeye_core_role;
GRANT SELECT, INSERT, UPDATE, DELETE ON Protein_has_PDB TO ispyb_expeye_core_role;
52 changes: 0 additions & 52 deletions grants/ispyb_expeye_samples_grants.sql

This file was deleted.

Loading