FCLT#64017 Remake constraint ter update van omgevingen waar de constraint nog op de oude waarde stond (Accept bijv.) en weer gelijk te trekken aan Prod

svn path=/Database/trunk/; revision=54686
This commit is contained in:
2022-01-26 09:00:09 +00:00
parent c2fcdf3543
commit fe03ef41fc

25
_UP/DB41to42.src Normal file
View File

@@ -0,0 +1,25 @@
/*
* Update script van FACILITOR schema
* $Revision$
* $Id$
*/
#include "prologue.inc"
COMMIT;
SET DEFINE OFF
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#64017
ALTER TABLE fac_widget DROP CONSTRAINT fac_c_widgettype1;
ALTER TABLE fac_widget
ADD CONSTRAINT fac_c_widgettype1 CHECK
( (fac_widget_type IN ('FAC', 'URL', 'IMG', 'FLR') AND fac_widget_url IS NOT NULL)
OR (fac_widget_type IN ('MK', 'MI', 'RAP', 'FAQ') AND fac_widget_typerefkey IS NOT NULL)
OR (fac_widget_type = 'RAW' AND fac_widget_content IS NOT NULL));
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#00000
///////////////////////////////////////////////////////////////////////////////////////////
REGISTERONCE('$Id$')
#include "epilogue.inc"