Add 'websocket' type to nodes sockets

This commit is contained in:
nymkappa 2022-08-13 11:01:18 +02:00
parent 3e9543f0b6
commit ebb119aa90
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -757,7 +757,7 @@ class DatabaseMigration {
return `CREATE TABLE IF NOT EXISTS nodes_sockets (
public_key varchar(66) NOT NULL,
socket varchar(100) NOT NULL,
type enum('ipv4', 'ipv6', 'torv2', 'torv3', 'i2p', 'dns') NULL,
type enum('ipv4', 'ipv6', 'torv2', 'torv3', 'i2p', 'dns', 'websocket') NULL,
UNIQUE KEY public_key_socket (public_key, socket),
INDEX (public_key)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;`;