Skip to content

Conversation

@MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Dec 3, 2024

Closes #2319

PR updates the type parsing code to allow for a space between the limit and precision arguments to a type for the SQLiteAdapter, e.g. decimal(10, 5).

I also fixed a couple of tests that were testing for Literal::from('decimal') instead of using SQLiteAdapter::PHINX_TYPE_DECIMAL. It doesn't really matter as the assertion converts it to a string (as that's what the column type is) and both evaluate to 'decimal'.

@MasterOdin MasterOdin merged commit 25eaa54 into 0.x Dec 3, 2024
12 checks passed
@MasterOdin MasterOdin deleted the fix-sqlite-decimal branch December 3, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLiteAdapter::getPhinxType does not recognize types with whitespace in definition, e.g. DECIMAL(10, 5)

1 participant