Coder Social home page Coder Social logo

crm-skeleton's People

Contributors

lubos-michalik avatar markoph avatar miroc avatar mmacsodi-fcm avatar rootpd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crm-skeleton's Issues

General error: 1005 Can't create table 'DB.#sql-1d80_ab023c' in database migration

When i run the command php bin/command.php phinx:migrate i get the following error:

PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'DB_NAME.#sql-1d80_ab023c' (errno: 150) in /PATH/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php:184
Stack trace:
#0 /PATH/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(184): PDO->exec('ALTER TABLE `su...')
#1 /PATH/vendor/robmorgan/phinx/src/Phinx/Db/Util/AlterInstructions.php(112): Phinx\Db\Adapter\PdoAdapter->execute('ALTER TABLE `su...')

Is possible to set global table prefix?

Hi, i want to set a global prefix for all remp tables. I want to use remp with other apps on the same database, but there are lot of tables and it's messy.

I see that migration of tables is made by https://phinx.org/ and table names are hardcoded there, so this is not easy.

In application is used Nette database layer, and i don't see this option in there, but in remp is repository pattern used, and is theoretically possible to add table prefix from config in getTable() method here https://github.com/remp2020/crm-application-module/blob/master/src/model/Repository/Repository.php#L40.

My proposal is to not change migrations for now (maybe later) and manually change table names in the database. Next, add that prefix variable in getTable() and use these tables with a prefix. Is there any obstacle that i need to consider? If not i could prepare PR for this. What do you think?

Hermes update breaks CRM

Fatal error: Class Crm\ApplicationModule\Hermes\HermesMessage contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Tomaj\Hermes\MessageInterface::getRetries) in /workspace/crm/vendor/remp/crm-application-module/src/hermes/HermesMessage.php on line 8

LocaleAwareInterface incompatibility by TranslatorInterface newer version

The application will not work by default, because of interfaces incompatibility

Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)

It's present on fresh project. This erros is present even on other project, for example SSO https://github.com/remp2020/remp/tree/master/Sso

To fix this is important to downgrade this packages in composer.json files on local project for now

        "symfony/console": "^4.4",
        "symfony/translation-contracts": "^1"

But of course this should be better fixed on remp's side.

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.