Open
Description
I was just trying to use Universally Unique Lexicographically Sortable Identifier ULID with this library and was able to insert the ULID via the multitenancy middleware as follows:
'multiTenancy.handler' => function ($operation, $tableName) {
if($operation =='create' && $tableName=='data'){
return['id'=>Ulid::generate()];
}
},
With SQLite, the post request is ok (data is saved and response status is HTTP 200) but returns {} or an empty array. Any idea why?
SQLite table schema:
CREATE TABLE data (
id TEXT (26) PRIMARY KEY
NOT NULL,
content TEXT,
createdAt DATETIME NOT NULL
DEFAULT (strftime('%Y-%m-%d %H:%M:%fZ') )
);