Merge pull request #43 from capcom6/hotfix/last-seen-default-value

Fix `devices.last_seen` field default value
This commit is contained in:
Aleksandr 2024-02-29 19:24:00 +07:00 committed by GitHub
commit e5b4076335
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `devices`
ADD `last_seen` datetime(3) NOT NULL;
ADD `last_seen` datetime(3) NOT NULL DEFAULT current_timestamp(3);
-- +goose StatementEnd
-- +goose StatementBegin
UPDATE `devices`