initial population of repo

This commit is contained in:
Thierry Schork
2022-12-30 10:37:11 +01:00
parent 969dc57be1
commit 5d7658d85f
72 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +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
}
]
}