Comments (5)
I experience the same issue, but in my case it's not typo3_flow_security_account
. I just basiclly installed the package and let the migrations run.
An exception occurred while executing 'ALTER TABLE sandstorm_usermanagement_domain_model_user ADD CONSTRAINT FK_5DEB8A977D3656A4 FOREIGN KEY (account) REFERENCES neos_flow_security_account (persistence_object_identifier)':
from usermanagement.
To keep going I created a fresh migration. I don't know why altering the table does not work.
namespace Neos\Flow\Persistence\Doctrine\Migrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Migrations\AbortMigrationException;
/**
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if getDescription() is not used.
*/
class Version20200227125430 extends AbstractMigration
{
/**
* @return string
*/
public function getDescription(): string
{
return '';
}
/**
* @param Schema $schema
* @return void
* @throws AbortMigrationException
*/
public function up(Schema $schema): void
{
// this up() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".');
$this->addSql('CREATE TABLE sandstorm_usermanagement_domain_model_registrationflow (persistence_object_identifier VARCHAR(40) NOT NULL, email VARCHAR(255) NOT NULL, encryptedpassword VARCHAR(255) NOT NULL, attributes LONGTEXT NOT NULL COMMENT \'(DC2Type:json_array)\', activationtoken VARCHAR(255) DEFAULT NULL, activationtokenvaliduntil DATETIME DEFAULT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sandstorm_usermanagement_domain_model_resetpasswordflow (persistence_object_identifier VARCHAR(40) NOT NULL, email VARCHAR(255) NOT NULL, resetpasswordtoken VARCHAR(255) DEFAULT NULL, resetpasswordtokenvaliduntil DATETIME DEFAULT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sandstorm_usermanagement_domain_model_user (persistence_object_identifier VARCHAR(40) NOT NULL, account VARCHAR(40) DEFAULT NULL, email VARCHAR(255) NOT NULL, gender VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, lastname VARCHAR(255) DEFAULT NULL, dtype VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_5DEB8A977D3656A4 (account), PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE sandstorm_usermanagement_domain_model_user ADD CONSTRAINT FK_5DEB8A977D3656A4 FOREIGN KEY (account) REFERENCES neos_flow_security_account (persistence_object_identifier)');
}
/**
* @param Schema $schema
* @return void
* @throws AbortMigrationException
*/
public function down(Schema $schema): void
{
// this down() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on "mysql".');
$this->addSql('DROP TABLE sandstorm_usermanagement_domain_model_registrationflow');
$this->addSql('DROP TABLE sandstorm_usermanagement_domain_model_resetpasswordflow');
$this->addSql('DROP TABLE sandstorm_usermanagement_domain_model_user');
}
}
from usermanagement.
Sorry for not responding for so long; I'll check this out ASAP
from usermanagement.
I think I fixed this with 54823f7
- in 5.1.6: https://github.com/sandstorm/UserManagement/releases/tag/5.1.6
- in 6.2.1: https://github.com/sandstorm/UserManagement/releases/tag/6.2.1
- in 7.0.2: https://github.com/sandstorm/UserManagement/releases/tag/7.0.2
Can you re-test plz? :)
from usermanagement.
@robertlemke @davidspiola plz retest :)
from usermanagement.
Related Issues (20)
- Refactor Email Management into own package HOT 1
- Doctrine Migrations in Neos 3 don't work
- Documentation for template override not accurate
- Extend Neos Fusion objects by node
- TODO: centralize string constant "Sandstorm.UserManagement:Login" at one place
- Creating a user fails if the username is not a valid email address
- Creating a user fails cause of missing firstname
- Update pelago/emogrifier dependency to ^2.0.0
- Session cookie is not removed on logout when using redirects
- SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint HOT 2
- Documentation – Change Template for E-Mail HOT 1
- Neos/Party is missing as dependency HOT 1
- Remove standalone provider settings
- Open setup/index throws Exception HOT 1
- DOI Logging HOT 4
- Validation throw error
- Ditch default Reply-To configuration
- EelHelper for IfAuthenticatedViewHelper
- swiftmailer/swiftmailer is abandoned
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usermanagement.