MS SQL: Create primary key for Auto Increment column
This commit is contained in:
parent
d7079f1778
commit
a4982c90e0
|
@ -396,7 +396,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
||||||
}
|
}
|
||||||
|
|
||||||
function auto_increment() {
|
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) {
|
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
|
||||||
|
|
1
todo.txt
1
todo.txt
|
@ -42,6 +42,7 @@ Column rights - http://www.postgresql.org/docs/8.4/static/functions-info.html
|
||||||
bool in Editor
|
bool in Editor
|
||||||
|
|
||||||
MS SQL:
|
MS SQL:
|
||||||
|
Display default value
|
||||||
Non UTF-8 character sets
|
Non UTF-8 character sets
|
||||||
Detection of table collation
|
Detection of table collation
|
||||||
PDO_MSSQL and PDO_SQLSRV driver with seek
|
PDO_MSSQL and PDO_SQLSRV driver with seek
|
||||||
|
|
Loading…
Reference in a new issue