Manual:Protected titles table/da

The protected_titles table contains of non-existent pages. Restrictions on existing pages are stored in the table.

The list of protected pages can be found at Special:Protectedtitles.

pt_namespace
.

pt_title
.

pt_user
of user who protected the page title.

pt_reason
Protection comment.

pt_reason_id and the comment table should be used instead!

pt_reason_id
This is a foreign key to in the  table.

pt_timestamp
of when the protection action was taken

pt_expiry
Timestamp of when the protection expires

Schema summary
++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field         | Type                | Null | Key | Default | Extra |
 * pt_namespace  | int(11)             | NO   | PRI | NULL    |       |
 * pt_title      | varbinary(255)      | NO   | PRI | NULL    |       |
 * pt_user       | int(10) unsigned    | NO   |     | NULL    |       |
 * pt_reason_id  | bigint(20) unsigned | NO   |     | NULL    |       |
 * pt_timestamp  | binary(14)          | NO   | MUL | NULL    |       |
 * pt_expiry     | varbinary(14)       | NO   |     |         |       |
 * pt_create_perm | varbinary(60)      | NO   |     | NULL    |       |

++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field         | Type                | Null | Key | Default | Extra |
 * pt_namespace  | int(11)             | NO   | PRI | NULL    |       |
 * pt_title      | varbinary(255)      | NO   | PRI | NULL    |       |
 * pt_user       | int(10) unsigned    | NO   |     | NULL    |       |
 * pt_reason     | varbinary(767)      | YES  |     |         |       |
 * pt_reason_id  | bigint(20) unsigned | NO   |     | 0       |       |
 * pt_timestamp  | binary(14)          | NO   | MUL | NULL    |       |
 * pt_expiry     | varbinary(14)       | NO   |     |         |       |
 * pt_create_perm | varbinary(60)      | NO   |     | NULL    |       |

++--+--+-+-+---+ ++--+--+-+-+---+ ++--+--+-+-+---+
 * Field         | Type             | Null | Key | Default | Extra |
 * pt_namespace  | int(11)          | NO   | PRI | NULL    |       |
 * pt_title      | varbinary(255)   | NO   | PRI | NULL    |       |
 * pt_user       | int(10) unsigned | NO   |     | NULL    |       |
 * pt_reason     | varbinary(767)   | YES  |     | NULL    |       |
 * pt_timestamp  | binary(14)       | NO   | MUL | NULL    |       |
 * pt_expiry     | varbinary(14)    | NO   |     |         |       |
 * pt_create_perm | varbinary(60)   | NO   |     | NULL    |       |

++--+--+-+-+---+ ++--+--+-+-+---+ ++--+--+-+-+---+
 * Field         | Type             | Null | Key | Default | Extra |
 * pt_namespace  | int(11)          | NO   | PRI | NULL    |       |
 * pt_title      | varbinary(255)   | NO   | PRI | NULL    |       |
 * pt_user       | int(10) unsigned | NO   |     | NULL    |       |
 * pt_reason     | tinyblob         | YES  |     | NULL    |       |
 * pt_timestamp  | binary(14)       | NO   | MUL | NULL    |       |
 * pt_expiry     | varbinary(14)    | NO   |     |         |       |
 * pt_create_perm | varbinary(60)   | NO   |     | NULL    |       |