mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
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:
parent
622af8c53e
commit
a92bebed75
@ -62,4 +62,10 @@ export default {
|
|||||||
docs: {
|
docs: {
|
||||||
autodocs: true,
|
autodocs: true,
|
||||||
},
|
},
|
||||||
|
parameters: {
|
||||||
|
chromatic: {
|
||||||
|
// Default value is 0.063
|
||||||
|
diffThreshold: 0.4,
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,10 @@ export const CreateRestEndpoint = (props: CreateRestEndpointProps) => {
|
|||||||
|
|
||||||
return (
|
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 />}>
|
<Button size="sm" onClick={toggleModal} icon={<FaLink />}>
|
||||||
Create REST Endpoints{' '}
|
Create REST Endpoints{' '}
|
||||||
<Badge className="pt-0 pb-0 pl-2 pr-2 ml-1" color="indigo">
|
<Badge className="pt-0 pb-0 pl-2 pr-2 ml-1" color="indigo">
|
||||||
|
@ -70,7 +70,7 @@ const isTable = (table: NormalizedTable) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const isColTypeString = (colType: string) =>
|
export const isColTypeString = (colType: string) =>
|
||||||
['text', 'varchar', 'char', 'bpchar', 'name'].includes(colType);
|
['text', 'varchar', 'char', 'bpchar', 'name'].includes(colType.toLowerCase());
|
||||||
|
|
||||||
const columnDataTypes = {
|
const columnDataTypes = {
|
||||||
INTEGER: 'integer',
|
INTEGER: 'integer',
|
||||||
|
Loading…
Reference in New Issue
Block a user