database-migration Questions
6
We seem to have gotten our prisma migrations into a bad state. When we get the latest code and run
prisma migrate dev
we get
Migration 20210819161149_some_migration failed to apply cleanly to
the...
Footstalk asked 19/8, 2021 at 19:28
7
Solved
I want to write a Laravel Migration auto increment ID as a primary key. I want to start this ID with a another value rather than 1. How can I do so ?
The migration up() function:
public function...
Initiation asked 3/2, 2020 at 14:39
15
Solved
I have a Spring Boot Application with a couple Entity classes and I'm trying to implement database migrations with flyway. It appears that, on startup, Spring Boot is not running flyway at all.
He...
Enrichetta asked 5/5, 2020 at 17:53
2
Solved
I am working on migrations in Cakephp3, I want to rollback a specific migration, I know how to rollback a previous migration by using the follow way:
bin/cake migrations rollback
But I couldn't ...
Elevator asked 15/10, 2016 at 6:23
10
According to the documentation here:
https://docs.djangoproject.com/en/1.8/topics/migrations/ it says:
migrate, which is responsible for applying migrations, as well as unapplying and listing thei...
Faubion asked 1/5, 2015 at 1:4
6
Solved
In this code the table is created in the up method and deleted in the down() method. When I run the migration, the table is created but not deleted. In what way can I trigger the down method, so th...
Manama asked 1/3, 2018 at 18:40
5
Solved
This question has been asked a couple times but none of the solutions/documentation is working for me.
Scenario - I need to build a database from scratch and edit it with migrations all from code,...
Settle asked 24/5, 2018 at 11:1
4
Solved
Trying to check if a unique index exists on a table when preparing a migration, how can it be achieved?
Schema::table('persons', function (Blueprint $table) {
if ($table->hasIndex('persons_bod...
Peddler asked 25/8, 2017 at 13:54
2
Solved
Alembic has commands to upgrade and downgrade to a specific revision, e.g. on the command line:
alembic upgrade <target-revision>
And
alembic downgrade <target-revision>
Is there ...
Switch asked 4/5, 2016 at 18:25
1
just a follow-up question to this one
I have the app deployed to AWS Lambda, which works with RDS Database PostgreSQL, Lambda is called by API Gateway for processing external requests like
GET /api...
Toluidine asked 19/12, 2023 at 14:47
37
Solved
When I run python manage.py migrate on my Django project, I get the following error:
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.a...
Chorea asked 20/6, 2017 at 11:25
4
Solved
I am trying to use bulk_insert to insert data into an existing table (services) in my Postgres database. How do I instantiate this table object so I can do a bulk_insert with it?
I saw answers li...
Blackface asked 31/5, 2018 at 14:40
8
In my Rails 4 app I would like to collapse my migration files into one large file (similar to schema.rb) as it's time to do some housekeeping but I'm not sure on how to access the table in the data...
Bolanger asked 30/9, 2013 at 17:33
13
I'm close to having my project ready to launch. I have big plans for after launch and the database structure is going to change -- new columns in existing tables as well as new tables, and new asso...
Shrunk asked 14/1, 2014 at 3:47
18
Solved
This looks like a really common task, but I can't find an easy way to do it.
I want to undo the last applied migration. I would have expected a simple command, like
PM> Update-Database -Targ...
Convenience asked 10/8, 2012 at 15:14
12
Solved
I'm using ASP.NET Core 2 with Entity Framework Core 2.0.2. I created a context and Add-Migrations command in Package Manager Controller works fine.
However when Update-Database command is used, I ...
Grizzle asked 19/3, 2018 at 3:50
2
Solved
I'm trying to recover a project after a failed HDD. Lost the mysql information, so just have the project code.
I hoped to be able to put my database back together by using artisan migrate, but the...
Cuboid asked 4/2, 2014 at 18:55
3
So I'm setting up a Symfony 5 project and running the following commands to generate the database from entity annotations like this:
php bin/console doctrine:schema:validate
php bin/console doctrin...
Feasible asked 12/12, 2020 at 19:36
7
Solved
I am trying to run my first migration which creates a single table in a Heroku postgres database.
When I try to run knex migrate:latest --env development I receive the error
Error: Unable to ...
Janeljanela asked 13/1, 2017 at 11:14
2
Solved
Trying to migrate the database for an early project of mine to the cloud. Although the code that built everything is janky, the db structure and data itself are fairly sound. I could probably figur...
Mutazilite asked 19/4, 2019 at 4:10
13
Solved
I am using Laravel 5 and getting the following exception:
PDOException (1044) SQLSTATE[HY000] [1044] Access denied for user
''@'localhost' to database 'forge'
My database configuration file i...
Calondra asked 1/5, 2015 at 12:11
8
Solved
I have a Symfony project that is using the DoctrineMigrations bundle, and I have a really simple question: When I run a migration (e.g., when I'm pushing an update to production), how can I insert ...
Oldwife asked 7/8, 2015 at 12:58
6
I want to push my local postgresql database to heroku, using heroku pg:push command. The command looks like this: heroku pg:push mylocaldb DATABASE --app sushi according to the heroku document: htt...
Matelda asked 21/10, 2013 at 9:38
9
I have XAMPP installed and turned on which is how I access my phpmyadmin page. I have created a database in phpmyadmin called "firstdb".
I have also created auth in laravel files stored locally. ...
Zaragoza asked 16/4, 2020 at 3:58
4
Solved
I'm trying to change the max length of one of my columns in table reserves in one migration. The code looks like this:
public function up()
{
//
Schema::table('reserves', function($table){
$tab...
Perversity asked 21/4, 2016 at 21:19
1 Next >
© 2022 - 2024 — McMap. All rights reserved.