From d60b64c03ba03aa63bc1fb0cf0d826ebfc394ac5 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 8 Jan 2016 22:43:38 +0100 Subject: [PATCH] Implement MS SQL newsequentialid() default value. We convert the default value call to newsequentialid() into a call to the PostgreSQL uuid-ossp uuid_generate_v1() which seems like the equivalent function. The extension "uuid-ossp" needs to be installed in the target database. (Blind) Fix #246. --- src/utils/schema-structs.lisp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/schema-structs.lisp b/src/utils/schema-structs.lisp index 00b8ac9..b0ab147 100644 --- a/src/utils/schema-structs.lisp +++ b/src/utils/schema-structs.lisp @@ -363,6 +363,8 @@ ((and (stringp default) (string= "CURRENT_TIMESTAMP" default)) default) ((and (stringp default) (string= "CURRENT TIMESTAMP" default)) "CURRENT_TIMESTAMP") + ((and (stringp default) (string= "newsequentialid()" default)) + "uuid_generate_v1()") (t ;; apply the transformation function to the default value (if transform (format-default-value (funcall transform default))