docker logs ente-museum INFO[0000]main.go:108 main Booting up local server with commit #1fe2a941ffa72f986be76099e7a75a21fc2fee8e INFO[0000]main.go:880 setupDatabase Setting up db INFO[0000]main.go:887 setupDatabase Connected to DB INFO[0000]main.go:892 setupDatabase Pinged DB INFO[0000]main.go:901 setupDatabase Loaded migration scripts PANI[0000]main.go:903 setupDatabase migration failed: syntax error at or near "TRIGGER" (column 19) in line 23: CREATE TABLE IF NOT EXISTS public_file_tokens ( id text primary key, file_id bigint NOT NULL, owner_id bigint NOT NULL, app text NOT NULL, access_token text not null, valid_till bigint not null DEFAULT 0, device_limit int not null DEFAULT 0, is_disabled bool not null DEFAULT FALSE, enable_download bool not null DEFAULT TRUE, pw_hash TEXT, pw_nonce TEXT, mem_limit BIGINT, ops_limit BIGINT, created_at bigint NOT NULL DEFAULT now_utc_micro_seconds(), updated_at bigint NOT NULL DEFAULT now_utc_micro_seconds() ); CREATE OR REPLACE TRIGGER update_public_file_tokens_updated_at BEFORE UPDATE ON public_file_tokens FOR EACH ROW EXECUTE PROCEDURE trigger_updated_at_microseconds_column(); CREATE TABLE IF NOT EXISTS public_file_tokens_access_history ( id text NOT NULL, ip text not null, user_agent text not null, created_at bigint NOT NULL DEFAULT now_utc_micro_seconds(), CONSTRAINT unique_access_id_ip_ua UNIQUE (id, ip, user_agent), CONSTRAINT fk_public_file_history_token_id FOREIGN KEY (id) REFERENCES public_file_tokens (id) ON DELETE CASCADE ); CREATE UNIQUE INDEX IF NOT EXISTS public_file_token_unique_idx ON public_file_tokens (access_token) WHERE is_disabled = FALSE; CREATE INDEX IF NOT EXISTS public_file_tokens_owner_id_updated_at_idx ON public_file_tokens (owner_id, updated_at); CREATE UNIQUE INDEX IF NOT EXISTS public_active_file_link_unique_idx ON public_file_tokens (file_id, is_disabled) WHERE is_disabled = FALSE; (details: pq: syntax error at or near "TRIGGER") panic: (*logrus.Entry) 0xc0012e9e30 goroutine 1 [running]: github.com/sirupsen/logrus.Entry.log({0x1ff42a0, 0xc0007c74a0, {0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0}, 0x0, ...}, ...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/entry.go:259 +0x2fc github.com/sirupsen/logrus.(*Entry).Log(0xc0012e9dc0, 0x0, {0xc00109d648?, 0xc00051ee00?, 0x65?}) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/entry.go:287 +0xa5 github.com/sirupsen/logrus.(*Logger).Log(0x1ff42a0, 0x0, {0xc00109d648, 0x1, 0x1}) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/logger.go:193 +0x58 github.com/sirupsen/logrus.(*Logger).Panic(...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/logger.go:234 github.com/sirupsen/logrus.Panic(...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/exported.go:129 main.setupDatabase() /etc/ente/cmd/museum/main.go:903 +0x298 main.main() /etc/ente/cmd/museum/main.go:128 +0x492 INFO[0000]main.go:108 main Booting up local server with commit #1fe2a941ffa72f986be76099e7a75a21fc2fee8e INFO[0000]main.go:880 setupDatabase Setting up db INFO[0000]main.go:887 setupDatabase Connected to DB INFO[0000]main.go:892 setupDatabase Pinged DB INFO[0000]main.go:901 setupDatabase Loaded migration scripts PANI[0000]main.go:903 setupDatabase Dirty database version 103. Fix and force version. panic: (*logrus.Entry) 0xc0018d8cb0 goroutine 1 [running]: github.com/sirupsen/logrus.Entry.log({0x1ff42a0, 0xc0011a7ec0, {0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0}, 0x0, ...}, ...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/entry.go:259 +0x2fc github.com/sirupsen/logrus.(*Entry).Log(0xc0018d85b0, 0x0, {0xc001917648?, 0x2027d58?, 0xc0003d8b00?}) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/entry.go:287 +0xa5 github.com/sirupsen/logrus.(*Logger).Log(0x1ff42a0, 0x0, {0xc001917648, 0x1, 0x1}) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/logger.go:193 +0x58 github.com/sirupsen/logrus.(*Logger).Panic(...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/logger.go:234 github.com/sirupsen/logrus.Panic(...) /go/pkg/mod/github.com/sirupsen/logrus@v1.6.0/exported.go:129 main.setupDatabase() /etc/ente/cmd/museum/main.go:903 +0x298 main.main() /etc/ente/cmd/museum/main.go:128 +0x492 INFO[0000]main.go:108 main Booting up local server with commit #1fe2a941ffa72f986be76099e7a75a21fc2fee8e INFO[0000]main.go:880 setupDatabase Setting up db INFO[0000]main.go:887 setupDatabase Connected to DB INFO[0000]main.go:892 setupDatabase Pinged DB INFO[0000]main.go:901 setupDatabase Loaded migration scripts PANI[0000]main.go:903 setupDatabase Dirty database version 103. Fix and force version. panic: (*logrus.Entry) 0xc0004e7260