From 0f2e04730fcd8bd3a24e07b05d0cf3965a1dff94 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Mon, 23 Sep 2024 09:56:00 +0200 Subject: [PATCH] Show partitioning info in table structure page --- adminer/drivers/mysql.inc.php | 2 +- adminer/include/adminer.inc.php | 22 ++++++++++++++++++++++ adminer/include/functions.inc.php | 2 +- adminer/lang/ar.inc.php | 1 + adminer/lang/bg.inc.php | 1 + adminer/lang/bn.inc.php | 1 + adminer/lang/bs.inc.php | 1 + adminer/lang/ca.inc.php | 1 + adminer/lang/cs.inc.php | 1 + adminer/lang/da.inc.php | 1 + adminer/lang/de.inc.php | 1 + adminer/lang/el.inc.php | 1 + adminer/lang/es.inc.php | 1 + adminer/lang/et.inc.php | 1 + adminer/lang/fa.inc.php | 1 + adminer/lang/fi.inc.php | 1 + adminer/lang/fr.inc.php | 1 + adminer/lang/gl.inc.php | 1 + adminer/lang/he.inc.php | 1 + adminer/lang/hu.inc.php | 1 + adminer/lang/id.inc.php | 1 + adminer/lang/it.inc.php | 1 + adminer/lang/ja.inc.php | 1 + adminer/lang/ka.inc.php | 1 + adminer/lang/ko.inc.php | 1 + adminer/lang/lt.inc.php | 1 + adminer/lang/lv.inc.php | 1 + adminer/lang/ms.inc.php | 1 + adminer/lang/nl.inc.php | 1 + adminer/lang/no.inc.php | 1 + adminer/lang/pl.inc.php | 1 + adminer/lang/pt-br.inc.php | 1 + adminer/lang/pt.inc.php | 1 + adminer/lang/ro.inc.php | 1 + adminer/lang/ru.inc.php | 1 + adminer/lang/sk.inc.php | 1 + adminer/lang/sl.inc.php | 1 + adminer/lang/sr.inc.php | 1 + adminer/lang/sv.inc.php | 1 + adminer/lang/ta.inc.php | 1 + adminer/lang/th.inc.php | 1 + adminer/lang/tr.inc.php | 1 + adminer/lang/uk.inc.php | 1 + adminer/lang/vi.inc.php | 1 + adminer/lang/xx.inc.php | 1 + adminer/lang/zh-tw.inc.php | 1 + adminer/lang/zh.inc.php | 1 + adminer/table.inc.php | 6 ++++++ 48 files changed, 74 insertions(+), 2 deletions(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 3a2e1dbc..ec0f416b 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -502,7 +502,7 @@ if (!defined("DRIVER")) { function table_status($name = "", $fast = false) { $return = array(); foreach (get_rows($fast && min_version(5) - ? "SELECT TABLE_NAME AS Name, ENGINE AS Engine, TABLE_COMMENT AS Comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " . ($name != "" ? "AND TABLE_NAME = " . q($name) : "ORDER BY Name") + ? "SELECT TABLE_NAME AS Name, ENGINE AS Engine, CREATE_OPTIONS AS Create_options, TABLE_COMMENT AS Comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " . ($name != "" ? "AND TABLE_NAME = " . q($name) : "ORDER BY Name") : "SHOW TABLE STATUS" . ($name != "" ? " LIKE " . q(addcslashes($name, "%_\\")) : "") ) as $row) { if ($row["Engine"] == "InnoDB") { diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 9f1c46e4..020d8d68 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -338,6 +338,28 @@ class Adminer { echo "\n"; } + function tablePartitionsPrint($partition_info) { + $showList = $partition_info["partition_by"] == "RANGE" || $partition_info["partition_by"] == "LIST"; + + echo "

"; + echo "{$partition_info["partition_by"]} ({$partition_info["partition"]})"; + if (!$showList) { + echo " " . lang('Partitions') . ": " . h($partition_info["partitions"]); + } + echo "

"; + + if ($showList) { + echo "\n"; + echo "\n"; + + foreach ($partition_info["partition_names"] as $key => $name) { + echo "
" . lang('Partition') . "" . lang('Values') . "
" . h($name) . "" . h($partition_info["partition_values"][$key]) . "\n"; + } + + echo "
\n"; + } + } + /** Print list of indexes on table in tabular format * @param array data about all indexes on a table * @return null diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index d24ce841..692c3c94 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -891,7 +891,7 @@ function hidden_fields_get() { */ function table_status1($table, $fast = false) { $return = table_status($table, $fast); - return ($return ? $return : array("Name" => $table)); + return ($return ?: array("Name" => $table)); } /** Find out foreign keys for each column diff --git a/adminer/lang/ar.inc.php b/adminer/lang/ar.inc.php index 59cbb0da..065ccebf 100644 --- a/adminer/lang/ar.inc.php +++ b/adminer/lang/ar.inc.php @@ -188,6 +188,7 @@ $translations = array( 'Clone' => 'نسخ', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'لقد تجاوزت العدد الأقصى للحقول. يرجى الرفع من %s.', 'Partition by' => 'مقسم بواسطة', + 'Partition' => null, 'Partitions' => 'التقسيمات', 'Partition name' => 'اسم التقسيم', 'Values' => 'القيم', diff --git a/adminer/lang/bg.inc.php b/adminer/lang/bg.inc.php index 18bcb80a..c83182d9 100644 --- a/adminer/lang/bg.inc.php +++ b/adminer/lang/bg.inc.php @@ -176,6 +176,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Максималния брой полета е превишен. Моля, увеличете %s.', 'Partition by' => 'Разделяне на', + 'Partition' => null, 'Partitions' => 'Раздели', 'Partition name' => 'Име на раздела', 'Values' => 'Стойности', diff --git a/adminer/lang/bn.inc.php b/adminer/lang/bn.inc.php index f0e3cf5e..afef94bb 100644 --- a/adminer/lang/bn.inc.php +++ b/adminer/lang/bn.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'ক্লোন', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'অনুমোদিত ফিল্ড এর সর্বাধিক সংখ্যা অতিক্রম করে গেছে। অনুগ্রহপূর্বক %s বৃদ্ধি করুন।', 'Partition by' => 'পার্টিশন যার মাধ্যমে', + 'Partition' => null, 'Partitions' => 'পার্টিশন', 'Partition name' => 'পার্টিশনের নাম', 'Values' => 'মানসমূহ', diff --git a/adminer/lang/bs.inc.php b/adminer/lang/bs.inc.php index 6db09fd2..f89f2182 100644 --- a/adminer/lang/bs.inc.php +++ b/adminer/lang/bs.inc.php @@ -167,6 +167,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Premašen je maksimalni broj dozvoljenih polja. Molim uvećajte %s.', 'Partition by' => 'Podijeli po', + 'Partition' => null, 'Partitions' => 'Podijele', 'Partition name' => 'Ime podijele', 'Values' => 'Vrijednosti', diff --git a/adminer/lang/ca.inc.php b/adminer/lang/ca.inc.php index 3d9f2664..e0105851 100644 --- a/adminer/lang/ca.inc.php +++ b/adminer/lang/ca.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Tables have been dropped.' => 'S\'han suprimit les taules.', 'Clone' => 'Clona', 'Partition by' => 'Fes particions segons', + 'Partition' => null, 'Partitions' => 'Particions', 'Partition name' => 'Nom de la partició', 'Values' => 'Valors', diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 38c33aff..9e69a78c 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Byl překročen maximální povolený počet polí. Zvyšte prosím %s.', 'Partition by' => 'Rozdělit podle', + 'Partition' => 'Oddíl', 'Partitions' => 'Oddíly', 'Partition name' => 'Název oddílu', 'Values' => 'Hodnoty', diff --git a/adminer/lang/da.inc.php b/adminer/lang/da.inc.php index b19cb3a6..a669e3a9 100644 --- a/adminer/lang/da.inc.php +++ b/adminer/lang/da.inc.php @@ -151,6 +151,7 @@ $translations = array( 'Remove' => 'Fjern', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maksimum antal feltnavne overskredet - øg venligst %s.', 'Partition by' => 'Partition ved', + 'Partition' => null, 'Partitions' => 'Partitioner', 'Partition name' => 'Partitionsnavn', 'Values' => 'Værdier', diff --git a/adminer/lang/de.inc.php b/adminer/lang/de.inc.php index d5145f95..7a46ae02 100644 --- a/adminer/lang/de.inc.php +++ b/adminer/lang/de.inc.php @@ -191,6 +191,7 @@ $translations = array( 'Clone' => 'Klonen', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Die maximal erlaubte Anzahl der Felder ist überschritten. Bitte %s erhöhen.', 'Partition by' => 'Partitionieren um', + 'Partition' => 'Partition', 'Partitions' => 'Partitionen', 'Partition name' => 'Name der Partition', 'Values' => 'Werte', diff --git a/adminer/lang/el.inc.php b/adminer/lang/el.inc.php index 72f98c61..8bde22ed 100644 --- a/adminer/lang/el.inc.php +++ b/adminer/lang/el.inc.php @@ -177,6 +177,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Υπέρβαση μέγιστου επιτρεπόμενου αριθμού πεδίων. Παρακαλώ αυξήστε %s.', 'Partition by' => 'Τμηματοποίηση ανά', + 'Partition' => null, 'Partitions' => 'Τμήματα', 'Partition name' => 'Όνομα Τμήματος', 'Values' => 'Τιμές', diff --git a/adminer/lang/es.inc.php b/adminer/lang/es.inc.php index a7a66e9e..7e69fb6c 100644 --- a/adminer/lang/es.inc.php +++ b/adminer/lang/es.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Clonar', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Excedida la cantidad máxima de campos permitidos. Por favor aumente %s.', 'Partition by' => 'Particionar por', + 'Partition' => null, 'Partitions' => 'Particiones', 'Partition name' => 'Nombre de partición', 'Values' => 'Valores', diff --git a/adminer/lang/et.inc.php b/adminer/lang/et.inc.php index 8d9a545a..5012303a 100644 --- a/adminer/lang/et.inc.php +++ b/adminer/lang/et.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Kloon', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maksimaalne väljade arv ületatud. Palun suurendage %s.', 'Partition by' => 'Partitsiooni', + 'Partition' => null, 'Partitions' => 'Partitsioonid', 'Partition name' => 'Partitsiooni nimi', 'Values' => 'Väärtused', diff --git a/adminer/lang/fa.inc.php b/adminer/lang/fa.inc.php index f71e6fce..0b9435d5 100644 --- a/adminer/lang/fa.inc.php +++ b/adminer/lang/fa.inc.php @@ -175,6 +175,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'حداکثر تعداد فیلدهای مجاز اشباع شد. لطفا %s را افزایش دهید.', 'Partition by' => 'بخشبندی توسط', + 'Partition' => null, 'Partitions' => 'بخشبندیها', 'Partition name' => 'نام بخش', 'Values' => 'مقادیر', diff --git a/adminer/lang/fi.inc.php b/adminer/lang/fi.inc.php index 4dc2d86c..7efedf1a 100644 --- a/adminer/lang/fi.inc.php +++ b/adminer/lang/fi.inc.php @@ -177,6 +177,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Kenttien sallittu enimmäismäärä ylitetty. Kasvata arvoa %s.', 'Partition by' => 'Osioi arvolla', + 'Partition' => null, 'Partitions' => 'Osiot', 'Partition name' => 'Osion nimi', 'Values' => 'Arvot', diff --git a/adminer/lang/fr.inc.php b/adminer/lang/fr.inc.php index 10c68ea2..7e206907 100644 --- a/adminer/lang/fr.inc.php +++ b/adminer/lang/fr.inc.php @@ -188,6 +188,7 @@ $translations = array( 'Clone' => 'Cloner', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Le nombre maximum de champs est dépassé. Veuillez augmenter %s.', 'Partition by' => 'Partitionner par', + 'Partition' => null, 'Partitions' => 'Partitions', 'Partition name' => 'Nom de la partition', 'Values' => 'Valeurs', diff --git a/adminer/lang/gl.inc.php b/adminer/lang/gl.inc.php index c90eb18e..168a4240 100644 --- a/adminer/lang/gl.inc.php +++ b/adminer/lang/gl.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Clonar', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Excedida o número máximo de campos permitidos. Por favor aumente %s.', 'Partition by' => 'Particionar por', + 'Partition' => null, 'Partitions' => 'Particións', 'Partition name' => 'Nome da Partición', 'Values' => 'Valores', diff --git a/adminer/lang/he.inc.php b/adminer/lang/he.inc.php index aeb0b246..7ef2a40a 100644 --- a/adminer/lang/he.inc.php +++ b/adminer/lang/he.inc.php @@ -188,6 +188,7 @@ $translations = array( 'Clone' => 'שכפל', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'הגעת למספר השדות המרבי. בבקשה הגדל את %s', 'Partition by' => 'מחיצות ע"י', + 'Partition' => null, 'Partitions' => 'מחיצות', 'Partition name' => 'שם מחיצה', 'Values' => 'ערכים', diff --git a/adminer/lang/hu.inc.php b/adminer/lang/hu.inc.php index 9f5c9bff..038939d5 100644 --- a/adminer/lang/hu.inc.php +++ b/adminer/lang/hu.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Tables have been dropped.' => 'Táblák eldobva.', 'Clone' => 'Klónoz', 'Partition by' => 'Particionálás ezzel', + 'Partition' => null, 'Partitions' => 'Particiók', 'Partition name' => 'Partició neve', 'Values' => 'Értékek', diff --git a/adminer/lang/id.inc.php b/adminer/lang/id.inc.php index 29fabd67..1071095a 100644 --- a/adminer/lang/id.inc.php +++ b/adminer/lang/id.inc.php @@ -167,6 +167,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Sudah lebih dumlah ruas maksimum yang diizinkan. Harap naikkan %s.', 'Partition by' => 'Partisi menurut', + 'Partition' => null, 'Partitions' => 'Partisi', 'Partition name' => 'Nama partisi', 'Values' => 'Nilai', diff --git a/adminer/lang/it.inc.php b/adminer/lang/it.inc.php index 2ac9aadd..c649e3b4 100644 --- a/adminer/lang/it.inc.php +++ b/adminer/lang/it.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Clona', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Troppi campi. Per favore aumentare %s.', 'Partition by' => 'Partiziona per', + 'Partition' => null, 'Partitions' => 'Partizioni', 'Partition name' => 'Nome partizione', 'Values' => 'Valori', diff --git a/adminer/lang/ja.inc.php b/adminer/lang/ja.inc.php index 8dde2bfb..fb3f7fef 100644 --- a/adminer/lang/ja.inc.php +++ b/adminer/lang/ja.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Clone' => 'クローン', 'Maximum number of allowed fields exceeded. Please increase %s.' => '定義可能な最大フィールド数を越えました。%s を増やしてください。', 'Partition by' => 'パーティション', + 'Partition' => null, 'Partitions' => 'パーティション', 'Partition name' => 'パーティション名', 'Values' => '値', diff --git a/adminer/lang/ka.inc.php b/adminer/lang/ka.inc.php index 99c26d13..17a6fe05 100644 --- a/adminer/lang/ka.inc.php +++ b/adminer/lang/ka.inc.php @@ -187,6 +187,7 @@ $translations = array( 'Tables have been dropped.' => 'ცხრილები წაიშალა.', 'Clone' => 'კლონირება', 'Partition by' => 'დაყოფა', + 'Partition' => null, 'Partitions' => 'დანაყოფები', 'Partition name' => 'დანაყოფის სახელი', 'Values' => 'პარამეტრები', diff --git a/adminer/lang/ko.inc.php b/adminer/lang/ko.inc.php index 73be235b..10cc865e 100644 --- a/adminer/lang/ko.inc.php +++ b/adminer/lang/ko.inc.php @@ -172,6 +172,7 @@ $translations = array( 'Parameter name' => '매개변수 이름', 'Partition by' => '파티션', 'Partition name' => '파티션 이름', + 'Partition' => null, 'Partitions' => '파티션', 'Password' => '비밀번호', 'Permanent link' => '영구적으로 링크', diff --git a/adminer/lang/lt.inc.php b/adminer/lang/lt.inc.php index 5c10c766..c1dde21a 100644 --- a/adminer/lang/lt.inc.php +++ b/adminer/lang/lt.inc.php @@ -166,6 +166,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Viršytas maksimalus leidžiamų stulpelių kiekis. Padidinkite %s.', 'Partition by' => 'Skirstyti pagal', + 'Partition' => null, 'Partitions' => 'Skirsniai', 'Partition name' => 'Skirsnio pavadinimas', 'Values' => 'Reikšmės', diff --git a/adminer/lang/lv.inc.php b/adminer/lang/lv.inc.php index b315d223..e58b7f05 100644 --- a/adminer/lang/lv.inc.php +++ b/adminer/lang/lv.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Tables have been dropped.' => 'Tabulas dzēstas.', 'Clone' => 'Klonēt', 'Partition by' => 'Sadalīt pēc', + 'Partition' => null, 'Partitions' => 'Partīcijas', 'Partition name' => 'Partīcijas nosaukums', 'Values' => 'Vērtības', diff --git a/adminer/lang/ms.inc.php b/adminer/lang/ms.inc.php index 6dc88803..b02c35de 100644 --- a/adminer/lang/ms.inc.php +++ b/adminer/lang/ms.inc.php @@ -181,6 +181,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Bilangan medan telah melebihi had yang dibenarkan. Sila tingkatkan %s.', 'Partition by' => 'Partition mengikut', + 'Partition' => null, 'Partitions' => 'Partition', 'Partition name' => 'Nama partition', 'Values' => 'Nilai', diff --git a/adminer/lang/nl.inc.php b/adminer/lang/nl.inc.php index d98470e9..ae1e5c3b 100644 --- a/adminer/lang/nl.inc.php +++ b/adminer/lang/nl.inc.php @@ -191,6 +191,7 @@ $translations = array( 'Clone' => 'Dupliceer', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maximum aantal velden bereikt. Verhoog %s.', 'Partition by' => 'Partitioneren op', + 'Partition' => null, 'Partitions' => 'Partities', 'Partition name' => 'Partitie naam', 'Values' => 'Waarden', diff --git a/adminer/lang/no.inc.php b/adminer/lang/no.inc.php index 5c91a11a..56c5c1fb 100644 --- a/adminer/lang/no.inc.php +++ b/adminer/lang/no.inc.php @@ -151,6 +151,7 @@ $translations = array( 'Remove' => 'Fjern', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Maksimum antall feltnavn overskredet - venligst øk %s.', 'Partition by' => 'Partisjoner ved', + 'Partition' => null, 'Partitions' => 'Partisjoner', 'Partition name' => 'Partisjonsnavn', 'Values' => 'Verdier', diff --git a/adminer/lang/pl.inc.php b/adminer/lang/pl.inc.php index e902ce3e..a8032f42 100644 --- a/adminer/lang/pl.inc.php +++ b/adminer/lang/pl.inc.php @@ -180,6 +180,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Przekroczono maksymalną liczbę pól. Zwiększ %s.', 'Partition by' => 'Partycjonowanie', + 'Partition' => null, 'Partitions' => 'Partycje', 'Partition name' => 'Nazwa partycji', 'Values' => 'Wartości', diff --git a/adminer/lang/pt-br.inc.php b/adminer/lang/pt-br.inc.php index 2471c794..cc4885da 100644 --- a/adminer/lang/pt-br.inc.php +++ b/adminer/lang/pt-br.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Clonar', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Quantidade máxima de campos permitidos excedidos. Por favor aumente %s.', 'Partition by' => 'Particionar por', + 'Partition' => null, 'Partitions' => 'Partições', 'Partition name' => 'Nome da Partição', 'Values' => 'Valores', diff --git a/adminer/lang/pt.inc.php b/adminer/lang/pt.inc.php index 2fccd026..9df9476f 100644 --- a/adminer/lang/pt.inc.php +++ b/adminer/lang/pt.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'Clonar', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Quantidade máxima de campos permitidos excedidos. Por favor aumente %s.', 'Partition by' => 'Particionar por', + 'Partition' => null, 'Partitions' => 'Partições', 'Partition name' => 'Nome da Partição', 'Values' => 'Valores', diff --git a/adminer/lang/ro.inc.php b/adminer/lang/ro.inc.php index e747e973..becf541e 100644 --- a/adminer/lang/ro.inc.php +++ b/adminer/lang/ro.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Tables have been dropped.' => 'Tabelele au fost șterse.', 'Clone' => 'Clonează', 'Partition by' => 'Împarte', + 'Partition' => null, 'Partitions' => 'Secțiuni', 'Partition name' => 'Denumirea secțiunii', 'Values' => 'Parametru', diff --git a/adminer/lang/ru.inc.php b/adminer/lang/ru.inc.php index 314cfedd..9be6060b 100644 --- a/adminer/lang/ru.inc.php +++ b/adminer/lang/ru.inc.php @@ -189,6 +189,7 @@ $translations = array( 'Tables have been dropped.' => 'Таблицы были удалены.', 'Clone' => 'Клонировать', 'Partition by' => 'Разделить по', + 'Partition' => null, 'Partitions' => 'Разделы', 'Partition name' => 'Название раздела', 'Values' => 'Параметры', diff --git a/adminer/lang/sk.inc.php b/adminer/lang/sk.inc.php index 3e5e7a29..7c83ae29 100644 --- a/adminer/lang/sk.inc.php +++ b/adminer/lang/sk.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Whole result' => 'Celý výsledok', 'Clone' => 'Klonovať', 'Partition by' => 'Rozdeliť podľa', + 'Partition' => 'Oddiel', 'Partitions' => 'Oddiely', 'Partition name' => 'Názov oddielu', 'Values' => 'Hodnoty', diff --git a/adminer/lang/sl.inc.php b/adminer/lang/sl.inc.php index 28438b40..36a18ea9 100644 --- a/adminer/lang/sl.inc.php +++ b/adminer/lang/sl.inc.php @@ -162,6 +162,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Največje število dovoljenih polje je preseženo. Prosimo, povečajte %s.', 'Partition by' => 'Porazdeli po', + 'Partition' => null, 'Partitions' => 'Porazdelitve', 'Partition name' => 'Ime porazdelitve', 'Values' => 'Vrednosti', diff --git a/adminer/lang/sr.inc.php b/adminer/lang/sr.inc.php index aa04b201..fa07274b 100644 --- a/adminer/lang/sr.inc.php +++ b/adminer/lang/sr.inc.php @@ -167,6 +167,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Премашен је максимални број дозвољених поља. Молим увећајте %s.', 'Partition by' => 'Подели по', + 'Partition' => null, 'Partitions' => 'Поделе', 'Partition name' => 'Име поделе', 'Values' => 'Вредности', diff --git a/adminer/lang/sv.inc.php b/adminer/lang/sv.inc.php index 2dfece7c..63e19e1d 100644 --- a/adminer/lang/sv.inc.php +++ b/adminer/lang/sv.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Högsta nummer tillåtna fält är överskridet. Vänligen höj %s.', 'Partition by' => 'Partitionera om', + 'Partition' => null, 'Partitions' => 'Partitioner', 'Partition name' => 'Partition', 'Values' => 'Värden', diff --git a/adminer/lang/ta.inc.php b/adminer/lang/ta.inc.php index 5c8b8cea..e7fb3782 100644 --- a/adminer/lang/ta.inc.php +++ b/adminer/lang/ta.inc.php @@ -187,6 +187,7 @@ $translations = array( 'Clone' => 'ந‌க‌லி (Clone)', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'அனும‌திக்க‌ப்ப‌ட்ட‌ அதிக‌ப‌ட்ச‌ கோப்புக‌ளின் எண்ணிக்கை மீற‌ப்ப‌ட்ட‌து. த‌ய‌வு செய்து %s ம‌ற்றும் %s யை அதிக‌ரிக்க‌வும்.', 'Partition by' => 'பிரித்த‌து', + 'Partition' => null, 'Partitions' => 'பிரிவுக‌ள்', 'Partition name' => 'பிரிவின் பெய‌ர்', 'Values' => 'ம‌திப்புக‌ள்', diff --git a/adminer/lang/th.inc.php b/adminer/lang/th.inc.php index f0795a30..c8de602e 100644 --- a/adminer/lang/th.inc.php +++ b/adminer/lang/th.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Clone' => 'ทำซ้ำ', 'Maximum number of allowed fields exceeded. Please increase %s.' => 'จำนวนสูงสุดของฟิลด์อนุญาตให้เกิน กรุณาเพิ่มอีก %s.', 'Partition by' => 'พาร์ทิชันโดย', + 'Partition' => null, 'Partitions' => 'พาร์ทิชัน', 'Partition name' => 'ชื่อของพาร์ทิชัน', 'Values' => 'ค่า', diff --git a/adminer/lang/tr.inc.php b/adminer/lang/tr.inc.php index 1c760efa..dbe15190 100644 --- a/adminer/lang/tr.inc.php +++ b/adminer/lang/tr.inc.php @@ -184,6 +184,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'İzin verilen en fazla alan sayısı aşıldı. Lütfen %s değerlerini artırın.', 'Partition by' => 'Bununla bölümle', + 'Partition' => null, 'Partitions' => 'Bölümler', 'Partition name' => 'Bölüm adı', 'Values' => 'Değerler', diff --git a/adminer/lang/uk.inc.php b/adminer/lang/uk.inc.php index ce80c70e..fc77e264 100644 --- a/adminer/lang/uk.inc.php +++ b/adminer/lang/uk.inc.php @@ -167,6 +167,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Досягнута максимальна кількість доступних полів. Будь ласка, збільшіть %s.', 'Partition by' => 'Розділити по', + 'Partition' => null, 'Partitions' => 'Розділи', 'Partition name' => 'Назва розділу', 'Values' => 'Значення', diff --git a/adminer/lang/vi.inc.php b/adminer/lang/vi.inc.php index bed98a08..ff58ced0 100644 --- a/adminer/lang/vi.inc.php +++ b/adminer/lang/vi.inc.php @@ -172,6 +172,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Thiết lập %s cần tăng thêm. (Đã vượt giới hạnố trường tối đa cho phép trong một biểu mẫu).', 'Partition by' => 'Phân chia bằng', + 'Partition' => null, 'Partitions' => 'Phân hoạch', 'Partition name' => 'Tên phân hoạch', 'Values' => 'Giá trị', diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php index d53003be..eebae228 100644 --- a/adminer/lang/xx.inc.php +++ b/adminer/lang/xx.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => 'Xx %s.', 'Partition by' => 'Xx', + 'Partition' => 'Xx', 'Partitions' => 'Xx', 'Partition name' => 'Xx', 'Values' => 'Xx', diff --git a/adminer/lang/zh-tw.inc.php b/adminer/lang/zh-tw.inc.php index 78f03ca6..1f45f228 100644 --- a/adminer/lang/zh-tw.inc.php +++ b/adminer/lang/zh-tw.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => '超過允許的字段數量的最大值。請增加 %s。', 'Partition by' => '分區類型', + 'Partition' => null, 'Partitions' => '分區', 'Partition name' => '分區名稱', 'Values' => '值', diff --git a/adminer/lang/zh.inc.php b/adminer/lang/zh.inc.php index 0e2d5ece..21e65e90 100644 --- a/adminer/lang/zh.inc.php +++ b/adminer/lang/zh.inc.php @@ -190,6 +190,7 @@ $translations = array( 'Maximum number of allowed fields exceeded. Please increase %s.' => '超过最多允许的字段数量。请增加 %s。', 'Partition by' => '分区类型', + 'Partition' => null, 'Partitions' => '分区', 'Partition name' => '分区名', 'Values' => '值', diff --git a/adminer/table.inc.php b/adminer/table.inc.php index 10d2b5c4..af459c0a 100644 --- a/adminer/table.inc.php +++ b/adminer/table.inc.php @@ -27,6 +27,12 @@ if ($comment != "") { if ($fields) { $adminer->tableStructurePrint($fields); + + if (support("partitioning") && preg_match("~partitioned~", $table_status["Create_options"])) { + echo "

" . lang('Partition by') . "

\n"; + $partitions_info = get_partitions_info($TABLE); + $adminer->tablePartitionsPrint($partitions_info); + } } if (!is_view($table_status)) {