rdagumampan / yuniql

Free and open source schema versioning and database migration made natively with .NET/6. NEW THIS MAY 2022! v1.3.15 released!
https://yuniql.io
Apache License 2.0
417 stars 63 forks source link

Destroy command ignores DB name casing #313

Open chaddoncooper opened 10 months ago

chaddoncooper commented 10 months ago

Running v1.3.15, when attempting to run destroy against a Postgresql database, if the database name contains capitals then they are ignored causing the command to fail.

e.g.

yuniql destroy --platform postgresql -c 'Server=localhost;Port=5432;Database=MyDataBase;User Id=postgres;Password=Password1' -f -p'.'

Output: Failed to execute destroy function. 3D000: database "mydatabase" does not exist

Is a mixed case Postgres database name really valid? Perhaps not Have the people I work with used mixed case anyway? Unfortunately so