mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Improve movement of tables between different schemata
This improves the Edit Table dialog to better handle moving tables from one schema to another, though the UI currently only knows about the main and the temp schema. This also simplifies the grammar code by removing the temporary flag from all classes because it's redundant now that we support multiple schemata.
This commit is contained in:
@@ -84,9 +84,10 @@ public:
|
||||
* @param name Name of the column to edit
|
||||
* @param to The new field definition with changed name, type or the like. If Null-Pointer is given the column is dropped.
|
||||
* @param move Set this to a value != 0 to move the new column to a different position
|
||||
* @param newSchema Set this to a non-empty string to move the table to a new schema
|
||||
* @return true if renaming was successful, false if not. In the latter case also lastErrorMessage is set
|
||||
*/
|
||||
bool renameColumn(const sqlb::ObjectIdentifier& tablename, const sqlb::Table& table, const QString& name, sqlb::FieldPtr to, int move = 0);
|
||||
bool renameColumn(const sqlb::ObjectIdentifier& tablename, const sqlb::Table& table, const QString& name, sqlb::FieldPtr to, int move = 0, QString newSchemaName = QString());
|
||||
|
||||
objectMap getBrowsableObjects(const QString& schema) const;
|
||||
const sqlb::ObjectPtr getObjectByName(const sqlb::ObjectIdentifier& name) const;
|
||||
|
||||
Reference in New Issue
Block a user