Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go] update HPFollow schema #189

Merged
merged 1 commit into from
Dec 22, 2024
Merged

[go] update HPFollow schema #189

merged 1 commit into from
Dec 22, 2024

Conversation

yssk22
Copy link
Owner

@yssk22 yssk22 commented Dec 22, 2024

Summary

include follow type per elineupmall category to generate follow configuration

Test

  • go test
  • $ go run ./cmd/ --prod ent productionize
ALTER TABLE `hp_follows` MODIFY COLUMN `type` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'follow_with_notification', ADD COLUMN `elineupmall_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_daily` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a4` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a5` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_2l` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_blueray` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_penlight` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_pinnap_poster` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_photo` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_tshirt` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_microfiber_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_muffler_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_fsk` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_keyring_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_clear_file` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown';
ALTER TABLE `test_ents` AUTO_INCREMENT 111669149696;

Issue

**Summary**

include follow type per elineupmall category to generate follow configuration

**Test**

- go test
- $ go run ./cmd/ --prod ent productionize
```
ALTER TABLE `hp_follows` MODIFY COLUMN `type` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'follow_with_notification', ADD COLUMN `elineupmall_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_daily` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a4` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a5` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_2l` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_blueray` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_penlight` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_pinnap_poster` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_photo` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_tshirt` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_microfiber_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_muffler_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_fsk` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_keyring_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_clear_file` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown';
ALTER TABLE `test_ents` AUTO_INCREMENT 111669149696;
```

**Issue**

- #116
@yssk22 yssk22 merged commit e0672a1 into main Dec 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant