0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-01 15:09:51 +00:00

Framework: Addressed deprecations

This commit is contained in:
Dan Brown 2024-03-17 16:52:19 +00:00
parent b4b84f81a0
commit 28d6292278
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
5 changed files with 32 additions and 37 deletions

View file

@ -26,9 +26,9 @@ return new class extends Migration
public function down(): void
{
$sm = Schema::getConnection()->getDoctrineSchemaManager();
$pages = $sm->listTableDetails('pages');
$books = $sm->listTableDetails('books');
$chapters = $sm->listTableDetails('chapters');
$pages = $sm->introspectTable('pages');
$books = $sm->introspectTable('books');
$chapters = $sm->introspectTable('chapters');
if ($pages->hasIndex('search')) {
Schema::table('pages', function (Blueprint $table) {

View file

@ -26,9 +26,9 @@ return new class extends Migration
public function down(): void
{
$sm = Schema::getConnection()->getDoctrineSchemaManager();
$pages = $sm->listTableDetails('pages');
$books = $sm->listTableDetails('books');
$chapters = $sm->listTableDetails('chapters');
$pages = $sm->introspectTable('pages');
$books = $sm->introspectTable('books');
$chapters = $sm->introspectTable('chapters');
if ($pages->hasIndex('name_search')) {
Schema::table('pages', function (Blueprint $table) {

View file

@ -25,9 +25,9 @@ return new class extends Migration
});
$sm = Schema::getConnection()->getDoctrineSchemaManager();
$pages = $sm->listTableDetails('pages');
$books = $sm->listTableDetails('books');
$chapters = $sm->listTableDetails('chapters');
$pages = $sm->introspectTable('pages');
$books = $sm->introspectTable('books');
$chapters = $sm->introspectTable('chapters');
if ($pages->hasIndex('search')) {
Schema::table('pages', function (Blueprint $table) {