Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2c4f8e

Browse files
committed
migration script fix
1 parentbc4871a commitb2c4f8e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎pg_pathman--1.2--1.3.sql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,23 @@ ADD CHECK (@extschema@.validate_interval_value(partrel,
1616
parttype,
1717
range_interval));
1818

19+
/*
20+
* Drop check constraint to be able to update column type. We recreate it
21+
* later and it will be slightly different
22+
*/
23+
DROPFUNCTION @extschema@.validate_part_callback(REGPROC, BOOL) CASCADE;
24+
1925
/* Change type for init_callback attribute*/
2026
ALTERTABLE @extschema@.pathman_config_params
2127
ALTER COLUMN init_callback TYPETEXT,
28+
ALTER COLUMN init_callback DROPNOT NULL,
2229
ALTER COLUMN init_callbackSET DEFAULTNULL;
2330

2431
/* Set init_callback to NULL where it used to be 0*/
2532
UPDATE @extschema@.pathman_config_params
2633
SET init_callback=NULL
2734
WHERE init_callback='-';
2835

29-
DROPFUNCTION @extschema@.validate_part_callback(REGPROC, BOOL);
30-
3136
CREATEOR REPLACE FUNCTION @extschema@.validate_part_callback(
3237
callbackREGPROCEDURE,
3338
raise_errorBOOL DEFAULT TRUE)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp