第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

未找到列:1054“字段列表”中未知列“徽標(biāo)”

未找到列:1054“字段列表”中未知列“徽標(biāo)”

PHP
ABOUTYOU 2023-09-15 17:27:01
Illuminate\Database\QueryException thrown with message "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'logo' in 'field list' (SQL: update `basic_settings` set `footer_text` = We Invest your money property projects and we earn you 40% monthly. Welcome onboard let's join hands together., `copy_text` = Copyright ? Pro Invest SA 2017 - 2020 All Right Reserved., `updated_at` = 2020-08-03 23:55:19, `logo` = /tmp/phpfptGnR where `id` = 1)"Stacktrace:#64 Illuminate\Database\QueryException in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664#63 PDOException in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:479#62 PDO:prepare in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:479#61 Illuminate\Database\Connection:Illuminate\Database\{closure} in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657#60 Illuminate\Database\Connection:runQueryCallback in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624#59 Illuminate\Database\Connection:run in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:490#58 Illuminate\Database\Connection:affectingStatement in /home/proinve2/public_html/core/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423
查看完整描述

1 回答

?
慕斯709654

TA貢獻(xiàn)1840條經(jīng)驗(yàn) 獲得超5個(gè)贊

basic_settings使用命令將新列添加到表中php artisan make:migration add_logo_field_to_basic_settings_table。


創(chuàng)建遷移后,進(jìn)行如下更改。


<?php

use Illuminate\Database\Migrations\Migration;

use Illuminate\Database\Schema\Blueprint;

use Illuminate\Support\Facades\Schema;


class AddLogoFieldToBasicSettingsTable extends Migration

{

 

    public function up()

    {

        Schema::table('basic_settings', function (Blueprint $table) {

            $table->string('logo');

        });

    }


   

    public function down()

    {

         Schema::table('basic_settings', function (Blueprint $table) {

            $table->dropColumn(['logo']);

        });

    }

現(xiàn)在您可以遷移并創(chuàng)建或更新logo列。


遷移: php artisan migrate


查看完整回答
反對(duì) 回復(fù) 2023-09-15
  • 1 回答
  • 0 關(guān)注
  • 138 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)