Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error occurs when adding data with preset function values. #61

Open
ghost opened this issue May 30, 2024 · 0 comments
Open

Error occurs when adding data with preset function values. #61

ghost opened this issue May 30, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented May 30, 2024

I have set my data table with the following code:
create_time TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
This is to automatically fill in the date when manually adding data.

At least that's how it works on the data table operation page in Cloudflare D1. However, when I tried to do the same in the program of this repository, it automatically filled in the text of the default function strftime('%Y-%m-%dT%H:%M:%SZ', 'now') itself.
image

Typically, it should work like this: automatically filling in the date when adding.
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants