mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
Add explicit "# key" directive to legacy snippet collection before deprecating filenames-as-triggers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : , ColumnName ColumnType NOT NULL...
|
||||
# key: column
|
||||
# --
|
||||
, ${1:Name} ${2:Type} ${3:NOT NULL}
|
||||
@@ -1,4 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : CONSTRAINT [..] PRIMARY KEY ...
|
||||
# key: constraint
|
||||
# --
|
||||
CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])
|
||||
@@ -1,4 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : CONSTRAINT [..] FOREIGN KEY ...
|
||||
# key: constraint
|
||||
# --
|
||||
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])
|
||||
@@ -1,5 +1,6 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : create table ...
|
||||
# key: create
|
||||
# --
|
||||
CREATE TABLE [${1:dbo}].[${2:TableName}]
|
||||
(
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : create procedure ...
|
||||
# key: create
|
||||
# --
|
||||
CREATE PROCEDURE [${1:dbo}].[${2:Name}]
|
||||
(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : REFERENCES ...
|
||||
# key: references
|
||||
# --
|
||||
REFERENCES ${1:TableName}([${2:ColumnName}])
|
||||
Reference in New Issue
Block a user