Giter Site home page Giter Site logo

aurora-framework's People

Contributors

afterlogic-support avatar amonray avatar arkuzn avatar artemij-nemec avatar henkpoley avatar nadine-belanova avatar sash04ek avatar slewis36 avatar vasil-sokolov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aurora-framework's Issues

v8->v9 migration issues; Was: Issue when au_min_hashes is empty

I get the error:

# php system/bin/console -vvv migrate:eav-to-sql
File /path_to_afterlogic_webmail/data/migration-eav-to-sql/migration-progress.txt is invalid. Do you wish migrate all entities? (Y/N)Y
 0/56 [>---------------------------]   0% < 1 sec/< 1 sec 6.0 MiB
In MySql.php line 536:

  [Aurora\System\Exceptions\DbException]
  21S01
  1136
  Column count doesn't match value count at row 1 [21S01]


Exception trace:
  at /path_to_afterlogic_webmail/system/Db/Pdo/MySql.php:536
 Aurora\System\Db\Pdo\MySql->_setSqlError() at /path_to_afterlogic_webmail/system/Db/Pdo/MySql.php:337
 Aurora\System\Db\Pdo\MySql->Execute() at /path_to_afterlogic_webmail/system/Db/Storage.php:189
 Aurora\System\Db\Storage->Execute() at /path_to_afterlogic_webmail/system/Console/Commands/Migrations/EavToSqlCommand.php:81
 Aurora\System\Console\Commands\Migrations\EavToSqlCommand->migrateMinHashes() at /path_to_afterlogic_webmail/system/Console/Commands/Migrations/EavToSqlCommand.php:255
 Aurora\System\Console\Commands\Migrations\EavToSqlCommand->execute() at /path_to_afterlogic_webmail/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at /path_to_afterlogic_webmail/vendor/symfony/console/Application.php:1015
 Symfony\Component\Console\Application->doRunCommand() at /path_to_afterlogic_webmail/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /path_to_afterlogic_webmail/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /path_to_afterlogic_webmail/system/bin/console:6

migrate:eav-to-sql [-w|--wipe] [-f|--migrate-file]

My au_min_hashes schema is:

CREATE TABLE au_min_hashes
(
    hash_id varchar(32) DEFAULT '' NOT NULL,
    hash    varchar(20) DEFAULT '' NOT NULL,
    data    text                   NULL
)
    CHARSET = utf8mb3;

CREATE INDEX au_min_hash_index
    ON au_min_hashes (hash);

But there is no data in there. I think that causes the issue in Aurora\System\Console\Commands\Migrations\EavToSqlCommand::migrateMinHashes()

protected function migrateMinHashes($oConnection)
{
if (!Capsule::schema()->hasTable('core_min_hashes')) {
return false;
}
if (!Capsule::schema()->hasTable('min_hashes')) {
return false;
}
$sql = "TRUNCATE `" . $this->oP8Settings->DBPrefix . "core_min_hashes`;";
$oConnection->execute($sql);
$sql = "INSERT INTO " . $this->oP8Settings->DBPrefix . "core_min_hashes (`HashId`, `UserId`,`Hash`, `Data`, `ExpireDate`)
SELECT *
FROM " . $this->oP8Settings->DBPrefix . "min_hashes;";
$oConnection->execute($sql);
return true;
}

Bump support for higher version of Symfony

Installation request for afterlogic/aurora-framework ^0.9.119 -> satisfiable by afterlogic/aurora-framework[0.9.119].
    - Conclusion: remove symfony/symfony v4.2.12
    - Conclusion: don't install symfony/symfony v4.2.12
    - afterlogic/aurora-framework 0.9.119 requires symfony/filesystem ^2.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.