use EnVisage

if not exists (select * from sys.all_columns where name like 'PreferredTotalsDisplaying' and object_id = OBJECT_ID('AspNetUsers'))
begin
	
	alter table [AspNetUsers] 
		add PreferredTotalsDisplaying bit NULL

	EXEC('
update [AspNetUsers] 
		set PreferredTotalsDisplaying = 0;
    ');
	
	alter table [AspNetUsers] 
		alter column PreferredTotalsDisplaying bit NOT NULL
end