remp2020 / crm-skeleton Goto Github PK
View Code? Open in Web Editor NEWCRM skeleton application with core modules
License: MIT License
CRM skeleton application with core modules
License: MIT License
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...')
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?
Hi @rootpd,
still waiting to fix this issue, why it took so long? It's a blocker and payments presenter is not usable
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.