1# Option 1: Change table schema and add a DEFAULT to the column
2ALTER TABLE 'Foo'
3CHANGE COLUMN 'bar' 'bar' INT(11) NOT NULL DEFAULT 0 ;
4
5# Option 2: Turn off strict trans tables
6SELECT @sql_mode:=@@GLOBAL.sql_mode;
7SET @new_sql_mode:= REPLACE(@sql_mode,',STRICT_TRANS_TABLES','');
8SET GLOBAL sql_mode=@new_sql_mode;
9# May need to restart service if changes don't immediately take affect
10