atk4 / data

Data Access PHP Framework for SQL & high-latency databases
https://atk4-data.readthedocs.io/en/stable/
MIT License
273 stars 46 forks source link

Use Doctrine SQL formatter #1216

Closed mvorisek closed 6 months ago

mvorisek commented 6 months ago

To have SQL queries formatted add doctrine/sql-formatter dependency to your projects.

If you have added jdorn/sql-formatter dependency in the past, you can remove it, atk4/* projects no longer need it.

Example composer.json change:

     "require-dev": {
-        "jdorn/sql-formatter": "^1.2.17"
+        "doctrine/sql-formatter": "dev-1-5-php74 as 1.5.99"
     },
     "repositories": [
+        {
+            "type": "git",
+            "url": "https://github.com/atk4/doctrine-sql-formatter.git",
+            "name": "doctrine/sql-formatter"
+        }
     ]