removed unused flags

This commit is contained in:
Sascha Kühl 2025-07-18 15:34:26 +02:00
parent 6da0620169
commit df480edb05
1 changed files with 5 additions and 7 deletions

View File

@ -5,13 +5,11 @@ namespace matador::utils {
enum class constraints : unsigned char {
NONE = 0,
// NOT_NULL = 1 << 0,
INDEX = 1 << 1,
UNIQUE = 1 << 2,
PRIMARY_KEY = 1 << 3,
FOREIGN_KEY = 1 << 4,
DEFAULT = 1 << 5
// UNIQUE_NOT_NULL = UNIQUE | NOT_NULL
INDEX = 1 << 0,
UNIQUE = 1 << 1,
PRIMARY_KEY = 1 << 2,
FOREIGN_KEY = 1 << 3,
DEFAULT = 1 << 4
};
inline constraints operator|(constraints a, constraints b) { return static_cast<constraints>(static_cast<unsigned int>(a) | static_cast<unsigned int>(b)); }