mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-12 16:46:15 +01:00
f95913ec47
Summary: Basically a copy/paste of parts of D636, but with two changes: - Fully separate the index table ("document") from the content table ("content"). I think this will be a cleaner solution in the long run. - Build slugs into the document structure. This doesn't do anything useful, it just normalizes slugs and lays some groundwork. Test Plan: - Visited various /w/ pages and saw them normalize correctly. - Verified the DAO works by inserting dummy rows. Reviewed By: codeblock Reviewers: hsb, codeblock, jungejason, aran, tuomaspelkonen CC: aran, codeblock, epriestley Differential Revision: 638
12 lines
No EOL
341 B
SQL
12 lines
No EOL
341 B
SQL
CREATE DATABASE phabricator_phriction;
|
|
|
|
CREATE TABLE phabricator_phriction.phriction_document (
|
|
id INT UNSIGNED NOT NULL,
|
|
phid VARCHAR(64) BINARY NOT NULL,
|
|
UNIQUE KEY (phid),
|
|
slug VARCHAR(512) NOT NULL,
|
|
UNIQUE KEY (slug),
|
|
depth INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY (depth, slug),
|
|
contentID INT UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB; |