title: how can i move column data to another table and set its id to foreign key column in first table?
body: <p>I had table application that one of the columns names allowed_command ,
  then I create another table application_command and want to separate allowed_command column and move to second table 'application_command'
  in addition, application table has foreign key from application_command
  so , I need to copy value of allowed_command to application_command table then put its id to first table</p>