harness-drone/store/datastore/ddl/mysql/6.sql
Josh Quintana 67a88c5d13 Fix: (MySQL) key exceeds max on MariaDB
Fixes MariaDB `Specified key was too long; max key length is 767 bytes` error
2016-10-08 14:31:56 -04:00

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;