groue / GRDB.swift

A toolkit for SQLite databases, with a focus on application development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add date time column with default as current date

bonro001 opened this issue · comments

Hello all,

What I hope is a simple question. I want to do a migration that adds a column to a table of type date. Wanting this to have always have a default value of the current date.

Is there a way to do this in GRDB migrations?

Thank you in advance!

Hello @bonro001,

Maybe have a look at #1475, which is related if not identical.

No news is good news: I'm closing the issue.