-- 删除spread样板工程的demo元数据
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_dimselect');
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_FORM WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'fpm_demo_dimselect';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'fpm_demo_dimselect';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'fpm_demo_dimselect';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'fpm_demo_dimselect';


DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_spreaddraw');
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_FORM WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'fpm_demo_spreaddraw';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'fpm_demo_spreaddraw';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'fpm_demo_spreaddraw';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'fpm_demo_spreaddraw';


DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_template');
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_FORM WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'fpm_demo_template';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'fpm_demo_template';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'fpm_demo_template';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'fpm_demo_template';


DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_spread_demo_ttl');
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_FORM WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'fpm_spread_demo_ttl';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'fpm_spread_demo_ttl';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'fpm_spread_demo_ttl';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'fpm_spread_demo_ttl';