Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor create table #1

Open
mdesnouveaux opened this issue Jan 30, 2018 · 0 comments
Open

refactor create table #1

mdesnouveaux opened this issue Jan 30, 2018 · 0 comments

Comments

@mdesnouveaux
Copy link

mdesnouveaux commented Jan 30, 2018

Hi,

You can improve your sql script by adding primary key and auto increment in the create table request like the following :

CREATE TABLE `eau` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `conso` decimal(10,0) NOT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

I create a pull request with the refactor : #2.

Mathieu Desnouveaux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant