1990年属马是什么命| 得了甲亢都有什么症状| 检查盆腔炎做什么检查| 脂溢性皮炎是什么原因引起的| 熬药用什么锅熬最好| 曹操的脸谱是什么颜色| 处暑是什么意思| 朝鲜和韩国什么时候分开的| 艾滋病有什么症状图片| 起风疹的原因是什么引起的| crp是什么意思| 什么是阴虱| 之虞是什么意思| 早餐吃什么最健康| 鸡吃什么| 7月11是什么星座| 洋葱有什么好处| 鼻子出油多是什么原因| 农历六月初十是什么日子| 五毒为什么没有蜘蛛| 血热是什么原因引起的| 先兆流产是什么原因| 这是什么电影| 炖羊肉放什么调料| 心胆气虚吃什么中成药| 什么食物含胶原蛋白最多| 大姨妈有黑色血块是什么原因| 舒张压低是什么原因| 杏和什么不能一起吃| 手口足吃什么药| 肾气虚吃什么药| 胚芽是什么意思| 掉头发是因为什么| m的意思是什么| t波改变是什么意思| kor是什么意思| 吓得什么填空| 大悲咒是什么意思| 特种兵是干什么的| 穿什么颜色显白| 做腹腔镜手术后需要注意什么| 晚上九点多是什么时辰| 聚宝盆是什么意思| 伤口止血用什么药| 5201314是什么意思| 手足口一般擦什么药膏| 10a是什么意思| 腹痛拉稀什么原因| 全身骨显像是查什么的| 萝卜干炒什么好吃| 兔子能吃什么水果| 宫颈糜烂用什么药最好| 筛子是什么意思| 尿酸高适合喝什么汤| 高血压高血糖能吃什么水果| kksk是什么意思| ochirly是什么牌子| 帝王是什么意思| 紫河车是什么| 抢七是什么意思| cm是什么岗位| 激光脱毛有什么副作用| 半衰期什么意思| 心有灵犀什么意思| 过敏输液输什么药好| 白蛋白是什么意思| 厚植是什么意思| s标志的运动鞋是什么牌子| 陌然是什么意思| 腰痛是什么原因| 黄鼠狼为什么怕鹅| 进入icu病房意味着什么| 4月28日是什么日子| 红眼病是什么原因引起的| 急性阴道炎是什么引起的| 属马的生什么属相的宝宝好| 一什么不什么的成语| 心急吃不了热豆腐什么意思| 为什么有些人怎么吃都不胖| 黑色的裤子配什么颜色的上衣| 血红蛋白浓度偏高是什么意思| 濒危是什么意思| 荨麻疹擦什么药| 为什么牛肝便宜没人吃| 内裤发黄是什么妇科病| 石榴什么时候开花| 五月十九日是什么星座| 用纸可以折什么| 血糖高应该吃什么水果| 缘木求鱼什么意思| 心重是什么意思| 抗体是什么意思| 赵云字什么| 西瓜不可以和什么同食| 4.2什么星座| 特警属于什么编制| 连襟是什么关系| 系统b超主要检查什么| 足跟疼挂什么科室| 元字五行属什么| lcr是什么意思| 什么是贡菜| 为什么现在不建议输液| 1990年属马的是什么命| 谷丙转氨酶是检查什么| 身上起火疖子什么原因| 脑梗要注意什么| 什么是戒断反应| kimi什么意思| 发炎是什么意思| 壮阳吃什么补最快最好| 西米是什么东西| 黄大仙是保佑什么的| 碳酸钙是什么东西| 早晨起来口苦什么原因| 旗人是什么意思| 双马尾是什么意思| 1月27日什么星座| 三原色是什么| 低筋面粉是什么面粉| 新生儿吃什么钙好| 阳虚是什么原因引起的| sj是什么| 嘴唇下面长痘痘是什么原因| 黄皮肤适合什么颜色的衣服| 犹豫不决是什么生肖| 锡兵是什么意思| 二甲双胍是什么药| 气加山念什么| 医院门特是什么意思| 人头什么动| 半身不遂是什么意思| 眼睛痒是怎么回事用什么药| 女人的第二张脸是什么| 慧眼识珠是什么意思| 老虎油是什么意思| 89年的蛇是什么命| 梦见买手表是什么预兆| 月经期间吃什么食物最好| 乳房检查挂什么科| 耳后长痣代表什么意思| 开什么节什么的成语| 拉肚子吃什么食物好得快| 无花果吃了有什么好处| 南瓜是什么颜色| 睡眠质量不好挂什么科| 玉林狗肉节是什么时候| 南瓜炒什么好吃| 夜间睡觉口干是什么原因| 什么食物高蛋白含量高| 言外之意是什么意思| 一听是什么意思| cco是什么职位| 单从属于什么茶| 什么是人生| 预判是什么意思| 画蛇添足的故事告诉我们什么道理| 毛孔粗大做什么医美| 得不偿失是什么意思| 杜牧号什么| 断交社保有什么影响| 吃什么水果解酒| 乙肝表面抗原阳性是什么意思| 心梗是什么原因引起的| 儿童吃手指是什么原因| 大便潜血什么意思| 为什么会脚麻| 吃什么好| 总打嗝是什么原因| 白斑用什么药膏| 英红九号红茶什么档次| 衔接是什么意思| 猫是什么生肖| 酸菜鱼一般用什么鱼| 鱿鱼属于什么类| 什么人容易得白血病| 耳朵嗡嗡响什么原因| 梦到喝酒是什么意思| 电势是什么| 圣贤是什么意思| 尿频挂什么科| 多囊为什么要跳绳而不是跑步| 争辩的近义词是什么| 总是困是什么原因| 八格牙路是什么意思| 人体缺钠会出现什么症状| 什么的猴子| 白带像豆腐渣用什么药| editor是什么意思| 灰指甲有什么症状| 牙齿酸是什么原因| 100a是什么尺码| 乌龙茶是什么茶| 岳字五行属什么| 行房时间短吃什么药| 3岁宝宝流鼻血是什么原因| 备孕做什么检查| 为什么嘴巴会臭| 奇异果是什么水果| 什么样的柳条| 夏至为什么吃馄饨| 2020是什么生肖| 经常肚子痛什么原因| 头出汗是什么原因| 双手麻木是什么原因| 花胶是什么| 淑字五行属什么| 呼吸有异味是什么原因| 如意丹的作用是什么| 雾霾蓝配什么颜色好看| 钙片什么时候吃最好吸收| 尿道感染用什么消炎药| 什么星座最好| 铲垃圾的工具叫什么| 腱鞘炎挂什么科室| 团宠是什么意思| 公务员辞职做什么| 1966年属马的是什么命| 王牌是什么意思| 小壁虎进家有什么预兆| 核桃壳有什么用处| 红色玫瑰花代表什么意思| 眼下长斑是什么原因| 叶酸什么时候吃最好| 中暑了吃什么好| 咳出血是什么原因| 嘴唇起白皮是什么原因| 贫血吃什么食物最好| 芒硝是什么东西| 发情是什么意思| 大便臭是什么原因| 梦见牙齿掉了什么意思| 党内警告处分有什么影响| 人养玉三年玉养人一生是什么意思| 什么是发票抬头| 皮疹是什么样子的| 男生为什么喜欢摸胸| 12月25日什么星座| hsv是什么病毒| 胀气打嗝是什么原因| 阴茎越来越小是什么原因| 用什么泡水喝对肝脏好| 头孢不能和什么一起吃| 经常感冒吃什么提高免疫力| 招财进宝是什么意思| 579是什么意思| 角加斗念什么| 脚后跟干裂用什么药膏| 九二共识是什么意思| 美女是什么意思| 铁树开花是什么生肖| 为什么井盖是圆的| 孕妇可以喝什么茶| 朱元璋是什么民族| 幽门螺旋杆菌用什么药| 例假血发黑是什么原因| 蜂蜜水什么时候喝好| 忘忧草是什么意思| 战五渣是什么意思| 目赤是什么症状| 男人左手有痣代表什么| 窈窕淑女是什么生肖| 演唱会安可是什么意思| 吃什么可以排出霉菌| 百度Jump to content

市食药监局在全市范围内选取86家大中型超市建放超市

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]
尿液发黄什么原因 系统性红斑狼疮挂什么科 天河水命是什么意思 紫菜不能和什么一起吃 湖水蓝是什么颜色
家里养泥鳅喂什么东西 梦见采蘑菇是什么预兆 湿热体质适合喝什么茶 附属国是什么意思 碧玺是什么意思
oba是什么意思 尿酸低会引发什么症状 什么偏旁 手经常发麻是什么原因 妇科炎症小腹坠痛吃什么药
补体c4偏低是什么意思 算五行缺什么免费测试 出库是什么意思 日复一日是什么意思 什么原因引起耳鸣
这是什么虫子helloaicloud.com 催乳素过高是什么原因hcv8jop8ns0r.cn 遵命是什么意思hcv9jop1ns5r.cn ems是什么意思hcv9jop8ns1r.cn 斑秃吃什么药效果好hcv7jop9ns2r.cn
月经不调看什么科室hcv9jop2ns6r.cn seiko手表是什么牌子hcv8jop2ns1r.cn 胸口正中间疼痛是什么病症hcv8jop6ns5r.cn 什么好像什么hcv7jop9ns1r.cn 黑天鹅是什么意思hcv8jop1ns9r.cn
身上长瘊子是什么原因hcv8jop2ns3r.cn 来苏水又叫什么名字hcv8jop1ns4r.cn 七点半是什么时辰hcv8jop8ns2r.cn 屁多是什么原因hcv9jop0ns4r.cn 让心归零是什么意思hcv7jop4ns7r.cn
西米露是什么hcv9jop4ns7r.cn 尿胆红素2十是什么意思hcv9jop4ns6r.cn 霉菌性阴道炎是什么症状hcv8jop9ns4r.cn 什么地站着hcv9jop3ns8r.cn 面首是什么hcv8jop2ns7r.cn
百度