diff --git a/migtests/tests/analyze-schema/expected_issues.json b/migtests/tests/analyze-schema/expected_issues.json index 1897e2d68..052a43e6c 100644 --- a/migtests/tests/analyze-schema/expected_issues.json +++ b/migtests/tests/analyze-schema/expected_issues.json @@ -5,7 +5,7 @@ "ObjectName": "film_fulltext_idx ON public.film", "Reason": "Schema contains GIST index which is not supported.", "SqlStatement": "CREATE INDEX film_fulltext_idx ON public.film USING gist (fulltext);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#gist-index-type-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#gist-index-type-is-not-supported", "Suggestion": "", "GH": "https://github.com/YugaByte/yugabyte-db/issues/1337" }, @@ -24,7 +24,7 @@ "ObjectName": "abc", "Reason": "Storage parameters are not supported yet.", "SqlStatement": "CREATE INDEX abc ON public.example USING btree (new_id) WITH (fillfactor='70'); ", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", "Suggestion": "Remove the storage parameters from the DDL", "GH": "https://github.com/yugabyte/yugabyte-db/issues/23467" }, @@ -35,7 +35,7 @@ "Reason": "Storage parameters are not supported yet.", "SqlStatement": "CREATE INDEX abc ON schema2.example USING btree (new_id) WITH (fillfactor='70'); ", "Suggestion": "Remove the storage parameters from the DDL", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", "GH": "https://github.com/yugabyte/yugabyte-db/issues/23467" }, { @@ -44,7 +44,7 @@ "ObjectName": "foo", "Reason": "temporary table is not a supported clause for drop", "SqlStatement": "CREATE OR REPLACE PROCEDURE foo (p_id integer) AS $body$\nBEGIN\n drop temporary table if exists temp;\n create temporary table temp(id int, name text);\n insert into temp(id,name) select id,p_name from bar where p_id=id;\n select name from temp;\nend;\n$body$\nLANGUAGE PLPGSQL\nSECURITY DEFINER\n;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql/#drop-temporary-table-statements-are-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql/#drop-temporary-table-statements-are-not-supported", "Suggestion": "remove \"temporary\" and change it to \"drop table\"", "GH": "https://github.com/yugabyte/yb-voyager/issues/705" }, @@ -54,7 +54,7 @@ "ObjectName": "sales", "Reason": "Issue with Partition using Expression on a table which cannot contain Primary Key / Unique Key on any column", "SqlStatement": "CREATE TABLE sales (\n\tcust_id bigint NOT NULL,\n\tname varchar(40),\n\tstore_id varchar(20) NOT NULL,\n\tbill_no bigint NOT NULL,\n\tbill_date timestamp NOT NULL,\n\tamount decimal(8,2) NOT NULL,\n\tPRIMARY KEY (bill_date)\n) PARTITION BY RANGE (extract(year from date(bill_date))) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql-oracle/#tables-partitioned-with-expressions-cannot-contain-primary-unique-keys", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql-oracle/#tables-partitioned-with-expressions-cannot-contain-primary-unique-keys", "Suggestion": "Remove the Constriant from the table definition", "GH": "https://github.com/yugabyte/yb-voyager/issues/698" }, @@ -64,7 +64,7 @@ "ObjectName": "salaries2", "Reason": "Issue with Partition using Expression on a table which cannot contain Primary Key / Unique Key on any column", "SqlStatement": "CREATE TABLE salaries2 (\n\temp_no bigint NOT NULL,\n\tsalary bigint NOT NULL,\n\tfrom_date timestamp NOT NULL,\n\tto_date timestamp NOT NULL,\n\tPRIMARY KEY (emp_no,from_date)\n) PARTITION BY RANGE (extract(epoch from date(from_date))) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql-oracle/#tables-partitioned-with-expressions-cannot-contain-primary-unique-keys", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql-oracle/#tables-partitioned-with-expressions-cannot-contain-primary-unique-keys", "Suggestion": "Remove the Constriant from the table definition", "GH": "https://github.com/yugabyte/yb-voyager/issues/698" }, @@ -101,7 +101,7 @@ "ObjectName": "test_1", "Reason": "cannot use \"list\" partition strategy with more than one column", "SqlStatement": "CREATE TABLE test_1 (\n\tid numeric NOT NULL,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50),\n\tPRIMARY KEY (id)\n) PARTITION BY LIST (country_code, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", "Suggestion": "Make it a single column partition by list or choose other supported Partitioning methods", "GH": "https://github.com/yugabyte/yb-voyager/issues/699" }, @@ -111,7 +111,7 @@ "ObjectName": "test_2", "Reason": "cannot use \"list\" partition strategy with more than one column", "SqlStatement": "CREATE TABLE test_2 (\n\tid numeric NOT NULL PRIMARY KEY,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50)\n) PARTITION BY LIST (country_code, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", "Suggestion": "Make it a single column partition by list or choose other supported Partitioning methods", "GH": "https://github.com/yugabyte/yb-voyager/issues/699" }, @@ -121,7 +121,7 @@ "ObjectName": "test_5", "Reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "SqlStatement": "CREATE TABLE test_5 (\n\tid numeric NOT NULL,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50),\n\tPRIMARY KEY (id)\n) PARTITION BY RANGE (country_code, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", "Suggestion": "Add all Partition columns to Primary Key", "GH": "https://github.com/yugabyte/yb-voyager/issues/578" }, @@ -131,7 +131,7 @@ "ObjectName": "test_6", "Reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "SqlStatement": "CREATE TABLE test_6 (\n\tid numeric NOT NULL,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50),\n\tPRIMARY KEY (id,country_code)\n) PARTITION BY RANGE (country_code, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", "Suggestion": "Add all Partition columns to Primary Key", "GH": "https://github.com/yugabyte/yb-voyager/issues/578" }, @@ -141,7 +141,7 @@ "ObjectName": "test_7", "Reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "SqlStatement": "CREATE TABLE test_7 (\n\tid numeric NOT NULL,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50),\n\tPRIMARY KEY (id,country_code)\n) PARTITION BY RANGE (descriptions, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", "Suggestion": "Add all Partition columns to Primary Key", "GH": "https://github.com/yugabyte/yb-voyager/issues/578" }, @@ -151,7 +151,7 @@ "ObjectName": "test_8", "Reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "SqlStatement": "CREATE TABLE test_8 (\n\torder_id bigint NOT NULL,\n\torder_date timestamp,\n\torder_mode varchar(8),\n\tcustomer_id integer,\n\torder_mode smallint,\n\torder_total double precision,\n\tsales_rep_id integer,\n\tpromotion_id integer,\n\tPRIMARY KEY (order_id,order_mode,customer_id,order_total,sales_rep_id)\n) PARTITION BY RANGE (promotion_id, order_date, sales_rep_id) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", "Suggestion": "Add all Partition columns to Primary Key", "GH": "https://github.com/yugabyte/yb-voyager/issues/578" }, @@ -161,7 +161,7 @@ "ObjectName": "test_non_pk_multi_column_list", "Reason": "cannot use \"list\" partition strategy with more than one column", "SqlStatement": "CREATE TABLE test_non_pk_multi_column_list (\n\tid numeric NOT NULL PRIMARY KEY,\n\tcountry_code varchar(3),\n\trecord_type varchar(5),\n\tdescriptions varchar(50)\n) PARTITION BY LIST (country_code, record_type) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/mysql-oracle/#multi-column-partition-by-list-is-not-supported", "Suggestion": "Make it a single column partition by list or choose other supported Partitioning methods", "GH": "https://github.com/yugabyte/yb-voyager/issues/699" }, @@ -173,7 +173,7 @@ "SqlStatement": "CREATE CONVERSION myconv FOR 'UTF8' TO 'LATIN1' FROM myfunc;", "Suggestion": "Remove it from the exported schema", "GH": "https://github.com/yugabyte/yugabyte-db/issues/10866", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#create-or-alter-conversion-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#create-or-alter-conversion-is-not-supported" }, { "IssueType": "unsupported_features", @@ -183,7 +183,7 @@ "SqlStatement": "ALTER CONVERSION myconv rename to my_conv_1;", "Suggestion": "Remove it from the exported schema", "GH": "https://github.com/YugaByte/yugabyte-db/issues/10866", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#create-or-alter-conversion-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#create-or-alter-conversion-is-not-supported" }, { "IssueType": "unsupported_features", @@ -209,7 +209,7 @@ "ObjectName": "idx_name3 ON schema_name.table_name", "Reason": "Schema contains gin index on multi column which is not supported.", "SqlStatement": "CREATE INDEX idx_name3 ON schema_name.table_name USING gin (col1,col2,col3);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#gin-indexes-on-multiple-columns-are-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#gin-indexes-on-multiple-columns-are-not-supported", "Suggestion": "", "GH": "https://github.com/yugabyte/yugabyte-db/issues/7850" }, @@ -220,7 +220,7 @@ "Reason": "Schema containing VIEW WITH CHECK OPTION is not supported yet.", "SqlStatement": "CREATE VIEW v1 AS SELECT * FROM t1 WHERE a \u003c 2\nWITH CHECK OPTION;", "Suggestion": "Use Trigger with INSTEAD OF clause on INSERT/UPDATE on view to get this functionality", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported", "GH": "https://github.com/yugabyte/yugabyte-db/issues/22716" }, { @@ -230,7 +230,7 @@ "Reason": "Schema containing VIEW WITH CHECK OPTION is not supported yet.", "SqlStatement": "CREATE VIEW v2 AS SELECT * FROM t1 WHERE a \u003c 2\nWITH LOCAL CHECK OPTION;", "Suggestion": "Use Trigger with INSTEAD OF clause on INSERT/UPDATE on view to get this functionality", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported", "GH": "https://github.com/yugabyte/yugabyte-db/issues/22716" }, { @@ -294,7 +294,7 @@ "Reason": "CONSTRAINT TRIGGER not supported yet.", "SqlStatement": "CREATE CONSTRAINT TRIGGER some_trig\n AFTER DELETE ON xyz_schema.abc\n DEFERRABLE INITIALLY DEFERRED\n FOR EACH ROW EXECUTE PROCEDURE xyz_schema.some_trig();", "Suggestion": "", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#constraint-trigger-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#constraint-trigger-is-not-supported", "GH": "https://github.com/YugaByte/yugabyte-db/issues/1709" }, { @@ -321,7 +321,7 @@ "ObjectName": "public.employees4", "Reason": "Stored generated columns are not supported. Generated Columns: (full_name)", "SqlStatement": "CREATE TABLE public.employees4 (\n id integer NOT NULL,\n first_name character varying(50) NOT NULL,\n last_name character varying(50) NOT NULL,\n full_name character varying(101) GENERATED ALWAYS AS ((((first_name)::text || ' '::text) || (last_name)::text)) STORED\n);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", "Suggestion": "Using Triggers to update the generated columns is one way to work around this issue, refer docs link for more details.", "GH": "https://github.com/yugabyte/yugabyte-db/issues/10695" }, @@ -331,7 +331,7 @@ "ObjectName": "order_details", "Reason": "Stored generated columns are not supported. Generated Columns: (amount)", "SqlStatement": "CREATE TABLE order_details (\n detail_id integer NOT NULL,\n quantity integer,\n price_per_unit numeric,\n amount numeric GENERATED ALWAYS AS (((quantity)::numeric * price_per_unit)) STORED\n);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", "Suggestion": "Using Triggers to update the generated columns is one way to work around this issue, refer docs link for more details.", "GH": "https://github.com/yugabyte/yugabyte-db/issues/10695" }, @@ -359,7 +359,7 @@ "ObjectName": "table_1", "Reason": "TABLE INHERITANCE not supported in YugabyteDB", "SqlStatement": "CREATE TABLE table_1 () INHERITS (xyz);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#table-inheritance-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#table-inheritance-is-not-supported", "Suggestion": "", "GH": "https://github.com/YugaByte/yugabyte-db/issues/1129" }, @@ -423,7 +423,7 @@ "ObjectName": "test_1", "Reason": "ALTER TABLE .. ALTER COLUMN .. SET ( attribute = value )\t not supported yet", "SqlStatement": "alter table test_1 alter column col1 set (attribute_option=value); ", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddls-variants-in-source-schema", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddl-variants-in-source-schema", "Suggestion": "Remove it from the exported schema", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1124" }, @@ -433,7 +433,7 @@ "ObjectName": "test", "Reason": "ALTER TABLE name DISABLE RULE not supported yet", "SqlStatement": "alter table test DISABLE RULE example_rule; ", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddls-variants-in-source-schema", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddl-variants-in-source-schema", "Suggestion": "Remove this and the rule 'example_rule' from the exported schema to be not enabled on the table.", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1124" }, @@ -443,7 +443,7 @@ "ObjectName": "public.example", "Reason": "Storage parameters are not supported yet.", "SqlStatement": "ALTER TABLE ONLY public.example ADD CONSTRAINT example_email_key UNIQUE (email) WITH (fillfactor='70'); ", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql", "Suggestion": "Remove the storage parameters from the DDL", "GH": "https://github.com/yugabyte/yugabyte-db/issues/23467" }, @@ -453,7 +453,7 @@ "ObjectName": "", "Reason": "ALTER TABLE CLUSTER not supported yet.", "SqlStatement": "alter table abc cluster on xyz;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddls-variants-in-source-schema", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#unsupported-alter-table-ddl-variants-in-source-schema", "Suggestion": "", "GH": "https://github.com/YugaByte/yugabyte-db/issues/1124" }, @@ -499,7 +499,7 @@ "ObjectName": "abc", "Reason": "DEFERRABLE constraints not supported yet", "SqlStatement": "ALTER TABLE abc\nADD CONSTRAINT cnstr_id\n UNIQUE (id)\nDEFERRABLE;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", "Suggestion": "Remove these constraints from the exported schema and make the neccessary changes to the application to work on target seamlessly", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1709" }, @@ -509,7 +509,7 @@ "ObjectName": "public.users", "Reason": "DEFERRABLE constraints not supported yet", "SqlStatement": "ALTER TABLE ONLY public.users\n ADD CONSTRAINT users_email_key UNIQUE (email) DEFERRABLE;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", "Suggestion": "Remove these constraints from the exported schema and make the neccessary changes to the application to work on target seamlessly", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1709" }, @@ -519,7 +519,7 @@ "ObjectName": "unique_def_test", "Reason": "DEFERRABLE constraints not supported yet", "SqlStatement": "create table unique_def_test(id int UNIQUE DEFERRABLE, c1 int);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", "Suggestion": "Remove these constraints from the exported schema and make the necessary changes to the application before pointing it to target", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1709" }, @@ -529,7 +529,7 @@ "ObjectName": "unique_def_test1", "Reason": "DEFERRABLE constraints not supported yet", "SqlStatement": "create table unique_def_test1(id int, c1 int, UNIQUE(id) DEFERRABLE INITIALLY DEFERRED);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported", "Suggestion": "Remove these constraints from the exported schema and make the neccessary changes to the application to work on target seamlessly", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1709" }, @@ -539,7 +539,7 @@ "ObjectName": "test_xml_type", "Reason": "Unsupported datatype - xml on column - data", "SqlStatement": "CREATE TABLE test_xml_type(id int, data xml);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#data-ingestion-on-xml-data-type-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#data-ingestion-on-xml-data-type-is-not-supported", "Suggestion": "Data ingestion is not supported for this type in YugabyteDB so handle this type in different way. Refer link for more details - \u003cLINK DOC\u003e", "GH": "https://github.com/yugabyte/yugabyte-db/issues/1043" }, @@ -558,7 +558,7 @@ "ObjectName": "public.meeting", "Reason": "Exclusion constraint is not supported yet", "SqlStatement": "ALTER TABLE ONLY public.meeting\n ADD CONSTRAINT no_time_overlap EXCLUDE USING gist (room_id WITH =, time_range WITH \u0026\u0026);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported", "Suggestion": "Refer docs link for details on possible workaround", "GH": "https://github.com/yugabyte/yugabyte-db/issues/3944" }, @@ -568,7 +568,7 @@ "ObjectName": "Test", "Reason": "Exclusion constraint is not supported yet", "SqlStatement": "CREATE TABLE \"Test\"(\n\tid int,\n\troom_id int,\n\ttime_range trange,\n\tEXCLUDE USING gist (room_id WITH =, time_range WITH \u0026\u0026)\n);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported", "Suggestion": "Refer docs link for details on possible workaround", "GH": "https://github.com/yugabyte/yugabyte-db/issues/3944" }, @@ -578,7 +578,7 @@ "ObjectName": "public.range_columns_partition_test", "Reason": "Adding primary key to a partitioned table is not supported yet.", "SqlStatement": "ALTER TABLE ONLY public.range_columns_partition_test\n ADD CONSTRAINT range_columns_partition_test_pkey PRIMARY KEY (a, b);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#adding-primary-key-to-a-partitioned-table-results-in-an-error", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#adding-primary-key-to-a-partitioned-table-results-in-an-error", "Suggestion": "", "GH": "https://github.com/yugabyte/yugabyte-db/issues/10074" }, @@ -687,7 +687,7 @@ "ObjectName": "sales_data", "Reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "SqlStatement": "CREATE TABLE sales_data (\n sales_id numeric NOT NULL,\n sales_date timestamp,\n sales_amount numeric,\n PRIMARY KEY (sales_id)\n) PARTITION BY RANGE (sales_date) ;", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/oracle/#partition-key-column-not-part-of-primary-key-columns", "Suggestion": "Add all Partition columns to Primary Key", "GH": "https://github.com/yugabyte/yb-voyager/issues/578" }, @@ -736,7 +736,7 @@ "ObjectName": "tbl_p", "Reason": "Foreign tables require manual intervention.", "SqlStatement": "CREATE FOREIGN TABLE tbl_p( \tid int PRIMARY KEY ) SERVER remote_server OPTIONS ( schema_name 'public', table_name 'remote_table' ); ", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#foreign-table-in-the-source-database-requires-server-and-user-mapping", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#foreign-table-in-the-source-database-requires-server-and-user-mapping", "Suggestion": "SERVER 'remote_server', and USER MAPPING should be created manually on the target to create and use the foreign table", "GH": "https://github.com/yugabyte/yb-voyager/issues/1627" }, @@ -746,7 +746,7 @@ "ObjectName": "enum_example.bugs", "Reason": "Stored generated columns are not supported. Generated Columns: (_status,_severity,info)", "SqlStatement": "CREATE TABLE enum_example.bugs (\n id integer NOT NULL,\n description text,\n status enum_example.bug_status,\n _status enum_example.bug_status GENERATED ALWAYS AS (status) STORED,\n severity enum_example.bug_severity,\n _severity enum_example.bug_severity GENERATED ALWAYS AS (severity) STORED,\n info enum_example.bug_info GENERATED ALWAYS AS (enum_example.make_bug_info(status, severity)) STORED\n);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported", "Suggestion": "Using Triggers to update the generated columns is one way to work around this issue, refer docs link for more details.", "GH": "https://github.com/yugabyte/yugabyte-db/issues/10695" }, @@ -758,7 +758,7 @@ "SqlStatement": "CREATE POLICY P ON tbl1 TO regress_rls_eve, regress_rls_frank USING (true);", "Suggestion": "Users/Grants are not migrated during the schema migration. Create the Users manually to make the policies work", "GH": "https://github.com/yugabyte/yb-voyager/issues/1655", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation" }, { "IssueType": "migration_caveats", @@ -766,7 +766,7 @@ "ObjectName": "p1 ON z1", "Reason": "Policy require roles to be created. Users - (regress_rls_group1)", "SqlStatement": "CREATE POLICY p1 ON z1 TO regress_rls_group1 USING (a % 2 = 0);", - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation", "Suggestion": "Users/Grants are not migrated during the schema migration. Create the Users manually to make the policies work", "GH": "https://github.com/yugabyte/yb-voyager/issues/1655" } diff --git a/migtests/tests/pg/assessment-report-test/expectedAssessmentReport.json b/migtests/tests/pg/assessment-report-test/expectedAssessmentReport.json index 840424527..80056b987 100644 --- a/migtests/tests/pg/assessment-report-test/expectedAssessmentReport.json +++ b/migtests/tests/pg/assessment-report-test/expectedAssessmentReport.json @@ -218,7 +218,7 @@ "SqlStatement": "CREATE INDEX idx_point_data ON schema2.mixed_data_types_table1 USING gist (point_data);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#gist-index-type-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#gist-index-type-is-not-supported" }, { "FeatureName": "Constraint triggers", @@ -232,7 +232,7 @@ "SqlStatement": "CREATE CONSTRAINT TRIGGER enforce_shipped_date_constraint AFTER UPDATE ON schema2.orders2 NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW WHEN ((((new.status)::text = 'shipped'::text) AND (new.shipped_date IS NULL))) EXECUTE FUNCTION schema2.prevent_update_shipped_without_date();" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#constraint-trigger-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#constraint-trigger-is-not-supported" }, { "FeatureName": "Inherited tables", @@ -246,7 +246,7 @@ "SqlStatement": "CREATE TABLE schema2.child_table (\n specific_column1 date\n)\nINHERITS (schema2.parent_table);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#table-inheritance-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#table-inheritance-is-not-supported" }, { "FeatureName": "Tables with stored generated columns", @@ -260,7 +260,7 @@ "SqlStatement": "CREATE TABLE schema2.employees2 (\n id integer NOT NULL,\n first_name character varying(50) NOT NULL,\n last_name character varying(50) NOT NULL,\n full_name character varying(101) GENERATED ALWAYS AS ((((first_name)::text || ' '::text) || (last_name)::text)) STORED,\n department character varying(50)\n);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#generated-always-as-stored-type-column-is-not-supported" }, { "FeatureName": "Conversion objects", @@ -298,7 +298,7 @@ "SqlStatement": "ALTER TABLE ONLY public.test_exclude_basic\n ADD CONSTRAINT no_same_name_address EXCLUDE USING btree (name WITH =, address WITH =);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#exclusion-constraints-is-not-supported" }, { "FeatureName": "Deferrable constraints", @@ -312,7 +312,7 @@ "SqlStatement": "ALTER TABLE ONLY schema2.orders2\n ADD CONSTRAINT orders2_order_number_key UNIQUE (order_number) DEFERRABLE;" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#deferrable-constraint-on-constraints-other-than-foreign-keys-is-not-supported" }, { "FeatureName": "View with check option", @@ -326,7 +326,7 @@ "SqlStatement": "CREATE VIEW schema2.sales_employees AS\n SELECT employees2.id,\n employees2.first_name,\n employees2.last_name,\n employees2.full_name\n FROM schema2.employees2\n WHERE ((employees2.department)::text = 'sales'::text)\n WITH CASCADED CHECK OPTION;" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported" + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#view-with-check-option-is-not-supported" } ], "UnsupportedFeaturesDesc": "Features of the source database that are not supported on the target YugabyteDB.", @@ -1214,7 +1214,7 @@ "SqlStatement": "ALTER TABLE ONLY schema2.sales_region\n ADD CONSTRAINT sales_region_pkey PRIMARY KEY (id, region);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#adding-primary-key-to-a-partitioned-table-results-in-an-error", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#adding-primary-key-to-a-partitioned-table-results-in-an-error", "FeatureDescription": "After export schema, the ALTER table should be merged with CREATE table for partitioned tables as alter of partitioned tables to add primary key is not supported." }, { @@ -1280,7 +1280,7 @@ "SqlStatement": "CREATE POLICY policy_test_report ON schema2.test_xml_type TO test_policy USING (true);" } ], - "DocsLink": "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation", + "DocsLink": "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#policies-on-users-in-source-require-manual-user-creation", "FeatureDescription": "There are some policies that are created for certain users/roles. During the export schema phase, USERs and GRANTs are not exported. Therefore, they will have to be manually created before running import schema." } ] diff --git a/yb-voyager/cmd/constants.go b/yb-voyager/cmd/constants.go index 757e1ca3b..b7185e2dd 100644 --- a/yb-voyager/cmd/constants.go +++ b/yb-voyager/cmd/constants.go @@ -121,11 +121,11 @@ const ( JSON_EXTENSION = ".json" //adding constants for docs link - DOCS_LINK_PREFIX = "https://deploy-preview-23634--infallible-bardeen-164bc9.netlify.app/preview/yugabyte-voyager/known-issues/" + DOCS_LINK_PREFIX = "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/" ADDING_PK_TO_PARTITIONED_TABLE_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#adding-primary-key-to-a-partitioned-table-results-in-an-error" CREATE_CONVERSION_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#create-or-alter-conversion-is-not-supported" GENERATED_STORED_COLUMN_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#generated-always-as-stored-type-column-is-not-supported" - UNSUPPORTED_ALTER_VARIANTS_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#unsupported-alter-table-ddls-variants-in-source-schema" + UNSUPPORTED_ALTER_VARIANTS_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#unsupported-alter-table-ddl-variants-in-source-schema" STORAGE_PARAMETERS_DDL_STMT_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#storage-parameters-on-indexes-or-constraints-in-the-source-postgresql" FOREIGN_TABLE_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#foreign-table-in-the-source-database-requires-server-and-user-mapping" EXCLUSION_CONSTRAINT_DOC_LINK = DOCS_LINK_PREFIX + "postgresql/#exclusion-constraints-is-not-supported"