blob: 2cc4de8ce19508b219e1cb83ee518cc5e19aa451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--
-- The content table represents content objects. It's primary purpose is to provide the necessary
-- meta-data for loading and interpreting a serialized data blob to create a content object.
--
CREATE TABLE /*_*/content (
-- ID of the content object
content_id bigint unsigned PRIMARY KEY AUTO_INCREMENT,
-- Nominal size of the content object (not necessarily of the serialized blob)
content_size int unsigned NOT NULL,
-- Nominal hash of the content object (not necessarily of the serialized blob)
content_sha1 varbinary(32) NOT NULL,
-- reference to model_id
content_model smallint unsigned NOT NULL,
-- URL-like address of the content blob
content_address varbinary(255) NOT NULL
) /*$wgDBTableOptions*/;
|