Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ require (
github.com/gosimple/slug v1.15.0
github.com/minio/minio-go/v7 v7.0.100
github.com/pressly/goose/v3 v3.27.0
github.com/prometheus/client_golang v1.23.2
github.com/samber/lo v1.52.0
github.com/swaggo/swag v1.16.6
github.com/uptrace/bun v1.2.18
Expand Down Expand Up @@ -79,6 +78,7 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/philhofer/fwd v1.2.0 // indirect
github.com/prometheus/client_golang v1.23.2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.67.5 // indirect
github.com/prometheus/procfs v0.19.2 // indirect
Expand Down
26 changes: 26 additions & 0 deletions internal/db/migrations/20260424000000_add_user_name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL;
-- +goose StatementEnd
-- +goose StatementBegin
UPDATE `users`
SET `name` = SUBSTRING_INDEX(`email`, '@', 1)
WHERE `name` IS NULL
OR `name` = '';
-- +goose StatementEnd
-- +goose StatementBegin
ALTER TABLE `users`
MODIFY COLUMN `name` VARCHAR(255) NOT NULL;
-- +goose StatementEnd
Comment thread
capcom6 marked this conversation as resolved.
-- +goose StatementBegin
CREATE INDEX idx_users_status_lower_name_prefix ON users (`status`, `name`);
-- +goose StatementEnd
---
-- +goose Down
-- +goose StatementBegin
DROP INDEX idx_users_status_lower_name_prefix ON users;
-- +goose StatementEnd
-- +goose StatementBegin
ALTER TABLE `users` DROP COLUMN `name`;
-- +goose StatementEnd
22 changes: 0 additions & 22 deletions internal/example/config.go

This file was deleted.

104 changes: 0 additions & 104 deletions internal/example/doc.go

This file was deleted.

29 changes: 0 additions & 29 deletions internal/example/domain.go

This file was deleted.

36 changes: 0 additions & 36 deletions internal/example/errors.go

This file was deleted.

72 changes: 0 additions & 72 deletions internal/example/metrics.go

This file was deleted.

32 changes: 0 additions & 32 deletions internal/example/models.go

This file was deleted.

52 changes: 0 additions & 52 deletions internal/example/module.go

This file was deleted.

Loading
Loading