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

SQL #2

Open
david-strejc opened this issue Aug 4, 2017 · 12 comments
Open

SQL #2

david-strejc opened this issue Aug 4, 2017 · 12 comments

Comments

@david-strejc
Copy link

This module is missing tables in database.

Is there any sql file I can import into DB?

Or what is the proper way to install this module?

Many thanks.

@xpert-idea
Copy link
Owner

please uninstall and install module again the db table will be create automatically.

@StephanoAlberteni
Copy link

I get the error too, and reinstalling doesn't seem to solve this issue.
I get this error:

Bad SQL query
Table 'prestashopmama.ps_xipposts' doesn't exist

@johanmater
Copy link

Same problem reinstall does not work from module panel in prestashop 1.7 dbase tables gone!

@chadidi
Copy link

chadidi commented Jan 23, 2018

I have the same problem and @xpert-idea solution not working.

@Romezzn
Copy link

Romezzn commented Feb 1, 2018

@chadidi hey i have the solution only download the master of github and unzip on directory modules i fix it issue easy and sorry for my english im spanish

P.D dont unzip all files and directorys create first directory xipblog or delete files in this directory and unzip all files on xipblog directory

@chadidi
Copy link

chadidi commented Feb 1, 2018

@Romezzn I already did that, thanks for your help, and your English is great, by the way, i am also not English I am Arab.

@Romezzn
Copy link

Romezzn commented Feb 1, 2018

@chadidi read the explication on P.D

@chadidi
Copy link

chadidi commented Feb 1, 2018

@Romezzn what explication are you referring too cause I don't know what is P.D

@Romezzn
Copy link

Romezzn commented Feb 1, 2018

@chadidi dont unzip all files and directorys create first directory xipblog or delete files in this directory and unzip all files on xipblog directory

@Romezzn
Copy link

Romezzn commented Feb 1, 2018

@chadidi
have you been able to solve the problem?

@chadidi
Copy link

chadidi commented Feb 1, 2018

@Romezzn I already solved the problem 9 days ago

@xavier-bs
Copy link

I had the same issue with mySQL 5.7 and strict sql mode. Two kind of errors occured:

  • #1171 - All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead
  • #1067 - Invalid default value for 'post_date'

So, I changed /db/dbfiles.php for the tables creation process:

  1. For all tables, removed NOT NULL for PRIMARY KEY. Be careful xipposts_lang, xipposts_shop, xipposts_lang have 2 PRIMARY KEYS,
  2. ps_xipposts: '0000-00-00 00:00:00' -> CURRENT_TIMESTAMP.

After that, installation had created tables in database.

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

7 participants