Fix validation of hostPath

When adding a volume, this comes in mountOptions. The hostPath in the
database is the computed host path.
This commit is contained in:
Girish Ramakrishnan
2023-02-25 23:14:54 +01:00
parent 5f6ae93106
commit 03a77ddf01
7 changed files with 32 additions and 33 deletions

View File

@@ -280,7 +280,7 @@ CREATE TABLE IF NOT EXISTS appPasswords(
CREATE TABLE IF NOT EXISTS volumes(
id VARCHAR(128) NOT NULL UNIQUE,
name VARCHAR(256) NOT NULL UNIQUE,
hostPath VARCHAR(1024) NOT NULL UNIQUE,
hostPath VARCHAR(1024) NOT NULL UNIQUE, // computed hostPath
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
mountType VARCHAR(16) DEFAULT "noop",
mountOptionsJson TEXT,