sync
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
{
|
||||
"id": "7d139776-36e1-44e4-98a4-7360ca60dc70",
|
||||
"prefix": "newCol",
|
||||
"description": "add new column",
|
||||
"body": "IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$table$' AND TABLE_SCHEMA='$schema$' AND COLUMN_NAME = '$column$')\r\nBEGIN\r\n\tALTER TABLE $schema$.$table$ ADD $column$ $type$ NOT NULL;\r\nEND ",
|
||||
"placeholders": [
|
||||
{
|
||||
"name": "schema",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "table",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "column",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"defaultValue": null
|
||||
}
|
||||
]
|
||||
{
|
||||
"id": "7d139776-36e1-44e4-98a4-7360ca60dc70",
|
||||
"prefix": "newCol",
|
||||
"description": "add new column",
|
||||
"body": "IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$table$' AND TABLE_SCHEMA='$schema$' AND COLUMN_NAME = '$column$')\r\nBEGIN\r\n\tALTER TABLE $schema$.$table$ ADD $column$ $type$ NOT NULL;\r\nEND ",
|
||||
"placeholders": [
|
||||
{
|
||||
"name": "schema",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "table",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "column",
|
||||
"defaultValue": null
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"defaultValue": null
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user