Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of SQLite column #24

Merged
merged 2 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## 1.0.1 under development

- no changes in this release.
- Bug #46: Remove usage of `SQLite` column in DB agnostic code (@arogachev)

## 1.0.0 April 20, 2023
4 changes: 1 addition & 3 deletions src/Command/RbacDbInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Schema\SchemaInterface;
use Yiisoft\Db\Sqlite\Column;

/**
* Command for creating RBAC related database tables using Yii Database.
Expand Down Expand Up @@ -111,7 +109,7 @@ private function createItemsTable(): void
->createTable(
$this->itemsTable,
[
'name' => (new Column(SchemaInterface::TYPE_STRING, 128))->notNull()->append('PRIMARY KEY'),
'name' => 'string(128) NOT NULL PRIMARY KEY',
'type' => 'string(10) NOT NULL',
'description' => 'string(191)',
'ruleName' => 'string(64)',
Expand Down