mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: column definition in migration
This commit is contained in:
parent
82ed386359
commit
50b7a9ec3d
@ -1,11 +1,11 @@
|
||||
-- +migrate Up
|
||||
-- SQL in section 'Up' is executed when this migration is applied
|
||||
|
||||
alter table users
|
||||
add `machine` varchar(255);
|
||||
alter table heartbeats
|
||||
add column `machine` varchar(255);
|
||||
|
||||
-- +migrate Down
|
||||
-- SQL section 'Down' is executed when this migration is rolled back
|
||||
|
||||
alter table users
|
||||
alter table heartbeats
|
||||
drop column `machine`;
|
@ -37,7 +37,7 @@ func (s *Signup) IsValid() bool {
|
||||
}
|
||||
|
||||
func validateUsername(username string) bool {
|
||||
return len(username) >= 3
|
||||
return len(username) >= 3 && username != "current"
|
||||
}
|
||||
|
||||
func validatePassword(password string) bool {
|
||||
|
@ -1 +1 @@
|
||||
1.8.1
|
||||
1.8.2
|
Loading…
Reference in New Issue
Block a user