Skip to content
Permalink
Browse files
all caps NOT NULL and UNIQUE
  • Loading branch information
elpaso authored and nyalldawson committed Jul 15, 2021
1 parent c2f0a67 commit eaa3e52219e774305a78c8b9552b1d42f20796c5
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/browser/qgsfieldsitem.cpp
@@ -152,11 +152,11 @@ QgsFieldItem::QgsFieldItem( QgsDataItem *parent, const QgsField &field )
QStringList constraintsText;
if ( constraints.testFlag( QgsFieldConstraints::Constraint::ConstraintNotNull ) )
{
constraintsText.push_back( tr( "Not Null" ) );
constraintsText.push_back( tr( "NOT NULL" ) );
}
if ( constraints.testFlag( QgsFieldConstraints::Constraint::ConstraintUnique ) )
{
constraintsText.push_back( tr( "Unique" ) );
constraintsText.push_back( tr( "UNIQUE" ) );
}
if ( ! constraintsText.isEmpty() )
{
@@ -203,4 +203,3 @@ QIcon QgsFieldItem::icon()
return icon;
}


0 comments on commit eaa3e52

Please sign in to comment.