We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1303440 commit fc321f1Copy full SHA for fc321f1
1 file changed
go/samples/http/todos/queries.go
@@ -45,10 +45,8 @@ func (sql PGQueries) TodoById() string {
45
// MySQLQueries impl
46
func (sql MySQLQueries) CreateTodosTableIfNotExists() string {
47
return `CREATE TABLE IF NOT EXISTS todos(
48
- id INT NOT NULL AUTO_INCREMENT,
+ id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
49
task VARCHAR(1000) NOT NULL
50
-
51
- PRIMARY KEY(id)
52
)`
53
}
54
0 commit comments