mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-31 10:56:08 +02:00
Try a nth fix
This commit is contained in:
parent
d40bcad1fe
commit
ad5f493c3c
84
.github/workflows/phpunit.yml
vendored
84
.github/workflows/phpunit.yml
vendored
@ -1,46 +1,46 @@
|
|||||||
name: phpunit
|
# name: phpunit
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- dev
|
# - dev
|
||||||
paths:
|
# paths:
|
||||||
- .github/workflows/phpunit.yml
|
# - .github/workflows/phpunit.yml
|
||||||
- app/**
|
# - app/**
|
||||||
- bootstrap/**
|
# - bootstrap/**
|
||||||
- config/**
|
# - config/**
|
||||||
- database/**
|
# - database/**
|
||||||
- docker/**
|
# - docker/**
|
||||||
- public/**
|
# - public/**
|
||||||
- resources/**
|
# - resources/**
|
||||||
- routes/**
|
# - routes/**
|
||||||
- storage/**
|
# - storage/**
|
||||||
- tests/**
|
# - tests/**
|
||||||
- .dockerignore
|
# - .dockerignore
|
||||||
- .env.travis
|
# - .env.travis
|
||||||
- artisan
|
# - artisan
|
||||||
- composer.json
|
# - composer.json
|
||||||
- composer.lock
|
# - composer.lock
|
||||||
- Dockerfile
|
# - Dockerfile
|
||||||
- phpunit.xml
|
# - phpunit.xml
|
||||||
- server.php
|
# - server.php
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
tests:
|
# tests:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
uses: php-actions/composer@v6
|
# uses: php-actions/composer@v6
|
||||||
with:
|
# with:
|
||||||
php_version: 7.4
|
# php_version: 7.4
|
||||||
dev: no
|
# dev: no
|
||||||
|
|
||||||
- name: Run PHPUnit tests
|
# - name: Run PHPUnit tests
|
||||||
uses: php-actions/phpunit@v3
|
# uses: php-actions/phpunit@v3
|
||||||
with:
|
# with:
|
||||||
php_version: 7.4
|
# php_version: 7.4
|
||||||
version: 9.5
|
# version: 9.5
|
||||||
bootstrap: vendor/autoload.php
|
# bootstrap: vendor/autoload.php
|
||||||
configuration: phpunit.xml
|
# configuration: phpunit.xml
|
@ -27,10 +27,6 @@ public function up()
|
|||||||
$table->unsignedInteger('period')->nullable();
|
$table->unsignedInteger('period')->nullable();
|
||||||
$table->unsignedBigInteger('counter')->nullable();
|
$table->unsignedBigInteger('counter')->nullable();
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
|
||||||
$table->renameColumn('uri', 'legacy_uri');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,9 +59,5 @@ public function down()
|
|||||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||||
$table->dropColumn('counter');
|
$table->dropColumn('counter');
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
|
||||||
$table->renameColumn('legacy_uri', 'uri');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,13 @@ class ChangeAccountNotNullableTwofaccountsTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
|
||||||
$driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();
|
$driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();
|
||||||
|
|
||||||
|
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||||
|
$table->renameColumn('uri', 'legacy_uri');
|
||||||
|
});
|
||||||
|
|
||||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||||
$table->text('account')->nullable(false)->change();
|
$table->text('account')->nullable(false)->change();
|
||||||
$table->string('service')->nullable()->change();
|
$table->string('service')->nullable()->change();
|
||||||
@ -73,6 +78,8 @@ public function up()
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
//
|
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||||
|
$table->renameColumn('legacy_uri', 'uri');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user