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

Upgrade error from 5.2 to 5.3 (migration) #16

Closed
schmunk42 opened this issue Jul 27, 2018 · 1 comment
Closed

Upgrade error from 5.2 to 5.3 (migration) #16

schmunk42 opened this issue Jul 27, 2018 · 1 comment

Comments

@schmunk42
Copy link
Member

*** applying Da\User\Migration\m000000_000001_create_user_table
    > create table {{%user}} ...Exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'app_user' already exists
The SQL being executed was: CREATE TABLE `app_user` (
	`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
	`username` varchar(255) NOT NULL,
	`email` varchar(255) NOT NULL,
	`password_hash` varchar(60) NOT NULL,
	`auth_key` varchar(32) NOT NULL,
	`unconfirmed_email` varchar(255),
	`registration_ip` varchar(45),
	`flags` int(11) NOT NULL DEFAULT '0',
	`confirmed_at` int(11),
	`blocked_at` int(11),
	`updated_at` int(11) NOT NULL,
	`created_at` int(11) NOT NULL
) CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB (/app/vendor/yiisoft/yii2-dev/framework/db/Schema.php:664)
#0 /app/vendor/yiisoft/yii2-dev/framework/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'CREATE TABLE `a...')
#1 /app/vendor/yiisoft/yii2-dev/framework/db/Command.php(1075): yii\db\Command->internalExecute('CREATE TABLE `a...')
#2 /app/vendor/yiisoft/yii2-dev/framework/db/Migration.php(323): yii\db\Command->execute()
#3 /app/vendor/2amigos/yii2-usuario/src/User/Migration/m000000_000001_create_user_table.php(37): yii\db\Migration->createTable('{{%user}}', Array, 'CHARACTER SET u...')
#4 /app/vendor/yiisoft/yii2-dev/framework/db/Migration.php(114): Da\User\Migration\m000000_000001_create_user_table->safeUp()
#5 /app/vendor/yiisoft/yii2-dev/framework/console/controllers/BaseMigrateController.php(725): yii\db\Migration->up()
#6 /app/vendor/yiisoft/yii2-dev/framework/console/controllers/BaseMigrateController.php(199): yii\console\controllers\BaseMigrateController->migrateUp('Da\\User\\Migrati...')
#7 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#8 /app/vendor/yiisoft/yii2-dev/framework/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /app/vendor/yiisoft/yii2-dev/framework/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /app/vendor/yiisoft/yii2-dev/framework/console/Controller.php(148): yii\base\Controller->runAction('', Array)
#11 /app/vendor/yiisoft/yii2-dev/framework/base/Module.php(528): yii\console\Controller->runAction('', Array)
#12 /app/vendor/yiisoft/yii2-dev/framework/console/Application.php(180): yii\base\Module->runAction('migrate', Array)
#13 /app/vendor/yiisoft/yii2-dev/framework/console/Application.php(147): yii\console\Application->runAction('migrate', Array)
#14 /app/vendor/yiisoft/yii2-dev/framework/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#15 /app/yii(32): yii\base\Application->run()
#16 {main}
*** failed to apply Da\User\Migration\m000000_000001_create_user_table (time: 0.074s)

CC: @eluhr @handcode

@schmunk42
Copy link
Member Author

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