try again
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 15:54:05 +11:00
parent fdfde7af0b
commit 46567ab1a4

View File

@@ -311,6 +311,7 @@ func CreateTables() {
CREATE TABLE secrets
(
SecretId INTEGER PRIMARY KEY ASC,
RoleId INTEGER,
SafeId INTEGER,
DeviceName VARCHAR,
DeviceCategory VARCHAR,
@@ -319,6 +320,7 @@ func CreateTables() {
FOREIGN KEY (SafeId) REFERENCES safes(SafeId)
);
INSERT INTO secrets SELECT * FROM _secrets_old;
ALTER TABLE secrets DROP COLUMN RoleId;
COMMIT;
PRAGMA foreign_keys=on;
DROP TABLE _secrets_old;