-
Notifications
You must be signed in to change notification settings - Fork 159
Unknown column 'state' in 'field list' #251
Comments
I can confirm that signing in at http://modules.zendframework.com doesn't work either. |
❗ Someone with database access should at least execute this for now: ALTER TABLE `user` ADD `state` INT(2); In the long run we should probably use database migrations, no? |
mm for my login now works.. |
But you have been signed in before, haven't you? I've never before signed in into the app, just tried to do so today. |
yesterday i setup a clean first fork of this repo and the registration process worked for me with the clean database dump |
index 177e85c..6efd7dd 100644
--- a/2014-12-06 zfmodules-what-it-is.sql
+++ b/2014-12-06 zfmodules-what-it-should-be.sql
@@ -7,7 +7,7 @@
#
# Host: 127.0.0.1 (MySQL 5.6.21)
# Database: zfmodules
-# Generation Time: 2014-12-06 20:00:48 +0000
+# Generation Time: 2014-12-06 20:00:04 +0000
# ************************************************************
@@ -24,13 +24,13 @@
# ------------------------------------------------------------
CREATE TABLE `module` (
- `module_id` int(11) NOT NULL AUTO_INCREMENT,
+ `module_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`url` varchar(500) NOT NULL,
`meta_data` blob,
- `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `updated_at` timestamp NULL DEFAULT NULL,
`photo_url` varchar(255) DEFAULT NULL,
`owner` varchar(255) NOT NULL,
PRIMARY KEY (`module_id`)
@@ -56,13 +56,14 @@ CREATE TABLE `module_admin` (
# ------------------------------------------------------------
CREATE TABLE `user` (
- `user_id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`display_name` varchar(50) DEFAULT NULL,
`password` varchar(128) NOT NULL,
`photo_url` varchar(255) DEFAULT NULL,
- `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `state` int(2) DEFAULT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`) |
@localheinz yes I m already registered |
The problem still persists. Today i tried to login:
|
Same here |
I have the same issue and I'm already registered. |
Hey guys @localheinz @GeeH @Ocramius ! You are doing great job in last days but this issue it's really annoying. How can I help you with this one? |
Sorry, I wish I could fix this issue, but I don't have access to the server! All that is needed is that the |
It looks like the complete deployment doesn't work or need triggered manually, error pages still throwing hard exceptions after the fix was merged today. |
I so wish the deployment was triggered by merges to |
I probably need @GeeH to look at this when he has time |
Since yesterday, the error changed and the same appears when i click in any project, not just Login:
|
Apologies, I'm busy as shot at the moment
|
I understand @GeeH. But could at least give database access (and server access if necessary) to someone you trust? At least to fix this issue. If necessary i can host a temporary clone in one of my servers, but without the database, the users will have to create their projects again. |
The comiit 7870422 changes the module_id column of module table from being auto incrementing. Why was it done? Does it cause an error when adding a new module? |
don't know but some of the changes improve the sql but some changes like the but to be honest - the complete db design can be updated - I am not really happy with the current structure but there are so many important improvements right now. this is only a sql copy so it isn't much important to be updated - but should be fixed indeed. |
Closing as I just added the column to the table in the production system a few minutes ago. |
Following https://github.com/zendframework//pull/250 I tried to sign in into the app, which resulted in the following exception being displayed:
Exception
Zend\Db\Adapter\Exception\InvalidQueryException
File
vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Statement.php:244
Message
Stack Trace
Given that I'm working with a database dump generated by @GeeH yesterday, I understand this means that currently nobody can sign in who hasn't signed in before.
I added a column
state
locally (just usedVARCHAR(255)
), then signing in worked.Checking with the database again:
So apparently:
username
was not fetched properlyphoto_url
wasn't fetchedemail
was fetched, but not my primary email address, unfortunatelystate
wasn't updated to whatever it should be, unlessnull
is what it should beThe text was updated successfully, but these errors were encountered: