Commit Graph

125043 Commits

Author SHA1 Message Date
Andi Chandler
51bb6a1116
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (3427 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/en_GB/
Signed-off-by: Andi Chandler <andi@gowling.com>
2024-09-21 02:40:48 +02:00
Maurício Meneghini Fauth
674bd0c924
Update apt cache before installing sphinx
https://github.com/phpmyadmin/phpmyadmin/actions/runs/10929135157/job/30376698644

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-09-19 10:41:53 -03:00
Maurício Meneghini Fauth
50fdf16a56
Merge pull request #19285 from liviuconcioiu/19284
Fix #19284 - Delete_history_priv is not a valid column in mysql.tables_priv

Delete_history_priv is not a valid column in mysql.tables_priv, from what I've read here https://mariadb.com/kb/en/mysqltables_priv-table/ and here 91c758a.

The error happens only on master, but I targeted QA_5_2.

Fixes #19284
2024-09-14 11:20:45 -03:00
Yaron Shahrabani
1023ff1b93
Translated using Weblate (Hebrew)
Currently translated at 46.1% (1582 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/he/
Signed-off-by: Yaron Shahrabani <sh.yaron@gmail.com>
2024-09-09 17:09:17 +02:00
Liviu-Mihail Concioiu
cc4b51e1eb Delete_history_priv is not a valid column in mysql.tables_priv
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-09-08 03:35:58 +02:00
Maurício Meneghini Fauth
e2ff85bfbc
Merge pull request #19283 from liviuconcioiu/18897
Fix #18897 - Unknown storage engine InnoDB
2024-09-06 11:24:38 -03:00
Liviu-Mihail Concioiu
43f114a08d Fix Unknown storage engine InnoDB
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-09-04 04:50:17 +02:00
Maurício Meneghini Fauth
29018a5b47
Upgrade Yarn dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-09-03 14:38:31 -03:00
Temuri Doghonadze
502400d8a0
Translated using Weblate (Georgian)
Currently translated at 56.8% (1947 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/ka/
Signed-off-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
2024-09-01 07:09:20 +02:00
Maurício Meneghini Fauth
888268c61e
Remove usage of the spaceless Twig filter
It was deprecated in Twig 3.12

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-31 12:40:27 -03:00
Maurício Meneghini Fauth
c96a06edaf
Update SA baselines
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-31 12:07:17 -03:00
Sachin Bahukhandi
b06651f968
Fixed the issue appearing on updating twig
Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>
(cherry picked from commit da6847dd0d)
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-30 20:26:03 -03:00
kjo-sdds
8cf94134ea
Translated using Weblate (French)
Currently translated at 100.0% (3427 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/fr/
Signed-off-by: kjo-sdds <kjo@domo-supply.com>
2024-08-30 16:09:13 +02:00
Masahiro Fujimoto
e9b08d9dfc
Translated using Weblate (Japanese)
Currently translated at 100.0% (3427 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/ja/
Signed-off-by: Masahiro Fujimoto <mfujimot@gmail.com>
2024-08-29 03:09:11 +00:00
Maurício Meneghini Fauth
18bdcba40a
Merge pull request #19273 from MauricioFauth/webauthn-tests
Improve tests for WebAuthn
2024-08-28 20:44:15 -03:00
Maurício Meneghini Fauth
a522a9982f
Improve tests for WebAuthn
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-28 20:20:01 -03:00
Maurício Meneghini Fauth
af7c5dc083
Fix coding standard issues
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-27 14:44:06 -03:00
Maurício Meneghini Fauth
72eed40387
Add yarn 1.22 to the package.json's packageManager field
This defines which package manager is expected to be used.

- https://nodejs.org/api/packages.html#packagemanager
- https://yarnpkg.com/corepack
- https://yarnpkg.com/getting-started/install
- https://nodejs.org/api/corepack.html

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
(cherry picked from commit c048688186)
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-27 14:30:40 -03:00
Liviu-Mihail Concioiu
8e64fa51ef
Fix #19254 - Trim spaces around index name (#19257)
* Trim spaces around index name

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Trim only trailing space

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Trim only trailing space around column name

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

Fixes #19254

---------

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-08-16 19:27:19 -03:00
Maurício Meneghini Fauth
4929e9867f
Merge pull request #19255 from MauricioFauth/phpunit10for52
Backport some fixes for PHPUnit 10 compatibility

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-14 15:10:09 -03:00
Maurício Meneghini Fauth
46f2c8871c
Backport some fixes for PHPUnit 10 compatibility
- Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070623

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-13 20:13:18 -03:00
Maurício Meneghini Fauth
85a1421c51
Merge pull request #19185 from M393/empty-cell
Keep empty cells at same height as others when browsing table
2024-08-09 09:19:52 -03:00
Moha684
6c7defbdec
Translated using Weblate (Breton)
Currently translated at 15.5% (534 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/br/
Signed-off-by: Moha684 <nahil82466@gmail.com>
2024-08-01 18:01:51 +02:00
Maurício Meneghini Fauth
80bab0e272
Merge #19217 SyntaxError thrown when updating existing NULL JSON cell in grid
- Closes #19217
- Fixes #19216

Fix #19216 - SyntaxError thrown when updating existing NULL JSON cell in grid
2024-07-29 21:04:35 -03:00
Maurício Meneghini Fauth
f4660c950e
Merge #19237 Fix duplicate message being shown
- Closes #19237

This PR will fix a bug introduced in ed1ca20848. If a table has 0 rows, a duplicate message is shown.

Before:

![before](https://github.com/user-attachments/assets/632ef9aa-5ab0-48c8-91a7-311139a9bbe4)

After:

![after](https://github.com/user-attachments/assets/c2215f88-d108-44f4-a6ec-1d24aca1c745)

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-29 16:17:38 -03:00
Moha684
d88632a027
Translated using Weblate (Breton)
Currently translated at 15.5% (532 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/br/
Signed-off-by: Moha684 <nahil82466@gmail.com>
2024-07-26 08:05:26 +02:00
William Desportes
e9dad07bda
Merge #19238 - Fix badges and urls
Pull-request: #19238
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-07-23 13:04:16 +02:00
Liviu-Mihail Concioiu
b7e9675a72 Fix documentation badge and url 2024-07-23 04:34:25 +02:00
Liviu-Mihail Concioiu
31222bb151 Fix to match master
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-07-23 04:29:11 +02:00
Liviu-Mihail Concioiu
a5a3e94c9b Fix badges and urls
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-07-23 04:16:23 +02:00
Liviu-Mihail Concioiu
b9c793e7f8 Show message if $total is greater than 0
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-07-23 03:21:00 +02:00
Maurício Meneghini Fauth
a55dc7f741
Merge #19234 Validate *_structure_or_data param when exporting
- Closes #19234

- Fixes #19213

This is not the best fix, but will avoid generating an invalid file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-20 14:41:02 -03:00
Maurício Meneghini Fauth
587d185bb7
Validate *_structure_or_data param when exporting
- Fixes #19213

This is not the best fix, but will avoid generating an invalid file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-18 16:07:46 -03:00
Maurício Meneghini Fauth
c8525a89d8
Merge #19203 Fix Query Generator single quotes and backslashes
- Closes #19203

Hello 👋

This PR fixes the generated query when the criteria text contains single quotes or backslashes.

For now it only escapes the first `single quote` and the first `backslash`, which generates an invalid query.

![Screenshot from 2024-06-19 18-49-43](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/264f2fc9-8d7c-47be-8114-153f6dfbda2f)

After merging this PR it will escape all the `single quotes` and all the `backslashes`.

![Screenshot from 2024-06-19 18-44-15](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/b1050188-7750-4b9e-90a6-a57a6c1f90f6)

- phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-17 12:37:08 -03:00
Maurício Meneghini Fauth
bc22629b34
Merge #19181 Query generator support for IN() and NOT IN()
- Closes #19181

Hellooo 👋🏻

In this PR I have added `Query Generator` support to `IN()` and `NOT IN()`.

This is what it generates for now on both `IN()` and `NOT IN()`, which is not valid.

![Screenshot 2024-05-26 031847](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/5f295cd7-eb9f-4d4a-8b98-20edfe4be640)

This how it will looks after merging this PR, generating a valid one.

> Separate the values by commas

As you can see I have added a hint that shows only when choosing `IN()` or `NOT INT()`.

![Screenshot 2024-05-26 033921](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/7c0e77dd-8e82-4ac0-8c26-bc5457a038e2)

- phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-17 12:33:04 -03:00
faissaloux
95866fd8cf
Query generator support for IN() and NOT IN()
Query Generator IN() support

Signed-off-by: faissaloux <fwahabali@gmail.com>

Query Generator NOT IN() support

Signed-off-by: faissaloux <fwahabali@gmail.com>

fix hint duplicates

Signed-off-by: faissaloux <fwahabali@gmail.com>

dont escape single quote on IN() and NOT IN()

Signed-off-by: faissaloux <fwahabali@gmail.com>

makes linter happy

Signed-off-by: faissaloux <fwahabali@gmail.com>

refactor

Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-07-17 12:32:04 -03:00
Maurício Meneghini Fauth
cd1604345c
Merge #19167 Fix Query Generator criteria on column *
- Closes #19167

When choosing `*` in the column we can't use it in condition. This generates a non-valid query.

![Screenshot from 2024-05-15 16-45-48](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/b6d28c2f-cb23-44c2-bf03-6b26c4c6f1fa)

To fix this issue I have added another select in the criteria area where we can choose the column (* not included) that we want the criteria to be applied on

![Screenshot from 2024-05-15 16-50-52](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/ac8bf739-436a-4f37-a50b-afd8b4823cfe)

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-17 12:12:45 -03:00
faissaloux
6aa461cb52
Fix Query Generator criteria on column *
add op column

Signed-off-by: faissaloux <fwahabali@gmail.com>

use op column to generate condition

Signed-off-by: faissaloux <fwahabali@gmail.com>

var -> const

Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-07-17 12:12:16 -03:00
Maurício Meneghini Fauth
185d086f01
Merge #19163 Fix Query Generator IS NULL / IS NOT NULL
- Closes #19163

Hellooo 👋🏻

In this PR I fixed the bug in the `Query Generator`  that generates a non-valid query when using `IS NULL` and `IS NOT NULL`.

As you can see it adds the criteria string before `IS NULL`  which is empty in this case (Same thing for `IS NOT NULL`).
Which is not a valid query. 

![Screenshot from 2024-05-14 21-07-52](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/16be3b2c-d7e7-4ffd-a37b-04e1793f87fa)

Valid 
![Screenshot from 2024-05-14 21-10-06](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/882cd744-577d-49b3-8106-bc3f651a9f85)

[Screencast from 14-05-24 21:53:10.webm](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/2c6b308f-9f26-40fe-a0ea-2c0e09dacc0f)

- phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-17 12:04:21 -03:00
faissaloux
506d2c561b
fix Query Generator IS NULL / IS NOT NULL
Signed-off-by: faissaloux <fwahabali@gmail.com>

hide criteria on operators without arg

clear criteria input when hide it
2024-07-17 12:03:43 -03:00
Maurício Meneghini Fauth
ed1ca20848
Merge #19221 Show query stats for count(*) query
- Closes #19221
- Fixes #16869

Treat `SELECT COUNT(*) ...` query more like a normal select query.

If no group by is included (always only one row) then, like before, no
navigation is shown. Otherwise it shows with navigation like any other
select.
Before this PR the `nav_bar` property controlled the navigation and
the query duration, now the new `query_stats` property allows to show
the stats without navigation.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-16 18:20:34 -03:00
Maurício Meneghini Fauth
7af58fc2b1
Merge #19200 Add fractional seconds to current_timestamp()
Add fractional seconds to current_timestamp().

Fixes #19199

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-13 12:47:04 -03:00
Liviu-Mihail Concioiu
02b508276e
Add fractional seconds to current_timestamp()
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-07-13 12:45:34 -03:00
Maurício Meneghini Fauth
bd3598cf28
Upgrade JavaScript dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-13 12:34:27 -03:00
Maurício Meneghini Fauth
44ab18a38a
Fix scripts/check-release-excludes.sh
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-13 12:26:15 -03:00
sebastians17
0e523fb31c
Translated using Weblate (Polish)
Currently translated at 90.6% (3106 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: sebastians17 <sebastians117.ss@gmail.com>
2024-07-09 16:09:17 +02:00
Maurício Meneghini Fauth
358f7c0c43
Upgrade ramsey/composer-install GH action to v3
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-08 14:37:21 -03:00
Maximilian Krög
2a4fb46391
Show query stats for count(*) query
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-07-05 00:04:49 +02:00
Maurício Meneghini Fauth
cc37776964
Merge pull request #19218 from liviuconcioiu/resize
Fix textarea resize horizontally - Bootstrap theme
2024-07-03 20:19:47 -03:00
Liviu-Mihail Concioiu
2fc2cb11f2 Fix textarea resize horizontally
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-07-03 13:49:49 +02:00