why is my Install.sql code is not working?

General Chat, Comments
Post Reply
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

why is my Install.sql code is not working?

Post by KaL »

this is my install.sql

Code: Select all

drop table if exists timers;
create table timers(
id integer(100) unsigned not null primary key auto_increment,
name varchar(100) null,
PutTime varchar(100) null,
InTime varchar(100)  null,
NotInTime varchar(100) null,
ReleaseTime varchar(100) null,
ReduceTime varchar(100) null,)
ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin;

then i got this error when installing it:

Code: Select all

Error whilst executing:
create table timers( id integer(100) unsigned not null primary key auto_increment, name varchar(100) null, PutTime varchar(100) null, InTime varchar(100) null, NotInTime varchar(100) null, ReleaseTime varchar(100) null, ReduceTime varchar(100) null,) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin

i don't get it.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: why is my Install.sql code is not working?

Post by hallsofvallhalla »

not too sure but please for the love of God do not leave those at 100!
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: why is my Install.sql code is not working?

Post by a_bertrand »

Try to run the SQL directly and see how it goes.
Creator of Dot World Maker
Mad programmer and annoying composer
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: why is my Install.sql code is not working?

Post by KaL »

Hahahaha! Ok I won't put 100. LOL!

And yes I did tried it directly. It's kinda weird.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: why is my Install.sql code is not working?

Post by KyleMassacre »

At a quick glance you have a comma where it shouldn't be on you or reduceTime column after the "null"
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: why is my Install.sql code is not working?

Post by KaL »

Thanks Kyle! it works now. :)
Post Reply

Return to “General”