dzitkowskik / mini-dos

Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
Apache License 2.0
0 stars 0 forks source link

Alter table operations #83

Closed davidmigloz closed 8 years ago

davidmigloz commented 8 years ago

We have been researching that bug. Summary:

  1. SQLite just supports following ALTER TABLE operations:
    • Rename table: ALTER TABLE <table_name> RENAME TO <new_table_name>;
    • Add column (not standard SQL): ALTER TABLE <table_name> ADD COLUMN <new_column_type> <new_column_type> ;
  2. Parser library does not support:
    • Rename table: ALTER TABLE <table_name> RENAME TO <new_table_name>;
  3. Parser library just supports following ALTER TABLE operations:
    • Add column: ALTER TABLE <table_name> ADD <new_column_type> (<new_column_name>)
    • Drop column: ALTER TABLE <table_name> DROP <column_name>

Conclusions:

Options:

dzitkowskik commented 8 years ago

Solved partially