1
0
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:
Ferdinand Mütsch 2020-08-30 01:24:27 +02:00
parent 82ed386359
commit 50b7a9ec3d
3 changed files with 5 additions and 5 deletions

View File

@ -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`;

View File

@ -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 {

View File

@ -1 +1 @@
1.8.1
1.8.2