db-sqlite
db-sqlite copied to clipboard
Support DateTime instances
PR Summary
-
Enhanced Functionality for Timezone in ColumnSchema Class The
ColumnSchemaclass can now detect if a particular column carries timezone information or not, thanks to the newly addedhasTimezonemethod. -
Adjustment of Year Column Type in Schema Class We've adjusted the data type of the
yearcolumn in theSchemaclass, moving it fromTYPE_DATEtoTYPE_SMALLINT, thereby increasing its efficiency. -
Support for Additional Column Types in Schema Class The
Schemaclass has been updated to supporttimetzandtimestamptzcolumn types, thus expanding the range of data types that can be used for your columns. -
Improved Handling of Default Values in Schema Class We've made modifications to the
loadColumnSchemamethod within theSchemaclass so it can handle default values for various column types more effectively. -
Additional Testing for the ColumnSchemaTest and SchemaProvider Classes New test cases have been added to the
ColumnSchemaTestandSchemaProviderclasses. These tests specifically relate to the new column types and default values we've incorporated, ensuring optimal performance and avoiding potential bugs. -
Updated SQL Fixture File The SQL fixture file has been updated to include new columns with varied types and default values. This update enhances testing conditions and ensures that our changes integrate smoothly into existing structures.
Codecov Report
Patch coverage: 100.00% and project coverage change: +0.01% :tada:
Comparison is base (
b172ec9) 98.21% compared to head (d718b0b) 98.22%.
Additional details and impacted files
@@ Coverage Diff @@
## master #269 +/- ##
============================================
+ Coverage 98.21% 98.22% +0.01%
Complexity 325 325
============================================
Files 17 18 +1
Lines 1006 1013 +7
============================================
+ Hits 988 995 +7
Misses 18 18
| Files Changed | Coverage Δ | |
|---|---|---|
| src/ColumnSchema.php | 100.00% <100.00%> (ø) |
|
| src/Schema.php | 100.00% <100.00%> (ø) |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.