mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
Merge pull request #43 from capcom6/hotfix/last-seen-default-value
Fix `devices.last_seen` field default value
This commit is contained in:
commit
e5b4076335
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user