Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for migration tagged with
Search options not deleted

This tag is for general database questions. If you question is specific to SQL or NoSQL, use the corresponding tags instead.

0 votes
1 answer
143 views

Recurring database migration

I'm importing data from older website to new one using database migrations. I have created first as one of first steps of development phase of new site. … I.e. the one, that updates migration table in database at the end of migration process, changes its own timestamp and thus forces migration system to "think", that there's always a new migration to be …
trejder's user avatar
  • 2,406
1 vote
2 answers
2k views

Live data migration - double read vs double write

Either: Change all live writers to write new data to both locations Do a one-time migration of data from the old location to the new location Change all readers to read data from only the new location … writing new data to the old location or: Change all readers to read data from both locations, preferring the new location Change all writers to write new data to only the new location Do a one-time migration
Joe K's user avatar
  • 139
0 votes
1 answer
244 views

Should I skip some migrations on production in case of migrating a legacy database that has ...

The database schema is manually updated without any sort of migration script, hence I want to introduce a database migration schemes. … This single migration will generate the existing database schema from a database dump. After that each change on the database will be placed upon a new migration script. …
Dimitrios Desyllas's user avatar
0 votes
1 answer
655 views

Using DB migration tools within a Virtual Machine with Vagrant

I have used migration tools with Yii & Laravel in the past, but those tools aren't available as I'm using the old Zend Framework. … In a nutshell, I am looking for a solution that will allow all of my colleagues to be able to do the following: Use some form of database migration tool (supporting MySQL) to add/edit/remove tables and …
Zabs's user avatar
  • 167
2 votes
1 answer
701 views

Is it considered as best practice to use migration scripts for one-off large data manipulati...

I have inherited a project via laravel that uses its database migration mechanism coming from the framework. … script: use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ActionAwardee extends Migration { /** * Run the migrations …
Dimitrios Desyllas's user avatar
5 votes
1 answer
1k views

Is there a general pattern that could be used to describe Data Migration?

I have received the task to follow and take care of the whole data migration. … Technically it is everything clear, but I have to describe in a "proof of concept" the migration process. About data migration is there a general pattern that could be used to describe it? …
Francesco's user avatar
  • 547
3 votes
1 answer
366 views

Django Migrations: Binds data to code?

class Hero(Model): power = CharField(max_length=30, validators=[validate_power]) In the migration file, there will be: file web/migrations/0001_initial.py class Migration(migrations.Migration): … code, and that could be many files, and also changing migration code should not be needed). …
jpmelos's user avatar
  • 445
3 votes
2 answers
259 views

Handling changes to data types and entries in a database migration

While I'm moving from MSSQL to MySQL, I don't need to make any "live" changes, so this is not a production-level migration issue so much as a redesign. … While I understand how to do operations with regular expressions in non-database issues, my database experience isn't robust enough to know the best way to handle this. …
ramblinjan's user avatar
2 votes
2 answers
771 views

Isn't data migration a major benefit of MongoDB compared to the commonly used relational dat...

I was reading an old answer which was recently updated, and noticed that the author doesn't quote the simplicity of data migration as a benefit of MongoDB. … Am I missing something about the data migration in MongoDB compared to the data migration in most popular relational databases? Or is the simplicity of data migration still a huge benefit of MongoDB? …
Arseni Mourzenko's user avatar
4 votes
3 answers
2k views

Should I merge database migrations together before release?

in the database. … So I was thinking what if I roll back the database to the very first state, remove all migrations and then generate a new one, which will do only nessesary actions to bring a database to it's final state …
Exerion's user avatar
  • 151
1 vote
1 answer
253 views

An effective database migration pattern for many instances of the same app over a long perio...

How do you handle migrations to your database after a long period of time? … The closest I've seen is someone doing a sort of "rebase", where they delete the migration version table, and generate new SQL scripts from a database backup tool and call it version "0" from then on. …
thinkOfaNumber's user avatar
3 votes
1 answer
343 views

Managing Database version controlled migrations using a list/table

Idea A migration is a (name, up action, down action). … I'm open to other solutions provided they automatically detect or resolve migration conflicts and are simple. …
Dave's user avatar
  • 133
2 votes
2 answers
217 views

How to improve version control on database structure when migrations take long?

The normal answer to that is migration files, and we are already using the migration function of laravel. Soon, we find that some old project takes a long time in running the migration file. … Some columns that no longer exists in the latest version are still added and then deleted when running the migration file. Is there a way to do database version control in a better way? …
cytsunny's user avatar
  • 637
0 votes
3 answers
119 views

Strategy & Architectural Decision: Customer data migration between two companies

Resulting, customers from company B will need to be migrated to company A customer database, so that they can enjoy seamless experience by logging into app from A. … So, the question is more towards strategies that are followed to do customer data migration in such cases. …
Munim's user avatar
  • 119
0 votes
1 answer
318 views

Keeping "historical" migrations in Django-south

My gut feeling is that a fresh install should create the database "as it is", not go through every mistake that was made in the product lifecycle until reaching a stable condition. … The above scenario is just an example, but I'm interested in arguments about the general case: have fresh installs create the database as it is, or go through every migration ever done in the product lifecycle …
mgibsonbr's user avatar
  • 504

1
2 3 4 5
14
15 30 50 per page