mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
Fix header, add migration for user.projects column
This commit is contained in:
parent
e0e51813ad
commit
acbef39045
@ -17,7 +17,7 @@ import (
|
||||
"github.com/golang-migrate/migrate/v4/source/iofs"
|
||||
)
|
||||
|
||||
const supportedVersion uint = 2
|
||||
const supportedVersion uint = 3
|
||||
|
||||
//go:embed migrations/*
|
||||
var migrationFiles embed.FS
|
||||
|
@ -0,0 +1 @@
|
||||
ALTER TABLE user DROP COLUMN IF EXISTS projects;
|
@ -0,0 +1 @@
|
||||
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";
|
@ -0,0 +1 @@
|
||||
ALTER TABLE user DROP COLUMN IF EXISTS projects;
|
@ -0,0 +1 @@
|
||||
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";
|
@ -93,7 +93,7 @@
|
||||
<InputGroup>
|
||||
<Input type="text" placeholder={(authlevel >= 4) ? "Search jobId / username" : "Search jobId"} name="searchId"/>
|
||||
<Button outline type="submit"><Icon name="search"/></Button>
|
||||
<InputGroupText style="cursor:help;" title={isAdmin ? "Example: 'projectId:a100cd', Types are: jobId | jobName | projectId | username" | "name" : "Example: 'jobName:myjob', Types are jobId | jobName"}><Icon name="info-circle"/></InputGroupText>
|
||||
<InputGroupText style="cursor:help;" title={(authlevel >= 4) ? "Example: 'projectId:a100cd', Types are: jobId | jobName | projectId | username" | "name" : "Example: 'jobName:myjob', Types are jobId | jobName"}><Icon name="info-circle"/></InputGroupText>
|
||||
</InputGroup>
|
||||
</form>
|
||||
{#if username}
|
||||
|
Loading…
Reference in New Issue
Block a user