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
Database dump needs fixing #64
Comments
Is this fixed - I just clicked on it and got a download (haven't tried running it yet) |
I can't remember why I logged this one initially. It certainly wasn't a good quality bug report! |
I think I've found the issue - I just performed a database dump and this is what the site returned :
I believe this is probably a formatting issue in the API - possibly related to data within the Artist Record. |
Just retried - got 266kb download which seems complete no Error code 500 in this extract. |
I'd also point out that the database structure code (in the project) doesn't have an application table - maybe we need to re-export the data structure scripts? Should I raise an issue for this? |
Yes please! |
Actually no... hold fire on this... I think this might be related to something that @JonTheNiceGuy or @ymauray were working on. Guys, can you wade in on this? |
The application is something that will be used by the new API to monitor usage. |
So, whether the database dump is useful? I was inspired by the ur1.ca project (a link shortener run by Evan Prodromo of Identi.ca fame) to provide the full dump of the database, however, whether that is in-and-of-itself useful, I'm not sure - particularly if there is an API we can request. I'd like to be able to allow someone to pull the entire db though, if that's do-able? Regarding the 500 error in the middle of that, I suspect we hit a timeout in Dreamhost-land, hence the error which can't be further replicated. Should there be an application table? Is one referenced somewhere? |
Hi @JonTheNiceGuy -
The Database dump would be useful for me (or something similar) - I am setting up a local cchits server to have a play with phinx as a Database migration tool - thought it might be nice to set up some migrations, and then additionally some random seeds. But to do that I'd need a database that was stable.
Maybe the export should be generated overnight, meaning that the export is just a file download, without the server overhead - maybe it could be scheduled to operate overnight?
There does seem to be some differences between the structure of the database in the extract and the database in the script file : In the Extract the tables exported are : In the db script, the following tables are created : |
Is this a one-off requirement? If so, I can probably do you a mysqldump and mail it to you :)
The only downside to this is that I think you're one of the very few people who have actually looked at that dbexport for quite some time. As such, we'd be building and storing that DB extract for very little reason :(
D'oh, OK, we need a separate issue which says "The dbexport is wrong" :) |
That's kinda what this issue is, but worded slightly differently. I'll add this to the description above. |
Well, not exactly - we have two things here (in my view - may be wrong!):
I think this issue relates to 1. but we need a separate issue for 2. Thoughts? |
Except, the "Application" is not in use at the moment. It's for the upcoming new API. So it doesn't need to be in the dump at the moment :-) |
@JonTheNiceGuy If you could arrange a SQL dump that'd be cool thanks - email is : computa_mike@hotmail.com |
Spotted error in the log [12-Sep-2018 23:32:46 America/Los_Angeles] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: |
On it :-) |
The database dump option in /about#database is broken.
In the dump
cchits.2018-09-11_0657.sql
are the following SQL statement starters:CREATE TABLE `applications` (
CREATE TABLE `artists` (
INSERT INTO artists VALUES
CREATE TABLE `chart` (
... and then nothing more.
At the same time, we need to make sure that the export is correct to the database structure.
The text was updated successfully, but these errors were encountered: