Comments (2)
@drfraker
I think I run into a similar problem. Looking into the code I see that the package only looks for the default connection inside database.php
config file. The database settings should be customizable. Would be nice to have these configurations inside the snipe.php
config file. This way I can create my own environment entries, and set up it all there.
from snipe-migrations.
Just set that up your database connection in phpunit.xml.
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="DB_DATABASE" value="testing"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
<env name="SCOUT_DRIVER" value="null"/>
</php>
Here is an example of working env settings.
from snipe-migrations.
Related Issues (17)
- False compatibility statement with laravel version 5.2 HOT 1
- Does not work with remote database host HOT 1
- PHP version `^7.1` or `^7.2`? HOT 4
- Is it possible to support Snipe Migrations on the DatabaseMigrations trait? HOT 3
- There is no default value for config('snipe.snipefile-location') HOT 3
- Windows-specific issues? HOT 5
- Add Tests
- Silently fails with exec() when mysql is not installed HOT 3
- Cannot use non default mysql port HOT 2
- Running tests results in "The "" directory does not exist." HOT 2
- Add postgres support HOT 3
- "PHP >= 7.1" but composer rejects 8 HOT 2
- Best way to integrate it with CI process ? HOT 1
- Show progress HOT 4
- Is this package still maintained? HOT 6
- SQLite support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snipe-migrations.