Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing column 'markdown' in 'announcement' #1700

Closed
wants to merge 1 commit into from

Conversation

sekzerd
Copy link

@sekzerd sekzerd commented Dec 7, 2022

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

  • /var/nginx/www/db/migrations
    using seed paths
  • /var/nginx/www/db/seeds
    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}

@AutisticShark
Copy link
Contributor

AutisticShark commented Dec 7, 2022

Already been fixed in 0580919 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants