diff --git a/internal/cron/cron.go b/internal/cron/cron.go index 8c409f2..642ac25 100644 --- a/internal/cron/cron.go +++ b/internal/cron/cron.go @@ -200,7 +200,7 @@ func uploadCleanJob(logger *zap.Logger) { func folderSizeUpdate(logger *zap.Logger) { database.DB.Exec("call teldrive.update_size();") - logger.Info("updates folder sizes") + logger.Info("updated folder sizes") } diff --git a/pkg/database/migrations/20240120151952_modify_constraint.sql b/pkg/database/migrations/20240120151952_modify_constraint.sql new file mode 100644 index 0000000..3dc1da8 --- /dev/null +++ b/pkg/database/migrations/20240120151952_modify_constraint.sql @@ -0,0 +1,6 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS btoken_user_un; +ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS btoken_user_channel_un; +ALTER TABLE teldrive.bots ADD CONSTRAINT btoken_user_channel_un UNIQUE (user_id,token,channel_id); +-- +goose StatementEnd \ No newline at end of file diff --git a/ui/teldrive-ui b/ui/teldrive-ui index 1ae405f..ba03365 160000 --- a/ui/teldrive-ui +++ b/ui/teldrive-ui @@ -1 +1 @@ -Subproject commit 1ae405f113ebe394390e9611fb774636aab7e501 +Subproject commit ba0336510bf348ba0b95722e1b620de5fb296a38