4,381 questions
0
votes
0
answers
31
views
Error message when doing Update-Database in Blazor using VIsual Studio [duplicate]
when I run Update-Database command after creating a new migration, I get the following error:
Introducing FOREIGN KEY constraint 'FK_Booking_Employee_EmployeeId' on table 'Booking' may cause cycles or ...
Advice
0
votes
0
replies
55
views
How apply airflow db migration and save them into postgress docker image?
I use docker-compose to run airflow. Postgres section is
postgres:
image: postgres:12.16
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
healthcheck:
test: [ "...
1
vote
0
answers
43
views
WaveMaker 9.4 to 10.6.6 Migration: Type Mismatch Errors (Integer to BigInteger) in Generated Java Code
Problem Summary
I'm attempting to migrate a WaveMaker project from version 9.4 to 10.6.6 and encountering persistent compilation errors related to type mismatches between Integer and BigInteger in the ...
0
votes
1
answer
75
views
How to squash multiple DDL migrations into one script in Flyway Community Edition?
I’m using Flyway Community Edition and want to squash a long chain of DDL migrations into a single script to simplify migration history.
I’d like to remove the old DDL files, but we already have ...
1
vote
1
answer
66
views
Django migration successfully applied, but the database is not modified
I need to use a secondary SQLite database in a new Django project. This database is on the local filesystem but outside the Django folder. Its path is specified in a .env file at the root of the ...
2
votes
0
answers
62
views
Migrations & Seeders & Command for production data [duplicate]
Recently after some research I came up with a question: how to handle default / initial data population in a Laravel project which goes live: should it go into seeders or migrations? I've seen two ...
2
votes
1
answer
94
views
Managing read-only entities in EF Core
I have two DB contexts. Each manages its own read-write entities, but sometimes an entity r/w in one needs to reference in a r/o manner entities managed by the other context.
Originally, I had ToTable+...
0
votes
0
answers
76
views
Liquibase problem with MD5SUM function for Cassandra migration
I'm trying to automate Cassandra DB migration with using Liquibase in my Kotlin project. I'm using such stuff:
liquibase-core:4.30.0
liquibase-cassandra-4.30.0.jar
cassandra-jdbc-wrapper-4.13.1-...
2
votes
0
answers
90
views
Upgrade strapi v4 to v5 database
I have updated my strapi v4 to v5 in the local environment, and everything is goes well, so I pushed the code to the server to update my server strapi, but I notice it doesn't update my DB and ...
0
votes
0
answers
46
views
How to use custom query for data migration through SSMA Console
I’m using SSMA to migrate both schema and data to SQL Server.
I've prepared an XML file to feed into the SSMA console executable by command SSMAforDB2Console.exe -s "path/to/xmlfile", which ...
0
votes
1
answer
631
views
How to autogenerate and apply migrations with alembic when building a docker image?
I have an already existing docker image of my fastapi application. I have applied alembic migrations to it as well. However, every time I do a model change I have to run alembic revision -m "...
0
votes
0
answers
54
views
How to execute data transformation scripts (like password encryption) during Prisma migration?
I'm using Prisma with MySQL. My current database stores passwords in plain text, and I need to migrate them to bcrypt hashes.
When deploying this change via prisma migrate dev, I need to:
Update the ...
2
votes
1
answer
79
views
How to transfer fields to a database where one field is foreign?
I can't add fields to the profile, user_id seems to work, the values are correct, but it doesn't add to the field, but if I change it manually in mysql, it changes the value without errors, what ...
0
votes
0
answers
45
views
Move only one Sharepoint content database to a other SQL Server
I have a Sharepoint farm (2019) that contains only one SQL Server where all the databases are located - both configuration and content databases. I want to move a couple of content databases to a new ...
0
votes
1
answer
205
views
Alembic: "Can't locate revision" error after deleting migration file and recreating migration
I accidentally deleted the migration file before running alembic upgrade head.
Then I recreated the migration using the same command again. This time, Alembic generated a new revision UUID.
When I try ...