Skip to content

Commit

Permalink
fix: Syntax correction for sql server (#24)
Browse files Browse the repository at this point in the history
* Syntax correction for sql server

* Add newline at end of file
  • Loading branch information
jeijei4 authored Oct 15, 2022
1 parent 97c0d37 commit 3c6d11a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions migrations/sqlsrv.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
CREATE TABLE IF NOT EXISTS %table_name% (
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'%table_name%') AND type in (N'U'))
begin
CREATE TABLE %table_name% (
id int IDENTITY(1,1),
ptype varchar(255) NOT NULL,
v0 varchar(255) DEFAULT NULL,
Expand All @@ -7,4 +9,6 @@ CREATE TABLE IF NOT EXISTS %table_name% (
v3 varchar(255) DEFAULT NULL,
v4 varchar(255) DEFAULT NULL,
v5 varchar(255) DEFAULT NULL
);
)
end;

0 comments on commit 3c6d11a

Please sign in to comment.