Skip to content

Commit

Permalink
nette/database v3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 2, 2024
1 parent a66e0c3 commit 668d17d
Show file tree
Hide file tree
Showing 20 changed files with 84 additions and 5 deletions.
3 changes: 3 additions & 0 deletions database/bg/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# само за MySQL: set SET NAMES
charset: # (string) по подразбиране е 'utf8mb4' ('utf8' преди v5.5.3)

# само за MySQL: преобразува TINYINT(1) в bool
supportBooleans: # (bool) по подразбиране е false

# само за Oracle и SQLite: formatDate
formatDateTime: # (string) по подразбиране е 'U'
```
Expand Down
1 change: 1 addition & 0 deletions database/cs/@left-menu.texy
Expand Up @@ -3,3 +3,4 @@ Databáze
- [Core]
- [Explorer]
- [Konfigurace |configuration]
- [Upgrade |upgrading]
3 changes: 3 additions & 0 deletions database/cs/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# pouze MySQL: nastaví SET NAMES
charset: # (string) výchozí je 'utf8mb4' ('utf8' před verzí 5.5.3)

# pouze MySQL: převádí TINYINT(1) na bool
supportBooleans: # (bool) výchozí je false

# pouze Oracle a SQLite: formát pro ukládání data
formatDateTime: # (string) výchozí je 'U'
```
Expand Down
15 changes: 15 additions & 0 deletions database/cs/upgrading.texy
@@ -0,0 +1,15 @@
Upgrade
*******


Přechod z verze 3.1 na 3.2
==========================

Minimální požadovaná verze PHP je 8.1.

Kód byl pečlivě vyladěn pro PHP 8.1. Byly doplněny všechny nové typehinty u metod a properites. Změny jsou jen drobné:

- MySQL: nulové datum `0000-00-00` vrací jako `null`
- MySQL: decimal bez desetinných míst vrací jako int místo float
- typ `time` vrací jako DateTime s datumem `1. 1. 0001` místo aktuálního data

3 changes: 3 additions & 0 deletions database/de/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# nur MySQL: setzt SET NAMES
charset: # (string) Standardwert ist 'utf8mb4' ('utf8' vor v5.5.3)

# nur MySQL: wandelt TINYINT(1) in bool um
supportBooleans: # (bool) standardmäßig false

# nur Oracle und SQLite: Datumsformat
formatDateTime: # (string) Standardwert ist 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/el/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# μόνο MySQL: ορίζει SET NAMES
charset: # (string) προεπιλογή 'utf8mb4' ('utf8' πριν την έκδοση v5.5.3)

# μόνο MySQL: μετατρέπει το TINYINT(1) σε bool
supportBooleans: # (bool) προεπιλογή σε false

# μόνο Oracle και SQLite: μορφή ημερομηνίας
formatDateTime: # (string) προεπιλογή 'U'
```
Expand Down
1 change: 1 addition & 0 deletions database/en/@left-menu.texy
Expand Up @@ -3,3 +3,4 @@ Database
- [Core]
- [Explorer]
- [Configuration]
- [Upgrading]
7 changes: 5 additions & 2 deletions database/en/configuration.texy
Expand Up @@ -45,12 +45,15 @@ database:
# PHP database driver class
driverClass: # (string)

# only MySQL: sets sql_mode
# MySQL only: sets sql_mode
sqlmode: # (string)

# only MySQL: sets SET NAMES
# MySQL only: sets SET NAMES
charset: # (string) defaults to 'utf8mb4' ('utf8' before v5.5.3)

# MySQL only: converts TINYINT(1) to bool
supportBooleans: # (bool) defaults to false

# only Oracle and SQLite: date format
formatDateTime: # (string) defaults to 'U'
```
Expand Down
14 changes: 14 additions & 0 deletions database/en/upgrading.texy
@@ -0,0 +1,14 @@
Upgrading
*********


Migrating from 3.1 to 3.2
=========================

The minimum required PHP version is 8.1.

The code has been carefully tuned for PHP 8.1. All new typehints for methods and properties have been added. The changes are minor:

- MySQL: a zero date `0000-00-00` is returned as `null`
- MySQL: a decimal without decimal places is returned as int instead of float
- The `time` type is returned as DateTime with the date `1. 1. 0001` instead of the current date
9 changes: 6 additions & 3 deletions database/es/configuration.texy
Expand Up @@ -45,13 +45,16 @@ database:
# PHP database driver class
driverClass: # (string)

# only MySQL: sets sql_mode
# sólo MySQL: sets sql_mode
sqlmode: # (string)

# only MySQL: sets SET NAMES
# sólo MySQL: sets SET NAMES
charset: # (string) defaults to 'utf8mb4' ('utf8' before v5.5.3)

# only Oracle and SQLite: date format
# sólo MySQL: convierte TINYINT(1) a bool
supportBooleans: # (bool) por defecto false

# sólo Oracle and SQLite: date format
formatDateTime: # (string) defaults to 'U'
```

Expand Down
3 changes: 3 additions & 0 deletions database/fr/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# uniquement MySQL: sets SET NAMES
charset: # (string) par défaut 'utf8mb4' ('utf8' avant v5.5.3)

# uniquement MySQL : convertit TINYINT(1) en bool
supportBooleans : # (bool) valeur par défaut : false

# uniquement Oracle et SQLite: format de date
formatDateTime: # (string) vaut par défaut 'U'.
```
Expand Down
3 changes: 3 additions & 0 deletions database/hu/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# csak MySQL: sets SET NAMES
charset: # (string) alapértelmezés szerint 'utf8mb4' ('utf8' a v5.5.3 előtt)

# csak MySQL: TINYINT(1) bool-ra konvertálja
supportBooleans: # (bool) alapértelmezett értéke false

# csak Oracle és SQLite: dátumformátum
formatDateTime: # (string) alapértelmezett értéke 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/it/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# solo MySQL: imposta SET NAMES
charset: # (string) predefinito a 'utf8mb4' ('utf8' prima della v5.5.3)

# solo MySQL: converte TINYINT(1) in bool
supportBooleans: # (bool) predefinito a false

# solo Oracle e SQLite: formato data
formatDateTime: # (string) predefinito a "U".
```
Expand Down
3 changes: 3 additions & 0 deletions database/pl/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# Tylko MySQL: ustawia SET NAMES
charset: # (string) default is 'utf8mb4' ('utf8' before 5.5.3)

# Tylko MySQL: konwertuje TINYINT(1) na bool
supportBooleans: # (bool) domyślnie false

# Tylko Oracle i SQLite: format przechowywania danych
formatDateTime: # (string) domyślnie 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/pt/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# somente MySQL: define o SET NAMES
charset: # (string) padrão para 'utf8mb4' ('utf8' antes da v5.5.3)

# somente MySQL: converte TINYINT(1) em bool
supportBooleans: # (bool) tem como padrão false

# somente Oracle e SQLite: formato de data
formatDateTime: # (string) padrão para 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/ro/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# numai MySQL: stabilește SET NAMES
charset: # (șir de caractere) implicit la "utf8mb4" ("utf8" înainte de v5.5.3)

# numai MySQL: convertește TINYINT(1) în bool
supportBooleans: # (bool) implicit la false

# numai Oracle și SQLite: formatul datei
formatDateTime: # (șir de caractere) implicit la "U".
```
Expand Down
3 changes: 3 additions & 0 deletions database/ru/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# только для MySQL: устанавливает SET NAMES
charset: # (string) по умолчанию 'utf8mb4' ('utf8' до v5.5.3)

# Только для MySQL: преобразует TINYINT(1) в bool
supportBooleans: # (bool) по умолчанию false

# только для Oracle и SQLite: формат даті
formatDateTime: # (string) по умолчанию 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/sl/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# samo MySQL: nastavi SET NAMES
charset: # (niz) privzeta vrednost je 'utf8mb4' ('utf8' pred v5.5.3)

# samo MySQL: pretvori TINYINT(1) v bool
supportBooleans: # (bool) privzeto false

# samo Oracle in SQLite: format datuma
formatDateTime: # (niz) privzeta vrednost je 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/tr/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# sadece MySQL: SET NAMES setleri
charset: # (string) varsayılan olarak 'utf8mb4' ('utf8' v5.5.3'ten önce)

# sadece MySQL: TINYINT(1)'i bool'a dönüştürür
supportBooleans: # (bool) varsayılan değer false

# sadece Oracle ve SQLite: tarih biçimi
formatDateTime: # (string) varsayılan değer 'U'
```
Expand Down
3 changes: 3 additions & 0 deletions database/uk/configuration.texy
Expand Up @@ -51,6 +51,9 @@ database:
# тільки для MySQL: встановлює SET NAMES
charset: # (string) за замовчуванням 'utf8mb4' ('utf8' до v5.5.3)

# тільки MySQL: перетворює TINYINT(1) в bool
supportBooleans: # (bool) за замовчуванням дорівнює false

# тільки для Oracle і SQLite: формат даті
formatDateTime: # (string) за замовчуванням 'U'
```
Expand Down

0 comments on commit 668d17d

Please sign in to comment.