mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
edittabledialg: table without rowid don't have to be integer pk columns
This commit is contained in:
@@ -546,13 +546,12 @@ void EditTableDialog::setWithoutRowid(bool without_rowid)
|
||||
{
|
||||
// Before setting the without rowid flag, first perform a check to see if the table meets all thr required criteria for without rowid tables
|
||||
int pk = m_table.findPk();
|
||||
if(pk == -1 || m_table.fields().at(pk)->isInteger() == false || m_table.fields().at(pk)->autoIncrement())
|
||||
if(pk == -1 || m_table.fields().at(pk)->autoIncrement())
|
||||
{
|
||||
QMessageBox::information(this, QApplication::applicationName(),
|
||||
tr("Please add a field which meets the following criteria before setting the without rowid flag:\n"
|
||||
" - Primary key flag set\n"
|
||||
" - Auto incremenct disabled\n"
|
||||
" - Type INTEGER"));
|
||||
" - Auto incremenct disabled"));
|
||||
ui->checkWithoutRowid->setChecked(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user