Hi Thing, first setup_all(), then create_all(). http://elixir.ematia.de/trac/wiki/TutorialDivingIn#a3.Action
Marko Ting Zhou schrieb: > Daer all, > > ======================================= > from elixir import * > > metadata.bind = 'mysql://user:[email protected]/t1' > metadata.bind.echo = True > > class Article(Entity): > tags = ManyToMany('Tag') > > class Tag(Entity): > articles = ManyToMany('Article') > ======================================= > Then I imported these classes and create_all(). I got nothing in my > database "t1". This happens on 0.6.1 and 0.7.0 . > > Thank you. > Best wishes, > Ting > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
