Open bilekt3 opened 5 years ago
I encountered same problem - ClassName constraint didn't update after it was created initially.
Server: PHP 7.2., IIS, MS SQL 2019 Installation:
I found error or should I say incomplete regex in MSSQLSchemaManager which wasn't able to read constraint definition if they contained symbol "\" in it. ClassName contains namespaces which contain a lot of backslashes :)
I added PR #61 which adds support to backslashes, and now it works fine.
On our current project where we trying to upgrade SS3 to SS4 with this library we have realized that some tables are not created correctly (usually missing default values for ClassName etc.), we are able to fix almost everything by manual changes of database structure, but after dev/build task all changes are replaced.
System: PHP7.2, IIS, SQL SErver Express (2012)
Sample table structure with incorrect table structure: