Comments (5)
I'm sorry, I don't quite understand, how does this break revisions? Any file not ending in .sql should be ignored by dbv.php, .DS_Store files aren't supposed to appear in the revision script listing.
from dbv.
Here are the steps I done to create the bug:
- Create Folder 1
- Create new file 'test.sql'
- Opened DBV and expanded revision #1
- Was unable to run selected revision (No errors returned) unless I manually deleted DS_Store
Pic of DS_Store appearing: http://i.imgur.com/yxTsU.png
from dbv.
Hmm, do you have the latest version? Because this shouldn't happen since 988d865. Please update to the latest version https://github.com/victorstanciu/dbv/tags and let me know if you still have this problem.
from dbv.
yes I am using version 1.0.3. I had a look and it seems as if the _getRevisionFiles method in the DBV class is just looping around and returning every file in the specific revision folder. Line 353 needs to be changed from:
if ($file->isFile()) {
to the same as you have in the _getDiskSchema method:
if ($file->isFile() && pathinfo($file->getFilename(), PATHINFO_EXTENSION) == 'sql') {
I would submit a pull request but I don't have git installed on this computer.
from dbv.
Oops, you're right, I forgot to add the check to that method too. I commited 6d00ee2 right now, you don't have to fork/pull request. Thank you for submitting the issue!
from dbv.
Related Issues (20)
- All On Disk set to "No" HOT 3
- Feedback for errors in Revision scripts HOT 3
- Is this project abandoned? HOT 1
- data changes
- why it it too slow? HOT 1
- HTTP Authentication not working HOT 2
- use multiple databases
- GitHub - Integration
- Need for other Adapters?
- Website is currently down HOT 1
- Question for sigle user (From newbie)
- Problem: Same name for stored procedures and tables
- How to configure sql server adapter?
- Expired certificate on https://dbv.vizuina.com/ HOT 1
- Integration with dbdiff HOT 2
- css attempts to load google font over http HOT 1
- Suggestion for non-linear changes
- [Question] [Best Practices] Should I create a revision too when I create a new table
- [Question] [Best Practices] How to store initialization data for tables
- Cannot see the project website HOT 2
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 dbv.