Upgrade to slendium/ocd v0.2 #12

Merged
c.fahner merged 6 commits from issues/11 into main 2026-10-27 06:50:18 +01:00
Owner

Resolves #11

Increment slendium/ocd min. version to 0.2
Add ColumnType and ColumnTypeParser
Refactor DataType to allow for the more flexible type system of 0.2
Implement Database::supports()

Resolves #11 Increment slendium/ocd min. version to 0.2 Add ColumnType and ColumnTypeParser Refactor DataType to allow for the more flexible type system of 0.2 Implement Database::supports()
c.fahner added this to the v0.2 milestone 2026-10-24 08:51:37 +02:00
@ -60,0 +18,4 @@
* @return bool `true` if the new type fits all possible values of the current type, `false` if
* not or if the new type is unknown
*/
public function fits(self $newType): bool;
Author
Owner

Could be named fitsIn() for clarity (fits implies the other type fits in the current one). Or maybe refactor it to mean the opposite (named canContain())

Could be named `fitsIn()` for clarity (fits implies the other type fits in the current one). Or maybe refactor it to mean the opposite (named `canContain()`)
c.fahner marked this conversation as resolved
@ -0,0 +35,4 @@
#[Override]
public function toSql(): string {
throw new LogicException(
Author
Owner

Make a proper escape function

Make a proper escape function
c.fahner marked this conversation as resolved
c.fahner stopped working 2026-10-26 07:02:18 +01:00
16 minutes 43 seconds
c.fahner added spent time 2026-10-26 16:55:11 +01:00
2 hours
Update DataType\Enum
Add (internal) LiteralSqlizer
Update ApplySchemaCommand to take JSON_VALID check constaints into account
c.fahner stopped working 2026-10-27 06:50:18 +01:00
9 minutes 56 seconds
c.fahner deleted branch issues/11 2026-10-27 06:50:18 +01:00
c.fahner referenced this pull request from a commit 2026-10-27 06:50:20 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 2 hours 26 minutes
c.fahner
2 hours 26 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd-mariadb!12
No description provided.