mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
db createColumn()
This commit is contained in:
@@ -72,7 +72,8 @@ void editFieldForm::confirmEdit()
|
||||
return;
|
||||
}
|
||||
field_name = fieldname;
|
||||
field_type = typeBox->currentText();
|
||||
//field_type = typeBox->currentText();
|
||||
field_type = groupRadioTypes->checkedButton()->property("field_type").toString();
|
||||
bool ok = pdb.createColumn(table_name, field_name, field_type);
|
||||
if(!ok){
|
||||
qDebug(pdb.lastErrorMessage);
|
||||
|
||||
@@ -1260,7 +1260,7 @@ void mainForm::on_add_field(){
|
||||
//QTreeWidgetItem *item = dbTreeWidget->currentItem();
|
||||
editFieldForm *fieldForm = new editFieldForm( this, "editfield", true );
|
||||
//qDebug(item->text(2));
|
||||
fieldForm->setInitialValues(true, "TABLE_NAME", "", "NUMERIC");
|
||||
fieldForm->setInitialValues(true, dbTreeWidget->currentItem()->text(0), "", "TEXT");
|
||||
fieldForm->setDB(this->db);
|
||||
if (fieldForm->exec())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user