Skip to content

Commit 00e277d

Browse files
authored
Fix broken links (#1149)
Fix many broken links, especially a huge bunch caused by mariadb migrating their docs sites without complete redirects.
1 parent 05e5f7f commit 00e277d

16 files changed

+67
-68
lines changed

docs/aggregates.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following can be imported from ``django_mysql.models``.
2222
Docs:
2323
`MySQL
2424
<https://dev.mysql.com/doc/refman/en/group-by-functions.html#function_bit-and>`__ /
25-
`MariaDB <https://mariadb.com/kb/en/mariadb/bit_and/>`__.
25+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/aggregate-functions/bit_and>`__.
2626

2727
Example usage:
2828

@@ -42,7 +42,7 @@ The following can be imported from ``django_mysql.models``.
4242
Docs:
4343
`MySQL
4444
<https://dev.mysql.com/doc/refman/en/group-by-functions.html#function_bit-or>`__ /
45-
`MariaDB <https://mariadb.com/kb/en/mariadb/bit_or/>`__.
45+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/aggregate-functions/bit_or>`__.
4646

4747
Example usage:
4848

@@ -62,7 +62,7 @@ The following can be imported from ``django_mysql.models``.
6262
Docs:
6363
`MySQL
6464
<https://dev.mysql.com/doc/refman/en/group-by-functions.html#function_bit-xor>`__ /
65-
`MariaDB <https://mariadb.com/kb/en/mariadb/bit_xor/>`__.
65+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/aggregate-functions/bit_xor>`__.
6666

6767
Example usage:
6868

@@ -81,7 +81,7 @@ The following can be imported from ``django_mysql.models``.
8181

8282
Docs:
8383
`MySQL <https://dev.mysql.com/doc/refman/en/group-by-functions.html#function_group-concat>`__ /
84-
`MariaDB <https://mariadb.com/kb/en/mariadb/group_concat/>`__.
84+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/aggregate-functions/group_concat>`__.
8585

8686
Example usage:
8787

@@ -102,7 +102,7 @@ The following can be imported from ``django_mysql.models``.
102102

103103
``group_concat_max_len`` docs:
104104
`MySQL <https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_group_concat_max_len>`__ /
105-
`MariaDB <https://mariadb.com/kb/en/server-system-variables/#group_concat_max_len>`__.
105+
`MariaDB <https://mariadb.com/docs/server/ha-and-performance/optimization-and-tuning/system-variables/server-system-variables#group_concat_max_len>`__.
106106

107107
Optional arguments:
108108

docs/cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ but you're more likely to run up against it first with the
143143
``get_many``/``set_many`` operations.
144144

145145
The `MySQL 8.0 default <https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_allowed_packet>`__ is 4MB,
146-
and the `MariaDB 10.2 default <https://mariadb.com/kb/en/server-system-variables/#max_allowed_packet>`__ is 16MB.
146+
and the `MariaDB 10.2 default <https://mariadb.com/docs/server/ha-and-performance/optimization-and-tuning/system-variables/server-system-variables#max_allowed_packet>`__ is 16MB.
147147
Most applications should be fine with these limits.
148148
You can tweak the setting as high as 1GB - if this isn't enough, you should probably be considering another solution!
149149

docs/checks.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ you activate this, but it's not very likely to affect you if you don't.
4545

4646
Docs:
4747
`MySQL <https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_strict_mode>`__ /
48-
`MariaDB <https://mariadb.com/kb/en/mariadb/xtradbinnodb-strict-mode/>`__.
48+
`MariaDB <https://mariadb.com/docs/server/server-usage/storage-engines/innodb/innodb-system-variables#innodb_strict_mode>`__.
4949

5050
As above, the easiest way to set this is to add ``SET`` to ``init_command`` in
5151
your ``DATABASES`` setting:
@@ -87,7 +87,7 @@ very easy for users to type emoji on phone keyboards these days!).
8787

8888
Docs:
8989
`MySQL <https://dev.mysql.com/doc/refman/en/charset-unicode-utf8mb4.html>`__ /
90-
`MariaDB <https://mariadb.com/kb/en/mariadb/unicode/>`__.
90+
`MariaDB <https://mariadb.com/docs/server/reference/data-types/string-data-types/character-sets/unicode>`__.
9191

9292
Also see this classic blogpost:
9393
`How to support full Unicode in MySQL databases <https://mathiasbynens.be/notes/mysql-utf8mb4>`_.

docs/database_functions.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Control Flow Functions
2525

2626
Docs:
2727
`MySQL <https://dev.mysql.com/doc/refman/en/control-flow-functions.html#function_if>`__ /
28-
`MariaDB <https://mariadb.com/kb/en/mariadb/if-function/>`__.
28+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/control-flow-functions/if-function>`__.
2929

3030
Usage example:
3131

@@ -50,7 +50,7 @@ Numeric Functions
5050

5151
Docs:
5252
`MySQL <https://dev.mysql.com/doc/refman/en/mathematical-functions.html#function_crc32>`__ /
53-
`MariaDB <https://mariadb.com/kb/en/mariadb/crc32/>`__.
53+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/numeric-functions/crc32>`__.
5454

5555
Usage example:
5656

@@ -77,7 +77,7 @@ String Functions
7777

7878
Docs:
7979
`MySQL <https://dev.mysql.com/doc/refman/en/string-functions.html#function_concat-ws>`__ /
80-
`MariaDB <https://mariadb.com/kb/en/mariadb/concat_ws/>`__.
80+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/concat_ws>`__.
8181

8282
Usage example:
8383

@@ -101,7 +101,7 @@ String Functions
101101

102102
Docs:
103103
`MySQL <https://dev.mysql.com/doc/refman/en/string-functions.html#function_elt>`__ /
104-
`MariaDB <https://mariadb.com/kb/en/mariadb/elt/>`__.
104+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/elt>`__.
105105

106106
Usage example:
107107

@@ -126,7 +126,7 @@ String Functions
126126

127127
Docs:
128128
`MySQL <https://dev.mysql.com/doc/refman/en/string-functions.html#function_field>`__ /
129-
`MariaDB <https://mariadb.com/kb/en/mariadb/field/>`__.
129+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/field>`__.
130130

131131
Usage example:
132132

@@ -155,7 +155,7 @@ XML Functions
155155

156156
Docs:
157157
`MySQL <https://dev.mysql.com/doc/refman/en/xml-functions.html#function_updatexml>`__ /
158-
`MariaDB <https://mariadb.com/kb/en/mariadb/updatexml/>`__.
158+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/updatexml>`__.
159159

160160
Usage example:
161161

@@ -179,7 +179,7 @@ XML Functions
179179

180180
Docs:
181181
`MySQL <https://dev.mysql.com/doc/refman/en/xml-functions.html#function_extractvalue>`__ /
182-
`MariaDB <https://mariadb.com/kb/en/mariadb/extractvalue/>`__.
182+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/extractvalue>`__.
183183

184184
Usage example:
185185

@@ -202,7 +202,7 @@ Regexp Functions
202202
These work with MariaDB 10.0.5+ only, which includes PCRE regular
203203
expressions and these extra functions to use them. More information can be
204204
found in `its documentation
205-
<https://mariadb.com/kb/en/mariadb/regular-expressions-overview/>`_.
205+
<https://mariadb.com/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regular-expressions-overview>`_.
206206

207207

208208
.. class:: RegexpInstr(expression, regex)
@@ -215,7 +215,7 @@ Regexp Functions
215215
column, whilst if ``regex`` is a string, it will be used as a string. If
216216
you want ``regex`` to refer to a column, use Django's ``F()`` class.
217217

218-
Docs: `MariaDB <https://mariadb.com/kb/en/mariadb/regexp_instr/>`__.
218+
Docs: `MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_instr>`__.
219219

220220
Usage example:
221221

@@ -236,7 +236,7 @@ Regexp Functions
236236
used as strings. If you want ``regex`` or ``replace`` to refer to columns,
237237
use Django's ``F()`` class.
238238

239-
Docs: `MariaDB <https://mariadb.com/kb/en/mariadb/regexp_replace/>`__.
239+
Docs: `MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_replace>`__.
240240

241241
Usage example:
242242

@@ -263,7 +263,7 @@ Regexp Functions
263263
column, whilst if ``regex`` is a string, it will be used as a string. If
264264
you want ``regex`` to refer to a column, use Django's ``F()`` class.
265265

266-
Docs: `MariaDB <https://mariadb.com/kb/en/mariadb/regexp_substr/>`__.
266+
Docs: `MariaDB <https://mariadb.com/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_substr>`__.
267267

268268
Usage example:
269269

@@ -307,7 +307,7 @@ Information Functions
307307

308308
Docs:
309309
`MySQL <https://dev.mysql.com/doc/refman/en/information-functions.html#function_last-insert-id>`__ /
310-
`MariaDB <https://mariadb.com/kb/en/mariadb/last_insert_id/>`__.
310+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/secondary-functions/information-functions/last_insert_id>`__.
311311

312312
Usage examples:
313313

@@ -341,7 +341,7 @@ package.
341341
These functions use JSON paths to address content inside JSON documents - for
342342
more information on their syntax, refer to the docs:
343343
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json.html#json-path-syntax>`__ /
344-
`MariaDB <https://mariadb.com/kb/en/jsonpath-expressions/>`__.
344+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/jsonpath-expressions>`__.
345345

346346

347347
.. class:: JSONExtract(expression, *paths, output_field=None)
@@ -364,7 +364,7 @@ more information on their syntax, refer to the docs:
364364

365365
Docs:
366366
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#function_json-extract>`__ /
367-
`MariaDB <https://mariadb.com/kb/en/json_extract/>`__.
367+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_extract>`__.
368368

369369
Usage examples:
370370

@@ -395,7 +395,7 @@ more information on their syntax, refer to the docs:
395395

396396
Docs:
397397
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#function_json-keys>`__ /
398-
`MariaDB <https://mariadb.com/kb/en/json_keys/>`__.
398+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_keys>`__.
399399

400400
.. code-block:: pycon
401401
@@ -431,7 +431,7 @@ more information on their syntax, refer to the docs:
431431

432432
Docs:
433433
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-attribute-functions.html#function_json-length>`__ /
434-
`MariaDB <https://mariadb.com/kb/en/json_length/>`__.
434+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_length>`__.
435435

436436
.. code-block:: pycon
437437
@@ -457,7 +457,7 @@ more information on their syntax, refer to the docs:
457457

458458
Docs:
459459
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-insert>`__ /
460-
`MariaDB <https://mariadb.com/kb/en/json_insert/>`__.
460+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_insert>`__.
461461

462462
.. code-block:: pycon
463463
@@ -480,7 +480,7 @@ more information on their syntax, refer to the docs:
480480

481481
Docs:
482482
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-replace>`__ /
483-
`MariaDB <https://mariadb.com/kb/en/json_replace/>`__.
483+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_replace>`__.
484484

485485
.. code-block:: pycon
486486
@@ -503,7 +503,7 @@ more information on their syntax, refer to the docs:
503503

504504
Docs:
505505
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-set>`__ /
506-
`MariaDB <https://mariadb.com/kb/en/json_set/>`__.
506+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_set>`__.
507507

508508
.. code-block:: pycon
509509
@@ -530,7 +530,7 @@ more information on their syntax, refer to the docs:
530530

531531
Docs:
532532
`MySQL <https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-array-append>`__ /
533-
`MariaDB <https://mariadb.com/kb/en/json_array_append/>`__.
533+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_array_append>`__.
534534

535535
.. code-block:: pycon
536536
@@ -570,7 +570,7 @@ These are MariaDB 10.0+ only, and for use with ``DynamicField``.
570570
examples below.
571571

572572
Docs:
573-
`MariaDB <https://mariadb.com/kb/en/mariadb/column_add/>`__.
573+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/dynamic-columns-functions/column_add>`__.
574574

575575
Usage examples:
576576

@@ -597,7 +597,7 @@ These are MariaDB 10.0+ only, and for use with ``DynamicField``.
597597
column". If you do mean that, use ``F('fieldname')``.
598598

599599
Docs:
600-
`MariaDB <https://mariadb.com/kb/en/mariadb/column_delete/>`__.
600+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/dynamic-columns-functions/column_delete>`__.
601601

602602
Usage examples:
603603

@@ -617,7 +617,7 @@ These are MariaDB 10.0+ only, and for use with ``DynamicField``.
617617
documented for the ``DynamicField`` lookups.
618618

619619
Docs:
620-
`MariaDB <https://mariadb.com/kb/en/mariadb/column_get/>`__.
620+
`MariaDB <https://mariadb.com/docs/server/reference/sql-functions/special-functions/dynamic-columns-functions/column_get>`__.
621621

622622
Usage examples:
623623

docs/locks.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following can be imported from ``django_mysql.locks``.
3838
For more information on user locks refer to the ``GET_LOCK`` documentation
3939
on `MySQL
4040
<https://dev.mysql.com/doc/refman/8.0/en/locking-functions.html#function_get-lock>`__
41-
or `MariaDB <https://mariadb.com/kb/en/mariadb/get_lock/>`__.
41+
or `MariaDB <https://mariadb.com/docs/server/reference/sql-functions/secondary-functions/miscellaneous-functions/get_lock>`__.
4242

4343
.. warning::
4444

@@ -164,7 +164,7 @@ The following can be imported from ``django_mysql.locks``.
164164
165165
Docs:
166166
`MySQL <https://dev.mysql.com/doc/refman/en/lock-tables.html>`_ /
167-
`MariaDB <https://mariadb.com/kb/en/mariadb/lock-tables-and-unlock-tables/>`_.
167+
`MariaDB <https://mariadb.com/docs/server/reference/sql-statements/transactions/lock-tables>`_.
168168

169169
.. attribute:: read
170170

docs/management_commands/dbparams.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ take, e.g.:
5757
configuration being given in their DSN format; you must pass them via a
5858
MySQL configuration file instead. ``dbparams`` will output a warning
5959
on stderr if this is the case. For more info see the `percona blog
60-
<https://www.percona.com/blog/2014/10/16/percona-toolkit-for-mysql-with-mysql-ssl-connections/>`_.
60+
<https://www.percona.com/blog/percona-toolkit-for-mysql-with-mysql-ssl-connections/>`_.

docs/migration_operations.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Install Plugin
2222

2323
Docs:
2424
`MySQL <https://dev.mysql.com/doc/refman/en/install-plugin.html>`__ /
25-
`MariaDB <https://mariadb.com/kb/en/mariadb/install-plugin/>`__.
25+
`MariaDB <https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/plugin-sql-statements/install-plugin>`__.
2626

2727
.. attribute:: name
2828

@@ -67,7 +67,7 @@ Install SOName
6767
the library is already installed, since there is no way of knowing if all
6868
the plugins inside the library are installed.
6969

70-
Docs: `MariaDB <https://mariadb.com/kb/en/mariadb/install-soname/>`_.
70+
Docs: `MariaDB <https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/plugin-sql-statements/install-soname>`_.
7171

7272
.. attribute:: soname
7373

@@ -119,7 +119,7 @@ Alter Storage Engine
119119
If you're using this to move from MyISAM to InnoDB, there's a page for
120120
you in the MariaDB knowledge base - `Converting Tables from MyISAM to
121121
InnoDB
122-
<https://mariadb.com/kb/en/mariadb/converting-tables-from-myisam-to-innodb/>`_.
122+
<https://mariadb.com/docs/server/server-usage/storage-engines/converting-tables-from-myisam-to-innodb>`_.
123123

124124
Example usage:
125125

docs/model_fields/dynamic_field.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DynamicField
99
**MariaDB** has a feature called **Dynamic Columns** that allows you to store
1010
different sets of columns for each row in a table. It works by storing the data
1111
in a blob and having a small set of functions to manipulate this blob.
12-
(`Docs <https://mariadb.com/kb/en/mariadb/dynamic-columns/>`_).
12+
(`Docs <https://mariadb.com/docs/server/reference/sql-structure/nosql/dynamic-columns>`_).
1313

1414
Django-MySQL supports the *named* Dynamic Columns of MariaDB 10.0+, as opposed
1515
to the *numbered* format of 5.5+. It uses the

docs/model_fields/enum_field.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Django.
1616

1717
Docs:
1818
`MySQL <https://dev.mysql.com/doc/refman/en/enum.html>`_ /
19-
`MariaDB <https://mariadb.com/kb/en/mariadb/enum/>`_.
19+
`MariaDB <https://mariadb.com/docs/server/reference/data-types/string-data-types/enum/>`_.
2020

2121

2222
.. class:: EnumField(choices, **kwargs)

docs/model_fields/fixedchar_field.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ behaviour.
1919

2020
Docs:
2121
`MySQL <https://dev.mysql.com/doc/refman/en/char.html>`_ /
22-
`MariaDB <https://mariadb.com/kb/en/char/>`_.
22+
`MariaDB <https://mariadb.com/docs/server/reference/data-types/string-data-types/char>`_.
2323

2424
.. class:: FixedCharField(*args, max_length: int, **kwargs)
2525

0 commit comments

Comments
 (0)