Advertisement
Guest User

Untitled

a guest
May 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. # ./symfony doctrine:build --all --no-confirmation
  2.  
  3. SQLSTATE[HY000]: General error: 1005 Can't create table 'notetolife.#sql-2ba_a0' (errno: 150). Failing Query: "ALTER TABLE sf_guard_forgot_password ADD CONSTRAINT sf_guard_forgot_password_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE". Failing Query: ALTER TABLE sf_guard_forgot_password ADD CONSTRAINT sf_guard_forgot_password_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE
  4.  
  5.  
  6. #./config/doctrine/schema.yml
  7. NoteCategory:
  8. columns:
  9. name: { type: string(100), notnull: true, unique: true }
  10. slug: { type: string(100), notnull: true, unique: true }
  11.  
  12. sfGuardUserProfile:
  13. columns:
  14. user_id: { type: integer(4), notnull: true }
  15. email: { type: string(255), email: true }
  16. karma: { type: integer, notnull: true, default: 1 }
  17. relations:
  18. sfGuardUser:
  19. local: user_id
  20. foreign: id
  21. type: one
  22. foreignType: one
  23. onDelete: cascade
  24. foreignAlias: Profile
  25.  
  26. Vote:
  27. columns:
  28. name: { type: string(255), notnull: true }
  29. note_id: { type: integer, notnull: true }
  30. relations:
  31. Note: { local: note_id, foreign: id, foreignAlias: Votes }
  32.  
  33. Note:
  34. actAs: { Timestampable: ~ }
  35. columns:
  36. category_id: { type: integer, notnull: true }
  37. user_id: { type: integer(4), notnull: true }
  38. note: { type: string(<?php echo sfConfig::get('length_of_note') ?>), notnull: true }
  39. slug: { type: string(<?php echo sfConfig::get('length_of_note') ?>), notnull: true }
  40. score: { type: integer, notnull: true, default: 1 }
  41. created_at: ~
  42. relations:
  43. NoteCategory: { onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: Notes }
  44. sfGuardUser: { onDelete: CASCADE, local: user_id, foreign: id, foreignAlias: UsersNotes }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement