diff --git a/adminer/drivers/mssql.inc.php b/adminer/drivers/mssql.inc.php index 422ca301..41b094e0 100644 --- a/adminer/drivers/mssql.inc.php +++ b/adminer/drivers/mssql.inc.php @@ -396,7 +396,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table) } function auto_increment() { - return " IDENTITY" . ($_POST["Auto_increment"] != "" ? "(" . (+$_POST["Auto_increment"]) . ",1)" : ""); + return " IDENTITY" . ($_POST["Auto_increment"] != "" ? "(" . (+$_POST["Auto_increment"]) . ",1)" : "") . " PRIMARY KEY"; } function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) { diff --git a/todo.txt b/todo.txt index 46ad70bc..680c84c7 100644 --- a/todo.txt +++ b/todo.txt @@ -42,6 +42,7 @@ Column rights - http://www.postgresql.org/docs/8.4/static/functions-info.html bool in Editor MS SQL: +Display default value Non UTF-8 character sets Detection of table collation PDO_MSSQL and PDO_SQLSRV driver with seek