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
|
-- +migrate Up
|
||||||
-- SQL in section 'Up' is executed when this migration is applied
|
-- SQL in section 'Up' is executed when this migration is applied
|
||||||
|
|
||||||
alter table users
|
alter table heartbeats
|
||||||
add `machine` varchar(255);
|
add column `machine` varchar(255);
|
||||||
|
|
||||||
-- +migrate Down
|
-- +migrate Down
|
||||||
-- SQL section 'Down' is executed when this migration is rolled back
|
-- SQL section 'Down' is executed when this migration is rolled back
|
||||||
|
|
||||||
alter table users
|
alter table heartbeats
|
||||||
drop column `machine`;
|
drop column `machine`;
|
@ -37,7 +37,7 @@ func (s *Signup) IsValid() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validateUsername(username string) bool {
|
func validateUsername(username string) bool {
|
||||||
return len(username) >= 3
|
return len(username) >= 3 && username != "current"
|
||||||
}
|
}
|
||||||
|
|
||||||
func validatePassword(password string) bool {
|
func validatePassword(password string) bool {
|
||||||
|
@ -1 +1 @@
|
|||||||
1.8.1
|
1.8.2
|
Loading…
x
Reference in New Issue
Block a user