ekinoguz / sprout-database

Database project of a graduate class.
0 stars 0 forks source link

We could have a update attribute in the cli. #9

Closed diedthreetimes closed 11 years ago

diedthreetimes commented 11 years ago

It would just have to do a drop and then an add...

Thoughs?

diedthreetimes commented 11 years ago

drop the attribute and add it in the same position (in terms of attribute positions)

~ cesar ~

ekinoguz commented 11 years ago

Is it like updating the name/type/size (if it is varchar) of the attribute? Yes we can but do they ask for this?

Does rm provides an option to add attribute to same position?

ekinoguz commented 11 years ago

actually in cli, we can give the same position number. rm does not have to provide this

diedthreetimes commented 11 years ago

This won't work using the public api. Since if we drop interior columns, we can't add them back in the same position. We could add them back in different positions, but then we have to change rm to treat column "equality" only by name and type, and not by position. It is probably not worth it. What would we really want to "alter"