mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-19 08:21:01 +00:00
67a88c5d13
Fixes MariaDB `Specified key was too long; max key length is 767 bytes` error
17 lines
282 B
SQL
17 lines
282 B
SQL
-- +migrate Up
|
|
|
|
CREATE TABLE agents (
|
|
agent_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
|
,agent_addr VARCHAR(255)
|
|
,agent_platform VARCHAR(500)
|
|
,agent_capacity INTEGER
|
|
,agent_created INTEGER
|
|
,agent_updated INTEGER
|
|
|
|
,UNIQUE(agent_addr)
|
|
);
|
|
|
|
|
|
-- +migrate Down
|
|
|
|
DROP TABLE agents;
|