forked from qt-creator/qt-creator
Sqlite: Add check constraint
Change-Id: Ib4b909da40c7fe07dcb6a07c4650a720313391c2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -154,6 +154,13 @@ public:
|
||||
|
||||
void operator()(const NotNull &) { columnDefinitionString.append(" NOT NULL"); }
|
||||
|
||||
void operator()(const Check &check)
|
||||
{
|
||||
columnDefinitionString.append(" CHECK (");
|
||||
columnDefinitionString.append(check.expression);
|
||||
columnDefinitionString.append(")");
|
||||
}
|
||||
|
||||
void operator()(const DefaultValue &defaultValue)
|
||||
{
|
||||
columnDefinitionString.append(" DEFAULT ");
|
||||
|
||||
Reference in New Issue
Block a user