I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' S t o r e D o c u m e n t A c c o u n t '   A N D     C O L U M N _ N A M E   =   ' S D A _ I D ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   S t o r e D o c u m e n t A c c o u n t   a d d   S D A _ I D 	 i n t   r e f e r e n c e s   S t o r e D o c u m e n t A c c o u n t ( I D )   n u l l 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' S t o r e D o c u m e n t A c c o u n t '   A N D     C O L U M N _ N A M E   =   ' P r o _ I D _ A n b a r ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   S t o r e D o c u m e n t A c c o u n t   a d d   P r o _ I D _ A n b a r 	 i n t   r e f e r e n c e s   O t h e r P r o p e r t i e s ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' S t o r e D o c u m e n t A c c o u n t '   A N D     C O L U M N _ N A M E   =   ' D o m _ I D _ S t a t u s ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   S t o r e D o c u m e n t A c c o u n t   a d d   D o m _ I D _ S t a t u s 	 i n t   r e f e r e n c e s   D o m a i n ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' S t o r e D o c u m e n t A c c o u n t '   A N D     C O L U M N _ N A M E   =   ' M a t _ I D ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   S t o r e D o c u m e n t A c c o u n t   a d d   M a t _ I D 	 b i g i n t   r e f e r e n c e s   M a t t e r ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 