create table if not exists weblib_md_standards (
	standard_id				smallint unsigned			not null auto_increment,
	
	name					varchar(255)				not null, 
	name_short				varchar(15)					not null,
	
	description				text						not null,
	documentation_url		varchar(255)				not null,
	
	rank					smallint unsigned			not null,
	
	unique index			u_name						(name),
	unique index			u_name_short				(name_short),
	primary key 										(standard_id)
);



alter table weblib_md_elements add column standard_id smallint unsigned not null;
alter table weblib_md_elements add column documentation_url text not null;
create index i_standard_id on weblib_md_elements(standard_id)

alter table weblib_md_template_elements modify column template_id smallint unsigned null;
