Skip to content

Commit b3aa5e9

Browse files
authored
Merge pull request #1759 from jrha/indentation-mysql
ncm-mysql: Fix wrapping and indentation in pan
2 parents 26018f5 + 8594bc7 commit b3aa5e9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ncm-mysql/src/main/pan/components/mysql/schema.pan

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ function component_mysql_valid = {
3030

3131

3232
function component_mysql_check_db_script = {
33-
if ((exists(SELF['file']) && is_defined(SELF['file'])) ||
34-
(exists(SELF['content']) && is_defined(SELF['content']))) {
35-
return(true);
33+
if (
34+
(exists(SELF['file']) && is_defined(SELF['file'])) ||
35+
(exists(SELF['content']) && is_defined(SELF['content']))
36+
) {
37+
return(true);
3638
} else {
3739
error('Invalid DB script : either script name or script content must be specified');
3840
};
@@ -52,7 +54,8 @@ function component_mysql_password_valid = {
5254
type component_mysql_user_right = string with match(SELF, '^(ALL( PRIVILEGES)?|ALTER( ROUTINE)?|' +
5355
'CREATE( (ROUTINE|TEMPORARY TABLES|USER|VIEW))?|DELETE|DROP|EVENT|EXECUTE|FILE|GRANT OPTION|INDEX|INSERT|' +
5456
'LOCK TABLES|PROCESS|REFERENCES|RELOAD|REPLICATION (CLIENT|SLAVE)|SELECT|SHOW (DATABASES|VIEW)|SHUTDOWN|' +
55-
'SUPER|TRIGGER|UPDATE|USAGE)$');
57+
'SUPER|TRIGGER|UPDATE|USAGE)$'
58+
);
5659

5760

5861
type component_mysql_db_user = {

0 commit comments

Comments
 (0)