mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-18 05:31:55 +01:00
Update token length and upper case the sql key words
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
362a0638d0
commit
db09f9f101
@ -1,7 +1,10 @@
|
||||
create table robot (
|
||||
CREATE TABLE robot (
|
||||
id SERIAL PRIMARY KEY NOT NULL,
|
||||
name varchar(255),
|
||||
token varchar(4096),
|
||||
/*
|
||||
The maximum length of token is 7k
|
||||
*/
|
||||
token varchar(7168),
|
||||
description varchar(1024),
|
||||
project_id int,
|
||||
disabled boolean DEFAULT false NOT NULL,
|
||||
|
@ -23,7 +23,7 @@ const RobotTable = "robot"
|
||||
|
||||
// Robot holds the details of a robot.
|
||||
type Robot struct {
|
||||
ID int `orm:"pk;auto;column(id)" json:"id"`
|
||||
ID int64 `orm:"pk;auto;column(id)" json:"id"`
|
||||
Name string `orm:"column(name)" json:"name"`
|
||||
Token string `orm:"column(token)" json:"token"`
|
||||
Description string `orm:"column(description)" json:"description"`
|
||||
|
Loading…
Reference in New Issue
Block a user