Skip to content

Commit 00d9f8e

Browse files
committed
v0.16.0
1 parent 785e90a commit 00d9f8e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### [0.16.0] - 2023-01-21
10+
### Added
11+
- Added `\System\Database\MySchema\Create::class`, `\System\Database\MySchema\Drop::class`, `\System\Database\MySchema\Truncate::class` to crate/drop database or table. Or using shorthand 'MySchema::class`.
12+
913
### [0.15.0] - 2023-01-10
1014
### Added
1115
- Added `Query::queryBind()` method to return query string with the bind's.

readme.md

+11
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ PDO::transaction(function() {
101101
});
102102
```
103103

104+
### Create Database Table
105+
create database table
106+
```php
107+
Schema::table('users', function(Column $column) {
108+
$column('user')->varchar(50);
109+
$column('pwd')->varchar(500)->notNull();
110+
$column->primeryKeys('user');
111+
})
112+
->excute();
113+
```
114+
104115
[🔝 Back to contents](#Feature)
105116

106117
## Collection

0 commit comments

Comments
 (0)