mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-17 09:01:06 +02:00
Try a nth fix
This commit is contained in:
@ -27,10 +27,6 @@ class SplitTwofaccountsUriInMultipleColumns extends Migration
|
||||
$table->unsignedInteger('period')->nullable();
|
||||
$table->unsignedBigInteger('counter')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
$table->renameColumn('uri', 'legacy_uri');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,9 +59,5 @@ class SplitTwofaccountsUriInMultipleColumns extends Migration
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
$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()
|
||||
{
|
||||
|
||||
$driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();
|
||||
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
$table->renameColumn('uri', 'legacy_uri');
|
||||
});
|
||||
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
$table->text('account')->nullable(false)->change();
|
||||
$table->string('service')->nullable()->change();
|
||||
@ -73,6 +78,8 @@ class ChangeAccountNotNullableTwofaccountsTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
$table->renameColumn('legacy_uri', 'uri');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user