mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
614f911217
Summary: One advantage I wanted to get out of T1191 is automated rebuilds of `quickstart.sql`. If they don't actually work, I'd like to know sooner rather than later. We haven't rebuilt in a couple months, so give it a shot. Ran into two issues: - Some very old patches specify overlong keys which don't work if your default charsets are utf8mb4. Shorten these. No real users have applied these in a very long time. - Some gymnastics around `corpus` for the new Conpherence search index. Test Plan: - Ran `arc unit --everything`, got clean results. - Cost to do a storage upgrade on an empty namespace dropped from ~4s to ~3s. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11454
18 lines
528 B
SQL
18 lines
528 B
SQL
create table {$NAMESPACE}_worker.worker_task (
|
|
id int unsigned not null auto_increment primary key,
|
|
taskClass varchar(255) not null,
|
|
leaseOwner varchar(255),
|
|
leaseExpires int unsigned,
|
|
priority bigint unsigned not null,
|
|
failureCount int unsigned not null,
|
|
key(taskClass(128)),
|
|
key(leaseOwner(128)),
|
|
key(leaseExpires)
|
|
);
|
|
|
|
create table {$NAMESPACE}_worker.worker_taskdata (
|
|
id int unsigned not null auto_increment primary key,
|
|
taskID int unsigned not null,
|
|
data longblob not null,
|
|
unique key (taskID)
|
|
);
|