Thank you Fabrizio Fortino, what for it was made? четверг, 26 декабря 2013 г., 15:29:33 UTC+4 пользователь Fabrizio Fortino написал: > > Hi Lebnik, > > The console does not load the schema information every time you execute a > command. Try using the console command "reload schema" after creating the > property. > > Cheers, > Fabrizio > > On Thursday, December 26, 2013 12:06:56 PM UTC+1, Lebnik wrote: >> >> Hi, >> My OrientDB Server v2.0-SNAPSHOT (build 1) >> >> I do basic authorization and then send POST-request to >> http://localhost:2480/batch/GratefulDeadConcerts with content: >> >> {"transaction":false,"operations":[{"type":"cmd","language":"sql", >> "command":"create property ouser.zzz String"}]} >> >> And got response: >> >> 1 >> >> But, when I tried check appended property in console, I don`t see this >> changes: >> >> orientdb {GratefulDeadConcerts}> info class ouser >> >> >> Class................: OUser >> Super class..........: OIdentity >> Default cluster......: ouser (id=5) >> Supported cluster ids: [5] >> Properties: >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> NAME | TYPE | LINKED TYPE/CLASS >> | MANDATORY | READONLY | NOT NULL | MIN | MAX | COLLATE >> | >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> name | STRING | null >> | true | false | true | | | ci >> | >> password | STRING | null >> | true | false | true | | | default >> | >> roles | LINKSET | ORole >> | false | false | false | | | default >> | >> status | STRING | null >> | true | false | true | | | default >> | >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> Indexes (1 altogether): >> -------------------------------+----------------+ >> NAME | PROPERTIES | >> -------------------------------+----------------+ >> OUser.name | name | >> -------------------------------+----------------+ >> >> Where my new property "zzz"? But, when I reconnected to my database, I >> see this changes: >> >> orientdb {GratefulDeadConcerts}> connect plocal:/home/programs/ >> orientdbTest/releases/orientdb-community-2.0-SNAPSHOT/databases/ >> GratefulDeadConcerts admin admin >> >> >> Disconnecting from the database [GratefulDeadConcerts]... >> OKConnecting to database [plocal:/home/programs/orientdbTest/releases/ >> orientdb-community-2.0-SNAPSHOT/databases/GratefulDeadConcerts] withuser >> 'admin'...OK >> >> >> orientdb {GratefulDeadConcerts}> desc ouser >> >> >> Class................: OUser >> Super class..........: OIdentity >> Default cluster......: ouser (id=5) >> Supported cluster ids: [5] >> Properties: >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> NAME | TYPE | LINKED TYPE/CLASS >> | MANDATORY | READONLY | NOT NULL | MIN | MAX | COLLATE >> | >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> zzz | STRING | null >> | false | false | false | | | default >> | >> name | STRING | null >> | true | false | true | | | ci >> | >> password | STRING | null >> | true | false | true | | | default >> | >> roles | LINKSET | ORole >> | false | false | false | | | default >> | >> status | STRING | null >> | true | false | true | | | default >> | >> >> -------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+ >> Indexes (1 altogether): >> -------------------------------+----------------+ >> NAME | PROPERTIES | >> -------------------------------+----------------+ >> OUser.name | name | >> -------------------------------+----------------+ >> >> It bug? >> >
-- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
