Skip to content
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
32 changes: 32 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: phpunit

on: [push, pull_request]

env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader"
PHPUNIT_EXCLUDE_GROUP: mssql,oci,wincache,xcache,zenddata,cubrid

jobs:
phpunit:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v1
with:
php-version: 7.4
extensions: apc, curl, mbstring, dom, intl, pdo, pdo_sqlite, imagick
ini-values: date.timezone='UTC'
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Install dependencies
run: composer update $DEFAULT_COMPOSER_FLAGS
- name: PHP Unit tests
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group oci,wincache,xcache,zenddata,cubrid
- name: Code coverage
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
127 changes: 0 additions & 127 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ It is used in [Yii Framework] but is supposed to be usable separately.

[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-sqlite/v/stable.png)](https://packagist.org/packages/yiisoft/db-sqlite)
[![Total Downloads](https://poser.pugx.org/yiisoft/db-sqlite/downloads.png)](https://packagist.org/packages/yiisoft/db-sqlite)
[![Build Status](https://travis-ci.com/yiisoft/db-sqlite.svg?branch=master)](https://travis-ci.com/yiisoft/db-sqlite)
![phpunit](https://github.com/yiisoft/db-sqlite/workflows/phpunit/badge.svg)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yiisoft/db-sqlite/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yiisoft/db-sqlite/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/db-sqlite/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/yiisoft/db-sqlite/?branch=master)
67 changes: 9 additions & 58 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,6 @@
],
"homepage": "http://www.yiiframework.com/",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Qiang Xue",
"email": "qiang.xue@gmail.com",
"homepage": "http://www.yiiframework.com/",
"role": "Founder and project lead"
},
{
"name": "Alexander Makarov",
"email": "sam@rmcreative.ru",
"homepage": "http://rmcreative.ru/",
"role": "Core framework development"
},
{
"name": "Maurizio Domba",
"homepage": "http://mdomba.info/",
"role": "Core framework development"
},
{
"name": "Carsten Brandt",
"email": "mail@cebe.cc",
"homepage": "http://cebe.cc/",
"role": "Core framework development"
},
{
"name": "Timur Ruziev",
"email": "resurtm@gmail.com",
"homepage": "http://resurtm.com/",
"role": "Core framework development"
},
{
"name": "Paul Klimov",
"email": "klimov.paul@gmail.com",
"role": "Core framework development"
},
{
"name": "Dmitry Naumenko",
"email": "d.naumenko.a@gmail.com",
"role": "Core framework development"
},
{
"name": "Boudewijn Vahrmeijer",
"email": "info@dynasource.eu",
"homepage": "http://dynasource.eu",
"role": "Core framework development"
}
],
"support": {
"source": "https://github.com/yiisoft/db-sqlite",
"issues": "https://github.com/yiisoft/db-sqlite/issues",
Expand All @@ -65,21 +18,19 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.4",
"yiisoft/arrays": "^3.0@dev",
"yiisoft/db": "^3.0@dev",
"yiisoft/strings": "^3.0@dev",
"php": "^7.4"
"yiisoft/strings": "^3.0@dev"
},
"require-dev": {
"phpunit/phpunit": "^8.4",
"yiisoft/yii-console": "^3.0@dev",
"yiisoft/yii-web": "^3.0@dev",
"hiqdev/composer-config-plugin": "^1.0@dev",
"phpunit/phpunit": "^9.0",
"yiisoft/aliases": "^3.0@dev",
"yiisoft/log-target-file": "^3.0@dev",
"yiisoft/di": "^3.0@dev",
"yiisoft/log": "^3.0@dev",
"yiisoft/view": "^3.0@dev",
"yiisoft/cache": "^3.0@dev",
"yiisoft/active-record": "^3.0@dev",
"hiqdev/composer-config-plugin": "^1.0@dev"
"yiisoft/json": "^3.0@dev"

},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -107,4 +58,4 @@
"config": {
"sort-packages": true
}
}
}
18 changes: 5 additions & 13 deletions src/ColumnSchemaBuilder.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
<?php
/**
* @link http://www.yiiframework.com/
*
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/

declare(strict_types=1);

namespace Yiisoft\Db\Sqlite;

use Yiisoft\Db\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;
use Yiisoft\Db\Schemas\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;

/**
* ColumnSchemaBuilder is the schema builder for Sqlite databases.
*
* @author Chris Harris <chris@buckshotsoftware.com>
*
* @since 2.0.8
*/
class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
{
/**
* {@inheritdoc}
*/
protected function buildUnsignedString()
protected function buildUnsignedString(): string
{
return $this->isUnsigned ? ' UNSIGNED' : '';
}

/**
* {@inheritdoc}
*/
public function __toString()
public function __toString(): string
{
switch ($this->getTypeCategory()) {
case self::CATEGORY_PK:
Expand Down
Loading