IF NOT EXISTS (
    SELECT * 
    FROM sys.columns 
    WHERE object_id = OBJECT_ID('ast_det') 
    AND name = 'ast_det_serial'
)
BEGIN
    ALTER TABLE ast_det
    ADD ast_det_serial varchar(100) NULL
END

DELETE	cf_label
WHERE	table_name = 'ast_det'
AND 	column_name = 'ast_det_serial'
GO

INSERT 	cf_label (language_cd, table_name, column_name, 
		default_label,
		customize_label, 
		default_header, 
		customize_header, 
		cfr_flag, cf_label_required, audit_user, audit_date ) 
SELECT 	language_cd, 'ast_det', 'ast_det_serial', 
		'Serial No:', 
		'Serial No:', 
		'Serial No', 
		'Serial No', 
		'0', '0', 'admin', getdate() 
FROM	cf_language 
GO