Skip to content

Commit 3478b7c

Browse files
engine != 'MaterializedView'
1 parent 4a679b8 commit 3478b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/altinity-kb-setup-and-maintenance/altinity-kb-data-migration/add_remove_replica.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ SELECT
5959
replaceRegexpOne(replaceOne(concat(create_table_query, ';'), '(', 'ON CLUSTER \'{cluster}\' ('), 'CREATE (TABLE|DICTIONARY|VIEW|LIVE VIEW|WINDOW VIEW)', 'CREATE \\1 IF NOT EXISTS')
6060
FROM
6161
system.tables
62-
WHERE
62+
WHERE engine != 'MaterializedView' and
6363
database NOT IN ('system', 'information_schema', 'INFORMATION_SCHEMA') AND
6464
create_table_query != '' AND
6565
name NOT LIKE '.inner.%%' AND
@@ -72,7 +72,7 @@ SELECT
7272
replaceRegexpOne(replaceOne(concat(create_table_query, ';'), 'TO', 'ON CLUSTER \'{cluster}\' TO'), '(CREATE MATERIALIZED VIEW)', '\\1 IF NOT EXISTS')
7373
FROM
7474
system.tables
75-
WHERE
75+
WHERE engine = 'MaterializedView' and
7676
database NOT IN ('system', 'information_schema', 'INFORMATION_SCHEMA') AND
7777
create_table_query != '' AND
7878
name NOT LIKE '.inner.%%' AND

0 commit comments

Comments
 (0)