FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.

Home Page:https://symfony.com/doc/master/bundles/FOSUserBundle/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After upgrade symfoy 3.4 migrations error "Error : Column 'salt' cannot be null"

hugoalexmartins opened this issue · comments

I've upgraded my symfony version to 3.4.
The build of my database comes from migration, also some user's are created in migration.

After upgrade symfony and dependencies I tried to create a DB from zero, and when a migration tries to insert a new user I get:

Error : Column 'salt' cannot be null

Any workaround for my old migrations works well ?

Composer info here:

behat/transliterator                     v1.2.0  String transliterator
cocur/slugify                            v3.1    Converts a string into a slug.
composer/ca-bundle                       1.1.2   Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
doctrine/annotations                     v1.6.0  Docblock Annotations Parser
doctrine/cache                           v1.7.1  Caching library offering an object-oriented API for many cache backends
doctrine/collections                     v1.5.0  Collections Abstraction library
doctrine/common                          v2.9.0  Common Library for Doctrine projects
doctrine/data-fixtures                   v1.3.1  Data Fixtures for all Doctrine Object Managers
doctrine/dbal                            v2.8.0  Database Abstraction Layer
doctrine/doctrine-bundle                 1.9.1   Symfony DoctrineBundle
doctrine/doctrine-cache-bundle           1.3.3   Symfony Bundle for Doctrine Cache
doctrine/doctrine-fixtures-bundle        v2.4.1  Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle      v1.3.1  Symfony DoctrineMigrationsBundle
doctrine/event-manager                   v1.0.0  Doctrine Event Manager component
doctrine/inflector                       v1.3.0  Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                    1.1.0   A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                           v1.0.1  Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations                      v1.8.1  Database Schema migrations using Doctrine DBAL
doctrine/orm                             v2.6.2  Object-Relational-Mapper for PHP
doctrine/persistence                     v1.0.0  Doctrine Persistence abstractions.
doctrine/reflection                      v1.0.0  Doctrine Reflection component
egeloen/ckeditor-bundle                  6.0.1   Provides a CKEditor integration for your Symfony2 Project.
egeloen/json-builder                     3.0.0   JSON builder with escaping control for PHP 5.6+
fig/link-util                            1.0.0   Common utility implementations for HTTP links
friendsofsymfony/jsrouting-bundle        2.2.0   A pretty nice way to expose your Symfony2 routing to client applications.
friendsofsymfony/rest-bundle             2.3.1   This Bundle provides various tools to rapidly develop RESTful API's with Symfony
friendsofsymfony/user-bundle             v2.1.2  Symfony FOSUserBundle
gedmo/doctrine-extensions                v2.4.36 Doctrine2 behavioral extensions
gesdinet/jwt-refresh-token-bundle        v0.4.0  Implements a refresh token system over Json Web Tokens in Symfony
incenteev/composer-parameter-handler     v2.1.3  Composer script handling your ignored parameter file
jdorn/sql-formatter                      v1.2.17 a PHP SQL highlighting library
jms/metadata                             1.6.0   Class/method/property metadata management in PHP
jms/parser-lib                           1.0.0   A library for easily creating recursive-descent parsers.
jms/serializer                           1.13.0  Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
jms/serializer-bundle                    2.4.2   Allows you to easily serialize, and deserialize data of any complexity
knplabs/knp-markdown-bundle              1.7.0   Knplabs markdown bundle transforms markdown into html
knplabs/knp-menu                         2.3.0   An object oriented menu library
knplabs/knp-menu-bundle                  v2.2.1  This bundle provides an integration of the KnpMenu library
knplabs/knp-snappy                       v1.0.4  PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.
knplabs/knp-snappy-bundle                v1.5.2  Easily create PDF and images in Symfony2 by converting Twig/HTML templates.
kriswallsmith/assetic                    v1.4.0  Asset Management for PHP
lcobucci/jwt                             3.2.4   A simple library to work with JSON Web Token and JSON Web Signature
lexik/jwt-authentication-bundle          v2.5.4  This bundle provides JWT authentication for your Symfony REST API
limenius/liform                          v0.12.0 Library to transform Symfony Forms into Json Schema
limenius/liform-bundle                   v0.12.0 Bundle for Liform: Transform Symfony Forms into Json Schema
michelf/php-markdown                     1.8.0   PHP Markdown
monolog/monolog                          1.23.0  Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                        1.8.1   Create deep copies (clones) of your objects
namshi/jose                              7.2.3   JSON Object Signing and Encryption library for PHP.
nelmio/cors-bundle                       1.5.4   Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony2 application
ocramius/package-versions                1.3.0   Composer plugin that provides efficient querying for installed package versions (no runtime IO)
ocramius/proxy-manager                   2.1.1   A library providing utilities to generate, instantiate and generally operate with Object Proxies
paragonie/random_compat                  v2.0.17 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
paypal/rest-api-sdk-php                  1.13.0  PayPal's PHP SDK for REST APIs
phar-io/manifest                         1.0.1   Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                          1.0.1   Library for handling version information and constraints
phpcollection/phpcollection              0.5.0   General-Purpose Collection Library for PHP
phpdocumentor/reflection-common          1.0.1   Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock        4.3.0   With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver              0.4.0  
phpoption/phpoption                      1.5.0   Option Type for PHP
phpspec/prophecy                         1.8.0   Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage                5.3.2   Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator                1.4.5   FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template                1.2.1   Simple template engine.
phpunit/php-timer                        1.0.9   Utility class for timing
phpunit/php-token-stream                 2.0.2   Wrapper around PHP's tokenizer extension.
phpunit/phpunit                          6.5.11  The PHP Unit Testing framework.
phpunit/phpunit-mock-objects             5.0.10  Mock Object library for PHPUnit
psr/cache                                1.0.1   Common interface for caching libraries
psr/container                            1.0.0   Common Container Interface (PHP FIG PSR-11)
psr/link                                 1.0.0   Common interfaces for HTTP links
psr/log                                  1.0.2   Common interface for logging libraries
psr/simple-cache                         1.0.1   Common interfaces for simple caching
sebastian/code-unit-reverse-lookup       1.0.1   Looks up which function or method a line of code belongs to
sebastian/comparator                     2.1.3   Provides the functionality to compare PHP values for equality
sebastian/diff                           2.0.1   Diff implementation
sebastian/environment                    3.1.0   Provides functionality to handle HHVM/PHP environments
sebastian/exporter                       3.1.0   Provides the functionality to export PHP variables for visualization
sebastian/global-state                   2.0.0   Snapshotting of global state
sebastian/object-enumerator              3.0.3   Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector               1.1.1   Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context              3.0.0   Provides functionality to recursively process PHP variables
sebastian/resource-operations            1.0.0   Provides a list of PHP built-in functions that operate on resources
sebastian/version                        2.0.1   Library that helps with managing the version number of Git-hosted PHP projects
sensio/distribution-bundle               v5.0.22 Base bundle for Symfony Distributions
sensio/framework-extra-bundle            v3.0.29 This bundle provides a way to configure your controllers with annotations
sensio/generator-bundle                  v3.1.7  This bundle generates code for you
sensiolabs/security-checker              v4.1.8  A security checker for your composer.lock
sonata-project/admin-bundle              3.37.0  The missing Symfony Admin Generator
sonata-project/block-bundle              3.12.1  Symfony SonataBlockBundle
sonata-project/cache                     2.0.1   Cache library
sonata-project/core-bundle               3.11.2  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.3.1   Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2   Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.6.1   Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.5.0   Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.9.1   Lightweight Exporter library
sonata-project/formatter-bundle          3.5.0   Symfony SonataFormatterBundle
sonata-project/intl-bundle               2.5.0   Symfony SonataIntlBundle
sonata-project/translation-bundle        2.3.1   SonataTranslationBundle
sonata-project/user-bundle               4.2.3   Symfony SonataUserBundle
stof/doctrine-extensions-bundle          v1.3.0  Integration of the gedmo/doctrine-extensions with Symfony2
stripe/stripe-php                        v5.9.2  Stripe PHP Library
swiftmailer/swiftmailer                  v5.4.12 Swiftmailer, free feature-rich PHP mailer
symfony/assetic-bundle                   v2.8.2  Integrates Assetic into Symfony2
symfony/monolog-bundle                   v3.3.0  Symfony MonologBundle
symfony/phpunit-bridge                   v4.1.3  Symfony PHPUnit Bridge
symfony/polyfill-apcu                    v1.9.0  Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype                   v1.9.0  Symfony polyfill for ctype functions
symfony/polyfill-intl-icu                v1.9.0  Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring                v1.9.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php56                   v1.9.0  Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70                   v1.9.0  Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util                    v1.9.0  Symfony utilities for portability of PHP codes
symfony/security-acl                     v3.0.1  Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle               v2.6.7  Symfony SwiftmailerBundle
symfony/symfony                          v3.4.14 The Symfony PHP framework
symfony/web-server-bundle                v4.1.3  Symfony WebServerBundle
theseer/tokenizer                        1.1.0   A small library for converting tokenized PHP source code into XML and potentially other formats
twig/extensions                          v1.5.2  Common additional features for Twig that do not directly belong in core
twig/twig                                v2.5.0  Twig, the flexible, fast, and secure template language for PHP
webmozart/assert                         1.3.0   Assertions to validate method input/output with nice error messages.
willdurand/jsonp-callback-validator      v1.1.0  JSONP callback validator.
willdurand/negotiation                   v2.3.1  Content Negotiation tools for PHP provided as a standalone library.
zendframework/zend-code                  3.3.0   provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-eventmanager          3.2.1   Trigger and listen to events within a PHP application

salt can be null now, so create a migration to update your database to allow for this

commented

^^