I am adding the following column to a table and I am surprised it doesn't give an error because there is no default value for the column and there is data in the table. When I executed this, the rows with data got a default value of 0 with STRICT_ALL_TABLES.
Is this expected behavior? I couldn't find it documented anywhere.
ALTER TABLE phppos_receivings ADD COLUMN location_id INT(11) NOT NULL;