光绪帝叫什么名字| 鬼冢虎为什么很少人穿| 脸长的人适合什么发型| 眼压高是什么意思| 教师节送老师什么好| 更年期出汗吃什么药好| 姜黄粉是什么做的| 种生基是什么意思| 泌乳素高是什么原因引起的| 螺旋杆菌感染吃什么药| 梦见弟媳妇是什么预兆| 血肌酐高是什么原因| 斗战胜佛是什么意思| 温州冬至吃什么| 2022年属虎的是什么命| 尿道疼吃什么药| 女性尿浑浊是什么原因| 是什么意思| 木代表什么生肖| 眼白有点黄是什么原因| 拉尿分叉是什么原因| 什么克金| 钠高是什么原因| 化作风化作雨是什么歌| 1968年属什么生肖| 缺心眼是什么意思| 龙的五行属性是什么| 冰糖里面为什么有白线| 女人吃鹅蛋有什么好处| 抽筋吃什么药见效快| 3月16是什么星座| 3月6日是什么星座| 沙门氏菌是什么| 黄精是什么药材| 梦见借给别人钱是什么意思| 立羽读什么| 1994年是什么命| 嘌呤是什么物质| 什么是窝沟封闭| 女人做梦哭醒预示什么| 小便黄吃什么药| 糖尿病患者主食应该吃什么| 生日送什么礼物最好| 2008是什么年| 红烧肉用什么肉| unny是什么牌子| 香水前调中调后调是什么意思| 包饺子什么馅好吃| 一般什么人会有美人尖| 辐照食品什么意思| 梦见自己有孩子了是什么预兆| 为什么会得皮炎| 十八大什么时候| 大便有血是什么原因男性| 月经期肚子疼是什么原因| 脑供血不足有什么危害| 今年27岁属什么生肖| 脆皮是什么意思| 一天吃一个苹果有什么好处| avg是什么意思| 杠杆炒股是什么意思| 大便次数增多是什么原因| 感激涕零什么意思| 什么是坏血病| 老师家访需要准备什么| 多金是什么意思| 70年产权是从什么时候开始算| 梦到考试是什么意思| 金渐层是什么品种| 韬的意思是什么| 脑血栓是什么原因引起的| 八面玲珑什么生肖| 三月十八是什么星座| 小腿前侧肌肉叫什么| 苏菲是什么意思| 五十肩是什么意思| 戴黄金对身体有什么好处| 胆水是什么| 乐捐是什么意思| 牙齿黄用什么牙膏| 乳腺结节吃什么好| 呼吸道感染吃什么药| 治安大队是干什么的| 吸毒什么感觉| 舌苔厚腻吃什么中成药| 乳贴是什么| 栋字五行属什么| 什么杀精子最厉害| 甲状腺球蛋白低是什么原因| 主动脉壁钙化是什么意思| 肝着是什么意思| 为什么会有甲状腺结节| 塔罗牌是什么意思| 肚脐是什么穴位| 肝结节是什么病严重吗| 亢是什么意思| 今年农历是什么年号| 心率过快吃什么药| 冬占生男是什么意思| 第一次做什么感觉| 清明节什么时候| 慢悠悠的近义词是什么| 笑点低的人说明什么| 胃糜烂可以吃什么水果| 心电图窦性心律什么意思| 争奇斗艳是什么意思| 护照免签是什么意思| 为什么当兵| 优甲乐是治什么病的| 罹是什么意思| 血小板低吃什么食物补得快| 萝卜丁口红什么牌子| 孽障是什么意思| 打榜是什么意思| 度是什么意思| max是什么意思| 天麻有什么功效| 跌宕起伏什么意思| 丝袜是什么材质| 69什么意思| b型和o型生的孩子是什么血型| 平诊是什么意思| 复合维生素是什么| 11月10日是什么星座| 人为什么会长痣| 白带带血是什么原因| 什么治胃胀气| 什么是有氧运动| 荔枝什么时候过季| 诛心是什么意思| 膳食是什么| 窦性心律不齐什么意思| 肉桂属于什么茶类| 包裹是什么意思| 子宫癌筛查做什么检查| 天丝是什么面料| 乌鸡煲汤放什么材料| 为什么脖子上会长痘痘| 淋雨了喝什么驱寒| 失调是什么意思| 禾末念什么| 补液盐是什么| 兆后面的单位是什么| 孩子手抖是什么原因| 尿白细胞弱阳性什么意思| 内心丰盈是什么意思| 戴笠什么军衔| 艾灸灸出水泡是什么情况| 手麻挂什么科最好| 95什么意思| 肠道胀气吃什么药| 为什么减肥一直减不下来| 养猫的人容易得什么病| 尿葡萄糖阴性什么意思| 姑婆的儿子叫什么| 夏天水肿的原因是什么| 缺钾吃什么食物| 黑白蛇是什么蛇| 总是低烧是什么原因造成的| 怀孕肚子痒是什么原因| 车水马龙什么意思| 维生素b族为什么不能晚上吃| 征信对个人有什么影响| 中核集团是什么级别| 上尉是什么级别| 梦见种树是什么兆头| 有过之而不及是什么意思| 怀孕初期能吃什么不能吃什么| 唐氏综合征是什么病| 狸猫换太子什么意思| 三角梅什么时候换盆| 沙拉是什么意思| 风热感冒吃什么药| 刑警是干什么的| hpv感染吃什么药| 牙齿贴面是什么意思| 冠状动脉粥样硬化性心脏病吃什么药| 两小儿辩日告诉我们什么道理| 什么季节| 结核是什么病| 脸上黑色的小点是什么| 韭菜和什么不能一起吃| 哺乳期上火了吃什么降火最快| 海为什么是蓝色| 病魔是什么意思| 苦瓜泡水喝有什么功效和作用| 肛门里面疼是什么原因| 下发是什么意思| 二月二十二日是什么星座| 都有什么职业| ia是什么意思| 睡觉打鼾是什么原因| 二氧化钛是什么| 胃糜烂可以吃什么水果| 人流后什么时候来月经| 公丁香和母丁香有什么区别| 字形是什么意思| 凤凰代表什么生肖| 空调不制冷是什么原因| 牛肉发绿色是什么原因| 汗马功劳什么意思| zara中文叫什么| 房产证和土地证有什么区别| 吃什么补血补气最快| 病毒感染发烧吃什么药| 螃蟹跟什么不能一起吃| 戴尾戒是什么意思| 胸腔积液是什么原因造成的| chuck是什么意思| 乌鸡汤放什么补气补血| 吃什么药能快速降血压| 带牙套是什么意思| 保守治疗是什么意思| 肌酸激酶是什么| 家里有蚂蚁是什么原因| 胃烧心是什么感觉| 荔枝什么时候成熟季节| 肛裂涂什么药膏能愈合| 办离婚需要什么手续和证件| 龙蛇混杂是什么意思| 孩子专注力差去什么医院检查| 不骄不躁是什么意思| 甲基化是什么意思| 日加个成念什么| 什么是肠漏| 天津有什么好玩的地方| 蚊香对人体有什么危害| 占便宜是什么意思| 为什么会一直流鼻涕| haglofs是什么牌子| 割包皮去医院挂什么科| 宋朝后面是什么朝代| 大脑供血不足用什么药| 化验血挂什么科| 虾不能和什么食物一起吃| 直肠腺瘤是什么| 黄金微针是什么| bdp是什么意思| 母亲节送婆婆什么礼物| 什么是oa| 什么人容易得眩晕症| 至字五行属什么| 小月子是什么意思| 阴部痒痒的是什么原因| 什么是笑气| 脱脂牛奶是什么意思| ca登录是什么意思| 虫草花不能和什么一起吃| 石骨症是什么病| 淋巴细胞高是什么意思| 跳绳有什么好处| 长白头发了吃什么才能把头发变黑| 心力衰竭吃什么药| 什么是国企单位| 蜜糖有什么功效和作用| 梦到被蜜蜂蛰是什么意思| 白带过氧化氢阳性什么意思| 斑鸠喜欢吃什么食物| 五福临门是什么生肖| 宫腔线分离是什么意思| 舌头口腔溃疡是什么原因引起的| 饭后痰多是什么原因| 鱼腥草不能和什么一起吃| 吃什么可以养胃| 百度Jump to content

国家能源局是什么级别

From mediawiki.org
百度 解决文化发展新问题矛盾是普遍存在的,不同时代有不同的矛盾出现,矛盾在社会发展中不断变化,新时代中国特色社会主义文化创新需要解决新的文化矛盾问题。

This page describes the official database policy for MediaWiki code. It was approved in December 2019 via the TechCom RFC process per RFC T220056.

Database queries

[edit]
  • All new code that sends SQL queries from MediaWiki must not generate any warning under MariaDB/MySQL's strict mode (per RFC T112637).
    • WMF will be enabling MariaDB/MySQL's strict mode (T108255), which will be the default anyway in MySQL 5.7. Prior to this, code must be free of warnings.
    • Code that touches the database must be compatible with the following MySQL SQL modes:
      • TRADITIONAL (equivalent to STRICT_TRANS_TABLES, STRICT_ALL_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER)
      • ONLY_FULL_GROUP_BY
  • Database code must be compatible with older versions of databases as listed in the MediaWiki installation requirements for database server. However, performance improvements that would only apply to the newest, supported versions (or its default or widely recommended defaults) should be favoured over those that apply only to unsupported releases.
  • Non-deterministic queries and unsafe statements for binlog should be avoided as they would return/write different results in a replication environment. The latter can be detected as warnings with the text "[Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT". Those include INSERT ... SELECT when using an auto_increment key, UPDATE ... LIMIT without an ORDER BY, and using non-deterministic functions like SYSDATE(). More information.

Schema changes

[edit]
  • All new tables must have a primary key. When a candidate for primary key could not be created (for example, if all columns can be repeated), a separate auto_increment column, or other arbitrary field (depending on the case), must be added.
  • Primary keys, and fields that reference them, should be unsigned, in order to increase the maximum values.
  • All tables in MediaWiki core, and Wikimedia-deployed and MediaWiki-bundled extensions must be implemented using the abstract schema system, and new schema changes to them must be generated automatically.

Schema change compatibility

[edit]

Schema changes must provide a path for upgrading from all releases from two LTS releases before onwards (see phab:T259771).

Database patches

[edit]

If you change the database schema, follow these rules:

  • Update the installer – Update includes/installer and add an appropriate patch file to sql/abstractSchemaChanges/. The naming convention, if you're adding a field, is patch-{table}-{field}.sql. If you're removing a field, it is patch-drop-{table}-{field}.sql. If you're adding a table, it is patch-{table}.sql. Look at the commit history of includes/installer/(MySQL|Postgres|SQLite)Updater.php to find examples of how it is done. If you're adding a bunch of fields to the same table, make all those changes in one query in one patch file.
  • Make your schema change optional – All schema changes must go through a period of being optional. Some examples:
    • Instead of changing the format of a column, create a new column, make all writes happen to the old and new column (if it exists), and deprecate use of the old column. Check if the new column exists before blindly assuming that it does. Only eliminate support for the old column after it is clear the schema migration has completed and there's no chance that we'll need to roll back to the old version of the software. If this doesn't seem feasible, send mail to Wikitech-l asking for advice.
    • You could set your new feature to only work if a config option is set to true, and set the option to false by default. Then the commit can be safely deployed before the schema change is made. To deploy your feature to the Wikimedia cluster, file a ticket in Phabricator in the relevant project with the #schema-change tag. Once you've confirmed the change has been made, you can remove the config option to enable your feature.
    • Note that this means your schema change should be optional in code - for Wikimedia deployments, it is expected that every wiki with the relevant database table(s) will have the schema change applied to them. If you need different schema for different wikis, then apply the change using an extension and creating new tables dependent on that extension.

There might be cases where the "make your schema change optional" rule will be prohibitive from a performance or logistics perspective. However, schema changes like that should be rare to begin with, and should have prominent discussion on the wikitech-l mailing list. In the case where it is impossible to make your schema change optional, it is still critical to write scripts to roll back to the pre-change state.

  • Search for input from a WMF Database Administrator – MediaWiki is deployed to Wikimedia websites every week, and it takes considerable planning to apply schema changes to MySQL-based sites the size of Wikipedia. As of January 2020 Jaime Crespo (jcrespo on LDAP, jynus on irc) and Manuel (Arostegui, marostegui) are the best people to add to database reviews. In most cases, input is just needed on the logistics of the change.
  • Test your changes on Beta - in particular, it is a common mistake to change indexes and column definitions that would result in different query plans. Try to test the generated queries' plan with tools such as EXPLAIN; not doing so could mean that, when scaled to production, queries that only take 1 second locally, they pileup on production when they receive much more traffic and have larger tables.


Note

[edit]
Since version 1.36, MediaWiki commits to supporting upgrades from up to two LTS releases ago (see T259771). Upgrades from older versions of MediaWiki have to be performed in multiple steps. For example, to upgrade from 1.34 (or earlier) to 1.44, first upgrade your wiki to 1.35 (or 1.39), and then, you'll be able to upgrade to 1.44.

See also

[edit]
肉苁蓉和什么搭配最好 射精是什么 aoa是什么意思 肺胀是什么病 什么是职业病
一竖读什么 七月二十八什么星座 印度的全称是什么 1980年是什么命 日光灯属于什么光源
装清高是什么意思 双手发抖是什么原因 湿气重是什么原因引起的 纸上谈兵是什么生肖 腹股沟疝气挂什么科
办护照带什么资料 梦见中奖了预兆什么 方圆是什么意思 幼儿贫血吃什么补血最快 为什么会胃出血
去海边穿什么衣服拍照好看hcv8jop9ns2r.cn 血糖是什么hcv9jop0ns4r.cn 什么金属最贵wmyky.com 东吴在现在什么地方hcv9jop3ns4r.cn 十二月十八号是什么星座clwhiglsz.com
喝红花有什么作用与功效hcv8jop3ns3r.cn 什么是爬虫hcv9jop3ns6r.cn 绿豆什么人不能吃jingluanji.com 马和驴为什么能杂交hcv8jop8ns4r.cn 什么是麻疹hcv8jop5ns7r.cn
重阳节应该吃什么hcv8jop1ns6r.cn psh是什么意思hcv8jop9ns8r.cn 属鸡的适合干什么行业最赚钱hcv8jop6ns2r.cn 三伏天晒背有什么好处hcv8jop4ns6r.cn 流产可以吃什么水果hcv8jop3ns1r.cn
甜蜜素是什么jinxinzhichuang.com 阴道炎用什么洗hcv7jop9ns2r.cn 屁股生疮是什么原因xscnpatent.com 冬至广东吃什么hcv8jop1ns2r.cn 911是什么电话hcv9jop1ns2r.cn
百度