-
Notifications
You must be signed in to change notification settings - Fork 183
[9.1] Add DiracX support into the database. #8196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# Everything is created by the DB object upon instantiation if it does not exists. | ||
use AuthDB; | ||
|
||
DROP TABLE IF EXISTS `PilotSecrets`; | ||
CREATE TABLE `PilotSecrets` ( | ||
`SecretUUID` VARCHAR(32) NOT NULL, | ||
`HashedSecret` BINARY(32) NOT NULL, | ||
`SecretRemainingUseCount` SMALLINT DEFAULT 1, | ||
`SecretExpirationDate` DATETIME DEFAULT NULL, | ||
`SecretConstraints` JSON DEFAULT NULL, | ||
`PilotSecretUseDate` DATETIME DEFAULT NULL, | ||
PRIMARY KEY (`SecretUUID`), | ||
UNIQUE KEY `uq_hashed_secret` (`HashedSecret`), | ||
INDEX `HashedSecret` (`HashedSecret`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
USE PilotAgentsDB; | ||
|
||
-- ------------------------------------------------------------------------------ | ||
|
||
DROP TABLE IF EXISTS `PilotAgents`; | ||
CREATE TABLE `PilotAgents` ( | ||
`PilotID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
|
@@ -44,6 +45,7 @@ CREATE TABLE `PilotAgents` ( | |
`AccountingSent` ENUM('True','False') NOT NULL DEFAULT 'False', | ||
PRIMARY KEY (`PilotID`), | ||
KEY `PilotJobReference` (`PilotJobReference`), | ||
KEY `PilotStamp` (`PilotStamp`), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should drop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And make it unique There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't be unique in DIRAC:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be refactored in DiracX as stamps are the primary indentifier |
||
KEY `Status` (`Status`), | ||
KEY `Statuskey` (`GridSite`,`DestinationSite`,`Status`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
Uh oh!
There was an error while loading. Please reload this page.