Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. # Doctrine Configuration
  2. doctrine:
  3. dbal:
  4. default_connection: default
  5. connections:
  6. default:
  7. driver: %database_driver%
  8. host: %database_host%
  9. port: %database_port%
  10. dbname: %database_name%
  11. user: %database_user%
  12. password: %database_password%
  13. charset: UTF8
  14. orm:
  15. default_entity_manager: default
  16. auto_generate_proxy_classes: %kernel.debug%
  17. entity_managers:
  18. default:
  19. connection: default
  20. metadata_cache_driver: array
  21. query_cache_driver: array
  22. result_cache_driver: array
  23. mappings:
  24. [my bundles here..]
  25.  
  26. security:
  27. acl:
  28. connection: default
  29.  
  30. ./app/console doctrine:database:drop --connection=default --force
  31. ./app/console doctrine:database:create --connection=default
  32. ./app/console doctrine:schema:create --em=prod
  33.  
  34. ./app/console init:acl
  35.  
  36. ALTER TABLE acl_classes CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL;
  37. ALTER TABLE acl_security_identities CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL;
  38. ALTER TABLE acl_object_identities CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL, CHANGE parent_object_identity_id parent_object_identity_id INT UNSIGNED DEFAULT NULL, CHANGE class_id class_id INT UNSIGNED NOT NULL;
  39. ALTER TABLE acl_object_identity_ancestors CHANGE object_identity_id object_identity_id INT UNSIGNED NOT NULL, CHANGE ancestor_id ancestor_id INT UNSIGNED NOT NULL;
  40. ALTER TABLE acl_entries CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL, CHANGE security_identity_id security_identity_id INT UNSIGNED NOT NULL, CHANGE object_identity_id object_identity_id INT UNSIGNED DEFAULT NULL, CHANGE class_id class_id INT UNSIGNED NOT NULL, CHANGE ace_order ace_order SMALLINT UNSIGNED NOT NULL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement