Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MEDIUMBLOB and LONGBLOB for Mysql fields storing serialized protos. #346

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fleetspeak/src/server/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ creation_time_seconds BIGINT NOT NULL,
creation_time_nanos INT NOT NULL,
processed_time_seconds BIGINT,
processed_time_nanos INT,
validation_info BLOB,
validation_info MEDIUMBLOB,
failed INT1,
failed_reason TEXT,
annotations BLOB,
annotations MEDIUMBLOB,
PRIMARY KEY (message_id))`,
`CREATE TABLE IF NOT EXISTS pending_messages(
for_server BOOL NOT NULL,
message_id BINARY(32) NOT NULL,
retry_count INT NOT NULL,
scheduled_time BIGINT NOT NULL,
data_type_url TEXT,
data_value BLOB,
data_value LONGBLOB,
PRIMARY KEY (for_server, message_id),
FOREIGN KEY (message_id) REFERENCES messages(message_id))`,
`CREATE TABLE IF NOT EXISTS client_contact_messages(
Expand All @@ -196,7 +196,7 @@ message_type VARCHAR(128) NOT NULL,
expiration_time_seconds BIGINT,
expiration_time_nanos INT,
data_type_url TEXT,
data_value BLOB,
data_value LONGBLOB,
sent BIGINT UNSIGNED,
allocated BIGINT UNSIGNED,
message_limit BIGINT UNSIGNED,
Expand Down Expand Up @@ -226,7 +226,7 @@ FOREIGN KEY (client_id) REFERENCES clients(client_id))`,
service VARCHAR(128) NOT NULL,
name VARCHAR(128) NOT NULL,
modified_time_nanos BIGINT NOT NULL,
data BLOB,
data LONGBLOB,
PRIMARY KEY (service, name))
`,
} {
Expand Down