Questions tagged [database-migration]

database-migration is the process of transferring data between storage types, formats, or computer systems. Also refers to migrating the database from one vendor to another, or to upgrading the version of the database software.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
33 views

Migration from PostgreSQL 9.x to PostgreSQL 15.x [closed]

I am working on analyzing the code changes for migration from PostgreSQL 9.x to PostgreSQL 15.x Please let me know if know any predefined functions that work on PostgreSQL 9.x but will Not work on ...
postgresql_q's user avatar
-1 votes
0 answers
29 views

Apply migrations at runtime in EF Core

I have the following code in startup class to apply migration during runtime using Microsoft.EntityFrameworkCore; using Repositories.Contracts; using Repositories.EntityFramework; using Repositories....
user989988's user avatar
  • 3,034
0 votes
0 answers
17 views

Does SQL Server Migration Assistant (SSMA) link one database to another permanently (Linked Server) or is it a one time migration?

I read about the possibility of using SSMA to migrate tables in Oracle to a SQL Server Instance. It looks pretty easy, and robust. However my issue is that I need the connection to be permanent, for ...
moltke_colombia's user avatar
0 votes
0 answers
11 views

Database table keeps reverting back to former state (MySQL AWS RDS)

I've been observing some weird behaviour in my database tables for some weeks now. I'm using NodeJS + Typescript along with a MySQL DB (on AWS RDS) + TypeORM. In my data-source.ts file synchronize was ...
Lex Nwimue P.'s user avatar
0 votes
0 answers
33 views

iOS RealmSwift DB Migration without hardcoding

I was migrating from Obj-C realm to RealmSwift. I have some changes in primary keys and data types I used following code, migrationBlock: { migration, oldSchemaVersion in if (...
Vishnu's user avatar
  • 1
1 vote
0 answers
14 views

Check for the migration in ASP.NET MVC framework

enter image description here An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Failed to load configuration from ...
Riya Swani's user avatar
0 votes
0 answers
33 views

Migrate from IBM DB2 iSeries database to PostgreSQL [closed]

What about solutions for Migrate from IBM DB2 iSeries database to PostgreSQL? Maybe someone have experience of such task. I search tools for automating migrate from IBM DB2 stored procedures to ...
Владимир Зуев's user avatar
0 votes
0 answers
19 views

Connection could not be created with Liquibase on to MySQL -> Communications link failure

For some reason I can't run my liquibase against my database, I am not sure where I am going wrong here. The error I am getting is about driver: Unexpected error running Liquibase: Connection could ...
Mabel Oza's user avatar
  • 567
0 votes
0 answers
36 views

Sybase to MSSQL migration: Lock Datarows while create table

I am migrating a Sybase DB to a SQL Server DB. I can see that existing Sybase tables have lock datarows or lock allpages specified along with create table statement something like this: create table ...
CyberMafia's user avatar
1 vote
1 answer
34 views

How do I perform the Android Room Database migration by changing existing data types?

I use the Room Database in my Android app that provides a table of Car as follows: @Entity(tableName = "Cars") data class Car( @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "...
Mark Delphi's user avatar
  • 1,402
1 vote
1 answer
25 views

Foreign Key Violation In Prisma Migration with PostgreSQL

I have a project using Prisma with PostgreSQL. I am trying to write a migration that inserts some data. The table has a foreign key to another table. The data I am inserting has a valid foreign key (...
Captain Condor's user avatar
0 votes
1 answer
14 views

How to migrate data on nestjs on prod by typeorm without use .env file

I use nestjs and typeorm migrate data. I use config look like: const baseDir = process.env.NODE_ENV == 'prod' ? 'dist/src' : 'src'; export const makeDataSourceOptions = (): DataSourceOptions => { ...
BaoTrung Tran's user avatar
0 votes
1 answer
26 views

During Android's Room migration, it sets the value to 1 instead of using the default value of 0

I run some migrating tests. All I want now is to create a new table with only one column set to a default value of 0: @Entity data class FirstLoad ( @ColumnInfo("isFirstCreated", ...
Евгений s's user avatar
0 votes
0 answers
47 views

EntityFramework Core: Migration doesn't add new fields to DB and create wrong migration file

I'm writing my dotnet console project, using Entity Framework Core, when I added new fields in my Model, created migration and updated my DB, the new fields did not appear in the database and the ...
harrypotter's user avatar
-2 votes
0 answers
6 views

How the Database column addition, deletion and updation from the java application without application restart

I am making one java POC for database table column addition, deletion and updation at runtime and it shouldn't required the application restart. requirement are as follows: application start with the ...
Mahesh's user avatar
  • 1
0 votes
0 answers
10 views

Mikro-ORM Keeps Generating Unwanted Migrations for text[] Column Type in NestJS

I'm using NestJS along with Mikro-ORM and PostgreSQL for my project. I've run into an issue where Mikro-ORM continuously generates migration changes for certain fields even when there are no changes ...
Philipp Schöler's user avatar
1 vote
2 answers
44 views

Is there any tool available to migrate Oracle tables to Cassandra DB?

How can the Oracle Database Schema, Tables, and Procedures be migrated to Cassandra? Any tool available to do this work?
Srinivasan Duraisamy's user avatar
0 votes
0 answers
25 views

How can I solve the error "Detected applied migration not resolved locally". I use a database migration job in jenkins where flyway is involved

In jenkins I get the following error when I invoke flyway enter image description here So the error says that the script "202011020927" cannot be found. Flyway looks at my jenkins workspace ...
DrinkWaterEveryDay's user avatar
1 vote
1 answer
53 views

Efficient approach to remove the majority of rows from a PostgreSQL table

I have a table in my Postgres database with approximately 4 million rows, and I need to reduce it to around 30,000 rows while preserving the original IDs due to foreign key references. The condition ...
bahri's user avatar
  • 21
-2 votes
0 answers
45 views

why is this git bash not running in a loop?

i have very few experience with macOS and the same is true for bin bash. So I copied some stuff from internet: I'm trying to build a pre checkout skript to rollback migrations which are not present in ...
Charliexyx's user avatar
0 votes
1 answer
46 views

copy column from one table to another during migration in room kotlin

I need to copy values from one column in one database and copy them to another newly created column in another database. I was able to create a new column using auto-migration. But got stuck with the ...
jane's user avatar
  • 94
0 votes
0 answers
26 views

Trying to do a postrgres database migration using AWS DMS. Have successfully done full load but can't do full load + CDC

I'm trying to complete a project of doing a postgres database migration from a linux amazon EC2 instance to RDS PostgreSQL. I have sucessfully completed a full load migration but I now want to delete ...
MikeMac's user avatar
  • 47
1 vote
0 answers
83 views

Faster way to copy a large PostgreSQL table into a new table with Ruby on Rails migrations

I'm working on a Ruby on Rails project with a PostgreSQL database, and I have a large table with millions of records. I want to copy this table into another table named new_X. I want both tables to be ...
bahri's user avatar
  • 21
0 votes
0 answers
17 views

Different DB schemas AWS Database Migration Service

I have two Databases, one is target and other is source. The schema and table structures of DBs are entirely different. I want to migrate all data from source to target DB using AWS DMS. Is there a ...
zahidullah's user avatar
0 votes
0 answers
9 views

when i try to build the add migration method on the nuget package console that appears to me

An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Failed to load configuration from file 'C:\Users\tariq\Pictures\...
Tariq's user avatar
  • 1
0 votes
0 answers
12 views

Addressing Orphaned Rows During PostgreSQL Data Migration

Version - PostgreSQL 10.21, compiled by Visual C++ build 1800, 64-bit Platform - Windows When migrating data from PostgreSQL 10.21 to 14.7, during the dump process, we encountered an issue with ...
rootcause000's user avatar
0 votes
0 answers
20 views

Addressing Table Corruption Issues Arising from Abrupt Server Shutdown During PostgreSQL 10.20 to 14.7 Migration

During the PostgreSQL migration from version 10.21 to 14.7, we encountered an issue caused by corruption in a specific table. Upon checking the logs, we noticed numerous instances of the server ...
rootcause000's user avatar
0 votes
0 answers
17 views

Count Mismatch Challenges During PostgreSQL Database Migration: Causes and Solutions

Version - PostgreSQL 10.20, compiled by Visual C++ build 1800, 64-bit Platform - Windows Regarding PostgreSQL, during the migration from PG 10.20 to 14.7, we will perform a sanity check on the ...
rootcause000's user avatar
0 votes
0 answers
45 views

PermissionError: [Errno 13] Permission denied: '/app/core/migrations/0005_recipe_image.py'

when i am trying makemigrations on dockerised django application, got this permissionError Here is Dockerfile: FROM python:3.9-alpine ENV PYTHONUNBUFFERED=1 WORKDIR /app COPY requirements.txt ...
joyal's user avatar
  • 3
0 votes
1 answer
51 views

Room Database reverse migration

I'm currently working on Application, and I'm interested in finding the most efficient and reliable approach to reverse migration of the database. I've done some research, but I would greatly ...
user avatar
0 votes
0 answers
20 views

Unable to test target end point of postgre. Getting fatal error

I am trying to migrate database using DMS. I have source as MySql and target as postgres. I have created endpoint and tested for MySql. It does not have any problem. However, when I am trying to ...
Vivek Reddy's user avatar
-1 votes
0 answers
25 views

AWS DMS RDS PostgreSQL to MYSQL

I am trying to use AWS DMS to migrate our PostgreSQL to MySQL both of which are hosted in AWS RDS. PostgreSQL version = 14.0 MySQL version = 8.0 Below are the steps I followed: created a replication ...
Saurav Kumar's user avatar
1 vote
1 answer
39 views

Migrating NON CDB to PDB with minimal downtime

I am doing a migrating from 19.11 non-CDB on a local file system to 19.11 Pluggable Database (PDB) on Automatic Storage Management (ASM) on same server. I tested: CREATE PDB WITH NOCOPY DATAPUMP ...
user22476323's user avatar
1 vote
1 answer
27 views

Devart to ODP.NET -> ORA-08177: can't serialize access for this transaction

I am a beginner in everything related to connectors, db, etc. My company has a Devart connector for the database and we are trying to upgrade using ODP.NET. When I change everything and try to restart ...
Victor Amell's user avatar
0 votes
0 answers
28 views

Neo4j migration from 5.5.0 to 5.11.0 - Failed to invoke procedure `apoc.cypher.mapParallel2`: Caused by:RuntimeException: Error polling, timeout

I'm trying to migrate from Neo4j 5.5.0 to 5.11.0 (also tried 5.10.0) The following query works fine on Neo4j 5.5.0: MATCH ( childD:Vacancy ) WITH collect({`childD`: childD}) as childDDgRdgd CALL ...
alexanoid's user avatar
  • 24.3k
1 vote
1 answer
22 views

PHP Laravel migration file does not create relation

I want to create a relation between the users-table and my other tabe in php laravel. After migrating this with the command: php artisan migrate:fresh --seed nothing happens The migration file: $...
stevan06's user avatar
0 votes
0 answers
37 views

Neo4j Access to record went out of bounds of the page. Migration Neo4j 5.5.0 to 5.10.0

I'm attempting to upgrade from Neo4j 5.5.0 to Neo4j 5.10.0, but currently my tests on this version are failing with the following error: org.neo4j.driver.exceptions.DatabaseException: Access to record ...
alexanoid's user avatar
  • 24.3k
0 votes
1 answer
21 views

Django migrate uses wrong database backend for some migrations

Summary Consider a project with two local database configurations, called 'sqlite' (default) and 'postgresql'. Running migrate --database=postgresql successfully migrates the first few migrations to ...
djvg's user avatar
  • 11.8k
0 votes
0 answers
33 views

How to migrate mongodb data from mongodb 5.0 to mongodb 6.0 database

I need to migrate data from a mongodb 5.0 database replica set to digital ocean mongodb 6.0 replica set. What is the best approach to do this? Do I need to upgrade the current server to mongodb 6.0 ...
kenn3th's user avatar
  • 1,187
1 vote
1 answer
50 views

Migration TimeScaleDB using GoLang take too long?

My duty is migration a 1m5-rows-table from old TimeScaleDB to a new one. i did select with quantity is 200, offset started from 0, then load them into RAM and did the INSERT thing. i set the time to ...
ChienDuyNguyen1702's user avatar
0 votes
0 answers
47 views

laravel-testing and table_name = migrations and table_type = 'BASE TABLE')

$this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($...
Hamd Mahmood's user avatar
3 votes
2 answers
697 views

How to migrate Redis RDB file created with a module to a deployment without that module? (RedisGraph no longer in Redis Stack versions 7.2+)

When I try to load a Redis database with Redis Stack 7.2 from an RDB file which has been created with a prior version of RS, it does not load, printing this error: * Loading RDB produced by version 6....
goose_lake's user avatar
0 votes
0 answers
22 views

AttributeError: module 'cx_Oracle' has no attribute 'errors'

I am migrating database schema from PostgreSQL to Oracle, and while doing this I am getting this error. except cx_Oracle.errors.DatabaseError as e: AttributeError: module 'cx_Oracle' has no attribute '...
Raja Rakshak's user avatar
0 votes
0 answers
30 views

Import redis database to python. Migrate db from redis to mongodb

I have a .rdb file (redis database file). How to import it to python for data analysis? Also, how to migrate my database from redis to mongodb? Tried using "rdb --command json dump.rdb" to ...
Ankur Singh's user avatar
0 votes
1 answer
115 views

Android Room error: Schema '1.json' required for migration was not found at the schema out folder

I want to implement autoMigrations with Android Room @Database( entities = [User1Message::class], version = 2, autoMigrations = [AutoMigration (from = 1, to = 2)], ) abstract class ...
GHH's user avatar
  • 1,725
1 vote
0 answers
22 views

Unable to create constraint - Table with two foreign keys and which at the same time forms its primary key [duplicate]

Good morning I don't see why sql server (with EF core) does not allow me to create the following table: CREATE TABLE [UserRoles] ( [UserId] int NOT NULL, [RoleId] int NOT NULL, CONSTRAINT [...
tariq hasdi's user avatar
0 votes
0 answers
21 views

how to use Big Query Migration Services with GCO

I want to use Big Query Migration Services (BQMS) with GCP. can anyone help me to setup on local or use with GCP itself. #GCP Object conversation in batch. local setup if possible. Possible set of ...
vishva's user avatar
  • 19
0 votes
0 answers
72 views

Flyway: Baseline won't work on existing DB

I'm trying to: Add my existing DB to flyway by creating a "schema-history-table". Apply migration scripts to update the schema. I'm deploying my code on a test server and I would expect ...
Fuby1000's user avatar
1 vote
0 answers
99 views

Realtime Supabase not working when I do a migration with Prisma

i'm working on a project using nextjs, react, typescript, Supabase and Prisma. And I Plan to build a chat with Realtime. The Realtime database work when I create it, but when I do a migration with ...
meknessi's user avatar
0 votes
1 answer
59 views

I got the certificate error when I want to migrate my database

I have an ASP.NET Core 6.0 MVC web app project, and my Entity Framework Core version is 7.0.9. For example this is one of my class: using System.ComponentModel.DataAnnotations.Schema; using System....
sadegh's user avatar
  • 115

1
2 3 4 5
87