Skip to content

wickedOne/json-translatable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json translatable

POC to use mysql json columns for record translations.

getting started

make up
make bash
bin/console doctrine:migrations:migrate -n
bin/console doctrine:migrations:migrate -n --conn=db80
bin/console fixtures:generate 10
bin/console fixtures:generate 10 --conn=db80

switching database

to not overcomplicate the code, you need to change a config when you want to switch from mysql 5.7 to mysql 8.0.

use this configuration option to switch between the db57 and db80 connection

doctrine:
    dbal:
        connections:
            db57:
                url: '%env(resolve:DB57_URL)%'
                profiling_collect_backtrace: '%kernel.debug%'
                use_savepoints: true
            db80:
                url: '%env(resolve:DB80_URL)%'
                profiling_collect_backtrace: '%kernel.debug%'
                use_savepoints: true
        default_connection: db57 # <== change this config setting
    # ....

About

poc using mysql json columns for record translations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published