Fix adding default values while create table (SQL server) fails

[DSF-446]: https://hasurahq.atlassian.net/browse/DSF-446?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9855
GitOrigin-RevId: 997beda03cb6aec1c954a419fd6628cf277c0610
This commit is contained in:
Nicolas Inchauspe 2023-07-19 19:49:44 +02:00 committed by hasura-bot
parent 622af8c53e
commit a92bebed75
3 changed files with 11 additions and 2 deletions

View File

@ -62,4 +62,10 @@ export default {
docs: {
autodocs: true,
},
parameters: {
chromatic: {
// Default value is 0.063
diffThreshold: 0.4,
},
},
};

View File

@ -19,7 +19,10 @@ export const CreateRestEndpoint = (props: CreateRestEndpointProps) => {
return (
<>
<Analytics name="data-tab-btn-create-rest-endpoints">
<Analytics
name="data-tab-btn-create-rest-endpoints"
passHtmlAttributesToChildren
>
<Button size="sm" onClick={toggleModal} icon={<FaLink />}>
Create REST Endpoints{' '}
<Badge className="pt-0 pb-0 pl-2 pr-2 ml-1" color="indigo">

View File

@ -70,7 +70,7 @@ const isTable = (table: NormalizedTable) => {
};
export const isColTypeString = (colType: string) =>
['text', 'varchar', 'char', 'bpchar', 'name'].includes(colType);
['text', 'varchar', 'char', 'bpchar', 'name'].includes(colType.toLowerCase());
const columnDataTypes = {
INTEGER: 'integer',