Field 'referer' doesn't have a default value

Status
Not open for further replies.

percocet

Member
Oct 21, 2016
72
16
I'm using this skin


When trying to regester I get the error written in the title

I did this sql ALTER TABLE users ADD referer varchar(15) NOT NULL
but that doesn't seem to work.
How do I fix this? thanks
 

Haid

Member
Dec 20, 2011
363
448
You need to either give field referer a default value (you've just pasted that you told it it can't be null) or supply a refer when they register.
 

KylePr0zZ

Member
Jul 22, 2016
51
14
I'm using this skin


When trying to regester I get the error written in the title

I did this sql ALTER TABLE users ADD referer varchar(15) NOT NULL
but that doesn't seem to work.
How do I fix this? thanks
ALTER TABLE `users` MODIFY COLUMN `referer` varchar(100) NOT NULL DEFAULT '0';
 
Status
Not open for further replies.

Users who are viewing this thread

Top