fix: missing column 'markdown' in 'announcement' #1700
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
branch 2022.12
when we run migrate command 'php vendor/bin/phinx migrate', here shows some errors below following content.
[root@vm786716 www]# php vendor/bin/phinx migrate
Phinx by CakePHP - https://phinx.org.
using config file phinx.php
using config parser php
using migration paths
using seed paths
warning no environment specified, defaulting to: production
using adapter mysql
using database sspanel
ordering by creation time
== 20000101000000 InitDatabase: migrating
== 20000101000000 InitDatabase: migrated 1.0144s
== 20220109130532 CreateStreamMediaTable: migrating
== 20220109130532 CreateStreamMediaTable: migrated 0.0246s
== 20220505044345 StringToText: migrating
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'markdown' in 'announcement' in /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php:192
Stack trace:
#0 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(192): PDO->exec()
#1 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Util/AlterInstructions.php(108): Phinx\Db\Adapter\PdoAdapter->execute()
#2 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(626): Phinx\Db\Util\AlterInstructions->execute()
#3 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(1001): Phinx\Db\Adapter\PdoAdapter->executeAlterSteps()
#4 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/AdapterWrapper.php(477): Phinx\Db\Adapter\PdoAdapter->executeActions()
#5 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/TimedOutputAdapter.php(420): Phinx\Db\Adapter\AdapterWrapper->executeActions()
#6 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Plan/Plan.php(151): Phinx\Db\Adapter\TimedOutputAdapter->executeActions()
#7 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Table.php(716): Phinx\Db\Plan\Plan->execute()
#8 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Table.php(624): Phinx\Db\Table->executeActions()
#9 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Db/Table.php(683): Phinx\Db\Table->update()
#10 /var/nginx/www/db/migrations/20220505044345_string_to_text.php(30): Phinx\Db\Table->save()
#11 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Migration/Manager/Environment.php(111): StringToText->up()
#12 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php(388): Phinx\Migration\Manager\Environment->executeMigration()
#13 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php(359): Phinx\Migration\Manager->executeMigration()
#14 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Console/Command/Migrate.php(122): Phinx\Migration\Manager->migrate()
#15 /var/nginx/www/vendor/symfony/console/Command/Command.php(312): Phinx\Console\Command\Migrate->execute()
#16 /var/nginx/www/vendor/symfony/console/Application.php(1020): Symfony\Component\Console\Command\Command->run()
#17 /var/nginx/www/vendor/symfony/console/Application.php(312): Symfony\Component\Console\Application->doRunCommand()
#18 /var/nginx/www/vendor/robmorgan/phinx/src/Phinx/Console/PhinxApplication.php(70): Symfony\Component\Console\Application->doRun()
#19 /var/nginx/www/vendor/symfony/console/Application.php(168): Phinx\Console\PhinxApplication->doRun()
#20 /var/nginx/www/vendor/robmorgan/phinx/bin/phinx(28): Symfony\Component\Console\Application->run()
#21 /var/nginx/www/vendor/bin/phinx(120): include('...')
#22 {main}