Permalink
Browse files

MS SQL: Create primary key for Auto Increment column

  • Loading branch information...
1 parent d7079f1 commit a4982c90e0a6f9a6e9efd815720df04802fcd8a4 @vrana committed Nov 28, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −1 adminer/drivers/mssql.inc.php
  2. +1 −0 todo.txt
@@ -396,7 +396,7 @@ function rename_database($name, $collation) {
}
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) {
View
@@ -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

0 comments on commit a4982c9

Please sign in to comment.