Skip to content

Primary key with AUTO_INCREMENT not converted right #1

@timint

Description

@timint

A problem with AUTO INCREMENT:

This

CREATE TABLE IF NOT EXISTS `table_name` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  ...
  PRIMARY KEY (`id`)
);

Should become

CREATE TABLE IF NOT EXISTS `table_name` (
  `id` INTEGER PRIMARY KEY AUTOINCREMENT,
  ...
);

Not

CREATE TABLE IF NOT EXISTS `table_name` (
  `id` INTEGER NOT NULL,
  ...
  PRIMARY KEY (`id`)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions