diff --git a/README.md b/README.md index 7b1a7a0..51006c1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Database abstraction layer of WebFiori framework.

- PHP 8 Build Status + PHP 8 Build Status CodeCov @@ -43,15 +43,15 @@ Database abstraction layer of WebFiori framework. ## Supported PHP Versions | Build Status | |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| | -| | -| | -| | -| | -| | -| | -| | -| | +| | +| | +| | +| | +| | +| | +| | +| | +| | ## Supported Databases - MySQL @@ -190,22 +190,22 @@ The method `Database::createBlueprint()` is used to create a table based on conn ``` php $database->createBlueprint('users_information')->addColumns([ 'id' => [ - 'type' => 'int', - 'size' => 5, - 'primary' => true, - 'auto-inc' => true + ColOption::TYPE => DataType::INT, + ColOption::SIZE => 5, + ColOption::PRIMARY => true, + ColOption::AUTO_INCREMENT => true ], 'first-name' => [ - 'type' => 'varchar', - 'size' => 15 + ColOption::TYPE => DataType::VARCHAR, + ColOption::SIZE => 15 ], 'last-name' => [ - 'type' => 'varchar', - 'size' => 15 + ColOption::TYPE => DataType::VARCHAR, + ColOption::SIZE => 15 ], 'email' => [ - 'type' => 'varchar', - 'size' => 128 + ColOption::TYPE => DataType::VARCHAR, + ColOption::SIZE => 128 ] ]);