attribute_definition and object_definition progress
This commit is contained in:
@@ -48,7 +48,7 @@ TEST_CASE_METHOD(QueryFixture, "Test create table sql statement string", "[query
|
||||
auto ctx = query::create()
|
||||
.table("person", {
|
||||
make_pk_column<uint32_t>("id"),
|
||||
make_column<std::string>("name", {255, constraints::UNIQUE}, null_option::NOT_NULL),
|
||||
make_column<std::string>("name", {255, constraints::UNIQUE}, null_option_type::NOT_NULL),
|
||||
make_column<unsigned short>("age"),
|
||||
make_fk_column<uint32_t>("address", "address", "id")
|
||||
}).compile(*db);
|
||||
|
||||
@@ -27,7 +27,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
2,
|
||||
std::make_shared<attribute_definition>("author", "books", basic_type::type_uint32, constraints::FOREIGN_KEY),
|
||||
{255, constraints::FOREIGN_KEY},
|
||||
null_option::NOT_NULL
|
||||
null_option_type::NOT_NULL
|
||||
);
|
||||
REQUIRE(c.name() == "name");
|
||||
REQUIRE(c.index() == 2);
|
||||
|
||||
Reference in New Issue
Block a user