mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-18 05:16:04 +00:00
initialized postgres support
This commit is contained in:
@@ -32,8 +32,10 @@ export class DateField<Required extends true | false = false> extends Field<
|
||||
}
|
||||
|
||||
override schema() {
|
||||
const type = this.config.type === "datetime" ? "datetime" : "date";
|
||||
return this.useSchemaHelper(type);
|
||||
return Object.freeze({
|
||||
...super.schema()!,
|
||||
type: this.config.type === "datetime" ? "datetime" : "date",
|
||||
});
|
||||
}
|
||||
|
||||
override getHtmlConfig() {
|
||||
|
||||
Reference in New Issue
Block a user