mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Create new Validations columns properly:
* Thread-safe preparation of Validations cleanup query * Followup to RIPD-870
This commit is contained in:
@@ -100,13 +100,6 @@ const char* LedgerDBInit[] =
|
||||
SignTime BIGINT UNSIGNED, \
|
||||
RawData BLOB \
|
||||
);",
|
||||
// This will error out if the column already exists,
|
||||
// but DatabaseCon intentionally ignores errors.
|
||||
"ALTER TABLE Validations \
|
||||
ADD COLUMN LedgerSeq BIGINT UNSIGNED;",
|
||||
"ALTER TABLE Validations \
|
||||
ADD COLUMN InitialSeq BIGINT UNSIGNED;",
|
||||
|
||||
"CREATE INDEX IF NOT EXISTS ValidationsByHash ON \
|
||||
Validations(LedgerHash);",
|
||||
"CREATE INDEX IF NOT EXISTS ValidationsBySeq ON \
|
||||
|
||||
Reference in New Issue
Block a user