1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-13 07:57:16 +02:00

Force unique constraint on username

This commit is contained in:
Kyle Drake 2016-12-08 15:26:12 -06:00
parent 67ddf7d419
commit e92fba18be

View file

@ -0,0 +1,8 @@
Sequel.migration do
up {
DB['ALTER TABLE sites ADD CONSTRAINT uniqueusername UNIQUE (username)'].first
}
down {
}
end