Menu

#17 cloning a dbtable should mimic structure

pre-1.0
open
Interface (27)
3
2002-04-26
2002-03-04
Jay Bonci
No

This is a minor "bug" if you can call it that, but it
would be nice if you could clone a dbtable to another
type, and still have it keep it's structure, (but not
the elements).

Have it create another table under the new base name,
and then copy each field over (regexping out the table
name convention for the other). Thoughts?

Can you see any problems with doing this? Right now
the clone function on dbtable is fairly useless.

Discussion

  • Jay Bonci

    Jay Bonci - 2002-04-26
    • assigned_to: nobody --> jaybonci
     
  • paul_the_nomad

    paul_the_nomad - 2005-07-10

    Logged In: YES
    user_id=89398

    Hello Jay,

    Old bug I know. But still, it's up here.

    The problem is that you want to clone a dbtable to a type.
    A dbtable has fields another type might not. dbtables only
    purpose seem to be to support nodetypes. Therefore cloning
    a dbtable will, in effect, create a new nodetype, which in
    itself would create another dbtable.

    So, 'cloning' a dbtable will be the same as creating a new
    nodetype. It's sort of a short cut to creating a new nodetype.

    My thoughts are that this is a bit complicated and if people
    want to duplicate dbtables and create nodetypes then they
    can do those two steps seperately.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.