Manual:Coding conventions/Database/cs

Tato stránka popisuje kódovací konvence používané v souborech MediaWiki codebase napsané pro použití s databází. See also the general conventions that apply to all program languages, including those for databases. If you would like a short checklist to help you review your commits, try using the.

MySQL/MariaDB
Use abstract schema for new tables or schema changes. See for more information.

Table naming
There are some historical exceptions:,  …
 * Table names should be singular nouns:,  ,  , etc.
 * Column names are given a prefix derived from the table name: the name itself if it's short, or an abbreviation:

Changing the schema
See Development policy#Database_patches, especially Special:Diff/537762/prev and make sure you use abstract schema changes.