Revision 5ee95a8f
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql | ||
---|---|---|
-- @description: sub_module in custom_variables auf NOT NULL ändern.
|
||
-- @encoding: utf-8
|
||
-- @depends: release_2_7_0
|
||
UPDATE custom_variables SET sub_module = '';
|
||
UPDATE custom_variables SET sub_module = '' WHERE sub_module IS NULL;
|
||
ALTER TABLE custom_variables ALTER COLUMN sub_module SET DEFAULT '';
|
||
ALTER TABLE custom_variables ALTER COLUMN sub_module SET NOT NULL;
|
||
|
Auch abrufbar als: Unified diff
Natürlich nur die sub_modules auf '' setzen, die auch NULL sind.