Questions tagged [migration]
An action of moving between major versions of any framework, product or language, or, just as commonly, alteration to the data schema of an application. This might involve modifying existing data to make it work with the new version.
10,298
questions
0
votes
0
answers
4
views
Can't change data type in database using Laravel migration
I'm trying to change the data type (from string to boolean) of 5 columns in my database, but it's showing an error that i have no idea what is the meaning.
My migration is this:
<?php
use ...
0
votes
0
answers
17
views
SSMA tool - Do we get Data Migration Report after giving "STOP" during migration process?
We are trying to migrate table from Oracle database to SQL Server using SSMA tool (SQL Server Migration Assistant). We are in the final step 'Migrate data', 99% of the tables were migrated to target ...
0
votes
0
answers
14
views
Django error: Relation "<name>" already exists
I am attempting to run migrations on an existing model where i am adding a history field/table via the django-simple-history. I initially ran made and ran the migrations and then ran python manage.py ...
0
votes
0
answers
5
views
Adding ActiveRecord's migration generators to a non-rails project
Is it possible to get the Active Record migration generators that Rails has to work in a project that is not using Rails -- perhaps via rake tasks.
I have a Ruby project that is using ActiveRecord but ...
0
votes
0
answers
8
views
Specific issue with migrating MySQL database into Digital Ocean
I'm pretty confused - I'm not too used to using command prompt for anything but I've recently been forced to do it as I'm trying to host my database with Digital Ocean.
I'm currently attempting to ...
0
votes
1
answer
11
views
Row level changes captured via AWS DMS
I am trying to migrate the database using AWS DMS. Source is Azure SQL server and destination is Redshift. Is there any way to know the rows updated or inserted? We dont have any audit columns in ...
0
votes
0
answers
7
views
docker postgresql recover data folder
I'm trying to restore postgresql pgdata folder on a new postgresql/postgis instance running on docker. In fact i had a postgresql/postgis cluster installed on centos7, soon i'll be migrating to new ...
0
votes
0
answers
12
views
populating django database using migrations
I created an api that allows to read some data with filters based on the models I created.
and launch the database is empty so I created a script to populate the database.
I then dockerized the app ...
1
vote
1
answer
42
views
Gradually migrating ASP.NET website to use solely C#
I'm responsible for maintaining a legacy ASP.NET website (not a web app) which contains a sizeable mix of VB and C#. I'm hoping to migrate the VB parts over to C# to have a bit more consistency.
Now I ...
-2
votes
0
answers
21
views
Migration from SQL Server 2000 to SQL Server 2012 - Invalid character value forcast specification
I've migrated a SQL Server database from SQL Server 2000 to SQL Server 2012. As first step, I migrated it to SQL Server 2008 as an interim step. The ODBC Connection went with test completed ...
0
votes
1
answer
12
views
Gradle Project Always Tries to Use older version of dependency
I have a project structured like this:
-Project ROOT
-TestProjectDir
-gradlew
-build.gradle
-ServiceProjectDir
-gradlew
-build.gradle
My laptop gradle version:
7.4.2
Java version:
...
0
votes
0
answers
16
views
Alternative to "JdbcTemplate" on migration from "Spring-boot" to "Quarkus"
I'm new to Quarkus and I'm analysing the migration viability of a quite complex "Spring Boot" application.
One of the biggest challenges we have is regarding database access, which is ...
0
votes
0
answers
18
views
Disable automatic ID table generation functionality in DJango
I'm having a problem trying to get my model to generate a migrations with the ID, which I configured inside the model.
class Produtos(models.Model):
STATUS_PRODUTOS = [
('A', 'Ativo'),
('I', '...
-1
votes
0
answers
26
views
issues with migrating corda node database tables from MSSQL to PostgreSQL
edited my earlier post and explain the use case elaborately.
use case:
currently our production corda nodes use corda 4.0 and mssql server as database. we want to upgrade to corda OS 4.9. As corda OS ...
-1
votes
2
answers
19
views
Foreign Key Constraint Error in Laravel Migration
I have searched numerous questions on this error and cannot seem to fix it no matter what i try.
This is my error:
Syntax error or access violation: 1072 Key column 'user_id' doesn't exist in table (...
0
votes
0
answers
13
views
MySQL to PostgreSQL convert issue - pgloader on WSL
I'm trying to convert MySQL 5.6 to PostgreSQL 14 via WSL pgloader with below command.
pgloader mysql://root:password@172.18.160.1/dbname1 postgresql://postgres:root@172.18.160.1/dbname1
But it's ...
0
votes
0
answers
8
views
How can I completely duplcate a docker environment including persistent data and ports
I am using Nginx Proxy Manager as my reverse proxy, it works well and really like the UI/Features.
I need to migrate it from my current host to a new one. How the heck do I go about it? I need to copy ...
0
votes
1
answer
32
views
how to export all projects inside a group in gitlab
we are migrating from self hosted gitlab to gitlab.com subscription. We have parent 28 group and under these groups there are multiple subgroups and projects.
I know I can export one group and it will ...
0
votes
0
answers
4
views
Standard Jenkin (LTM)from linux server to cloudbees migration
Recently we have a requirement to move all the jobs from linux jenkins (standard) or LTM to cloudbees .
Could you please help me with step by step what n all we should take care ??
We are using aws ...
0
votes
0
answers
12
views
Issue with Knex migration while migrating view
I am not sure whether is it possible to migrate views or not, but this knex migration is failing. Even though I have created schema and migrated tables without getting any error. When I run the ...
0
votes
0
answers
14
views
SAP: Move scoped objects form one developement stage to the next without RFC connection
I have reached a point where I don't know how to move further.
I am an Intern so please be considerate if I dont't ask the question on the quality level like they are asked usually on Stack Overflow.
...
0
votes
1
answer
29
views
Doctrine doesn't recognize column after renaming
I am using PHP 7.4 with the following versions of Doctrine and other tooling (excerpt from composer.json):
...
"doctrine/orm": "^2.11",
"doctrine/dbal": "^3.3",
...
0
votes
0
answers
29
views
Django: no such table: users_company
i was trying to create a user's company profile but i got the following error:
OperationalError at /admin/users/company/
Exception Value:
no such table: users_company
I think theres something ...
-3
votes
2
answers
31
views
set size of integer fields value limit in migration file laravel 7,8,9
set size of integer fields value limit in migration file of Laravel (7,8,9).
I am trying this code. but it's not work
$table->id();
$table->string('name');
$table->...
0
votes
1
answer
30
views
Rails cannot run remove_index
I accidentally added indexes as so:
class AddRandomIndices < ActiveRecord::Migration[5.0]
def change
add_index :charges, :pp_charge_id
add_index :new_refunds, :pp_refund_id
add_index :...
0
votes
0
answers
19
views
Problem with deleting a migration in SQL Server (connected with Visual Studio 2022) [duplicate]
I'm creating a .NET Blazor project. I made a mistake on my code in Visual Studio 2022. And then I created a migration, and updated the database (dotnet ef database update) in Visual Studio cmd line.
I ...
0
votes
0
answers
15
views
Getting error "Unknown error during import: <class Keyerror> : 'Field1' at row 2 resolve other errors first" in odoo 14
I have a custom module in which i want to import some of the updated data but getting an error
Unknown error during import: <class 'KeyError'>: 'field1'
at row 2 Resolve other errors first
I ...
0
votes
0
answers
7
views
How to run migrations with dynamic schemas?
I'm using Sequelize (Postgres) and I'm trying to dynamically create schemas and run migrations in them. In other words, I'm not using sequelize.define, because I have no purpose for it. I create the ...
0
votes
0
answers
7
views
Database-style migrations for OS files
I'll admit this is an odd question as I'm writing, but I'm curious if such a solution exists or not. Basically, I want to run database-style migrations on files that live on the operating system ...
0
votes
0
answers
4
views
AWS - DMS for Postgres RDS cutover strategy
To prepare for our Postgres to Postgres migration we have configured a DMS task and a target DB with migrations pre applied.
We tested DMS and a cutover to our new database in a test environment. ...
0
votes
1
answer
36
views
Migrate Vaadin 8 to 14: Widgetset 'xx.MyAppWidgetset' does not contain an implementation for com.vaadin.mpr.MprUIContent
We are migrating from Vaadin 8 to Vaadin Flow 14. In order to migrate piece by piece, MPR is used. We use Flow 14's Route for navigation. For each view we created a MprRouteAdapter. This is proved a ...
-1
votes
0
answers
10
views
Migrating files from on-premises file server to share point
so my company inherited a file server a few years back from a company they bought. We are trying to move towards SharePoint. I wanted to see if anyone knows of a way or a tool to migrate everything ...
0
votes
1
answer
39
views
Can i use Azure Migrate tool to migrate IBM MQ from on-premise to azure cloud
We plan to migrate our on-premise MQ servers hosted in VMware servers to azure VM. Can I use the Azure Migrate tool to migrate IBM MQ from on-premise to Azure cloud
-1
votes
0
answers
25
views
Issue while Migrating from spring-boot-starter version 2.1.1.RELEASE to 2.5.13
Issue while Migrating from spring-boot-starter version 2.1.1.RELEASE to 2.5.13 and facing error while making application up Æ
APPLICATION FAILED TO START
Description:
Parameter 0 of method ...
0
votes
1
answer
28
views
"spring-jdbc" and "spring-web" compatibility with Quarkus
I'm new to Quarkus and I'm analysing the migration viability of a quite complex Spring Boot application.
This post raise some good questions regarding our intention on doing so with such application, ...
-1
votes
0
answers
22
views
Django migration conflict between git branches
Is there any way to adequately merge migrations in django if they happen to be in two different branches in git? So far we have just avoided this
0
votes
0
answers
13
views
when i remove a field my manage.py migrate raise django.db.utils.ProgrammingError
I got a problem with python manage.py migrate when I removed the field name from the oldest model.
python 3.8
Dajngo 4.0.4
PostgreSQL 12
ubuntu 20.04
oldest model
class BaseModel(models.Model):
...
0
votes
1
answer
32
views
Is it safe to use default value with not null on a new column?
We have a Rails app powered by Postgresql v11.4 where I want to add a new column with a default value and a not null constraint like below:
add_column :blog, :published, :boolean, default: false, null:...
-2
votes
0
answers
61
views
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test_app.products' doesn't exist
This is my controller:
class ProductController extends Controller
{
public function showProducts($id)
{
return view('EX1', ['id' => $id]);
}
public function ListProducts() /...
0
votes
1
answer
14
views
Migration build succeeded but Migration folder does't appear in solution explorer
i've goth problem with migration. I was browsing a lot, but I can't find solution.
The problem is when i create migration using add-migration [migrationName] command,
a Migrations folder is created ...
0
votes
0
answers
21
views
Tomcat 10 : [Ljava.lang.Object; and [Ljava.security.cert.Certificate; are in module java.base of loader 'bootstrap') [duplicate]
So we are migrating from jdk8 to jdk17 (openJDK) and from Tomcat8 to Tomcat 10.0.20 and when running the code we get following error:
class [Ljava.lang.Object; cannot be cast to class [Ljava.security....
0
votes
0
answers
34
views
Why does symfony remove autoincrement in migrations?
Available:
Symfony 5.4
PostgreSQL 13
Created an entity where the id field is an auto-increment
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\Column(name="id", ...
-1
votes
0
answers
27
views
more than one project was found in directory 'ecommerce.web'. specify one using its file name
I was developing a Ecommerce Website. I tried to create migration for my project but when i set the updated migration command like this "dotnet ef migrations add InitialCreateTable --context ...
0
votes
1
answer
32
views
Cannot access value at 'user.email_activities'
I have models/user.rb that has association with email_activities:
class User
.
.
has_many :email_activities
end
and models/email_activity.rb:
class EmailActivity
.
.
belongs_to :user
end
...
0
votes
1
answer
21
views
ASP.NET Core Web API - update-database failed due to provider: SSL Provider, error: 0
In my ASP.NET Core-6 Web API using Entity Framework, I have this code:
I am using IdentityDbContext.
ApplicationDbContext:
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{...
-2
votes
0
answers
11
views
migration of gerrit from one server to another
Hi There I want to migrate Gerrit projects from one server to another Gerrit server
for example, I have code in server A and I want the same code in server B also with Gerrit commit history
2
votes
1
answer
24
views
Migration in Room with an Android Array of Strings
I have a database in Android with Room from which I have deleted a column. I was doing the migration, and I saw that it was not as simple as doing a DROP of the deleted column.
Then I have seen that I ...
0
votes
0
answers
13
views
Python. How to import data to Alembic migration
I develop api with Flask, SqlAlchemy, Alembic and other. My project srtucture basic and looks like that :
├───alembic
│ ├───versions
│ ├───first_migration.py
│ ├───second_migration.py
├──...
0
votes
0
answers
47
views
I am getting "ERROR webdriver: Request failed with status undefined due to TimeoutError:" while executing the runner command
I tried to upgrade my webdriverIO framework to the latest version.
Old Setup:
WebdriverIO - V6
NodeJS (version: 12.16.0 ) and NPM (version: 6.5.0)
New setup:
WebdriverIO - v7NodJS (version: 14.15.1 ...
1
vote
0
answers
26
views
Migration JDK8 to JDK11 : java.lang.ClassCastException [Ljava.lang.String; are in module java.base of loader 'bootstrap') [duplicate]
I have a very strange result with a ClassCastException in JDK11 on a specific JDK8 code.
private String[] schemasLocal;
@Before
public void init() {
schemasLocal = (String[]) Arrays.asList("...