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

修复ip地址唯一性问题。 #58

Merged
merged 1 commit into from
Dec 24, 2019
Merged

Conversation

sndnvaps
Copy link
Contributor

add tag unique to ip table
修改内容如下:

// IP struct
type IP struct {
	ID         int64     `xorm:"pk autoincr" json:"-"`
---	Data       string    `xorm:"NOT NULL" json:"ip"`
+++	Data       string    `xorm:"NOT NULL unique" json:"ip"`
	Type1      string    `xorm:"NOT NULL" json:"type1"`
	Type2      string    `xorm:"NULL" json:"type2,omitempty"`
	Speed      int64     `xorm:"NOT NULL" json:"speed,omitempty"

@henson henson merged commit 13ffa47 into henson:master Dec 24, 2019
hktalent pushed a commit to hktalent/proxypool that referenced this pull request Mar 3, 2023
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.

None yet

2 participants