Comments (2)
@antonsamper I'm curious, why would you ever want to do this? I worked with Rails for a while and all migrations ran on all environments.
from loopback-component-migrate.
@sundeepgupta In general, I agree that migrations should run on all environments but it does depend on what the migration is doing. In my case I was using them to add data to the database. At the time, i was trying to setup up a fully functional dev environment (including dummy data) so that coworkers could get the app running without having to manually add anything. However, as this was dummy data, i didn't want it in production.
I know i could add environment checks in the migrations but i thought it could be quite nice to take the existing concept of appending the environment name to the filename.
from loopback-component-migrate.
Related Issues (15)
- Generate migration as a difference between current db schema and loopback metadata HOT 1
- Accept dataSource as a parameter
- Update dependencies to fix security vulnerabilities
- Migrations table not being created with MySQL datasource HOT 7
- An in-range update of loopback is breaking the build 🚨 HOT 16
- An in-range update of commander is breaking the build 🚨 HOT 5
- An in-range update of ghooks is breaking the build 🚨 HOT 1
- How to generate migration files?
- How to run migration from cli HOT 2
- An in-range update of bluebird is breaking the build 🚨 HOT 2
- Question: How do you implement this via CLI? HOT 5
- Callback not getting called (or promise not being returned) when there are no migrations to run HOT 1
- MigrationMap unused? HOT 2
- migrationsDir should accept relative path HOT 1
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 loopback-component-migrate.