Questions tagged as 'migrations'

1
answer

Migration change only the default value of a field - Laravel

I want to launch a migration that updates only the default value of a field, I tried the following: $table->string('mikrotik_rate_limit')->default('1048576/1048576'); $table->bigInteger('mikrotik_recv_limit')->default(1073741824)...
asked by 22.02.2016 / 19:39
1
answer

Insertion 1 for many is recording two records in the bank

I have the following classes: Usuario , Noticia , Bloco and Editoria . I had a One to Many relationship between the tables Noticia and Editoria , Noticia and Bloco . It works perfectly, b...
asked by 19.07.2014 / 02:05
2
answers

Execute a specific migration in Laravel 5.6

I need to run only migration within my laravel system, so as not to affect the rest of it. Excerpt from migration: public function up() { Schema::create('notifications', function (Blueprint $table) { $table->inc...
asked by 13.11.2018 / 16:52
0
answers

Add-Migration Not Being Run .NET Core 2.0 EntityFrameworkCore 2.1.3

   When doing the Add-Migration "Initial" Migration classes are not being performed, can anything be related to the connection to the database? because when I run the command no error is given, and the console prompt is available to run new comm...
asked by 26.09.2018 / 21:43
0
answers

Problems with Migration

I'm developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First . I'm trying to use MySql as a database. I have already installed everything that was needed ( EF , MySqlConnector ) and m...
asked by 25.09.2018 / 14:57
0
answers

Add-Migration Not Being Run .NET Core 2.0 EntityFrameworkCore 2.1.3

   When doing the Add-Migration "Initial" Migration classes are not being performed, can anything be related to the connection to the database? because when I run the command no error is given, and the console prompt is available to run new comm...
asked by 26.09.2018 / 21:43
0
answers

Map a table and enable Auto-increment of an FK field in PostGre using EF Core and Fluent Api

I can not activate the Auto_Increment of the ContactIdId field in PostGre. In the table mapping I have specified the "ValueGeneratedOnAdd" feature, but when I update the database with Migrations, nothing changes. When I try to insert a record in...
asked by 23.08.2018 / 13:09
1
answer

Fill in date automatically in ASP.NET MVC 5

Hello, how are you? I need some help from you, I already tried it here in the forum but I did not have success with the results. I have a small application where I make control of Digital Certificates, my Model Certificate is simple as below:...
asked by 10.07.2018 / 02:23
1
answer

How to make Foreign Keys using Migrations Laravel

I'm trying to relate one field to another using migrations this way:    Butwhendoingtheforeignkeyinmigrationsthisway:MigrationPermission:Schema::create('permissions',function(Blueprint$table){$table->increments('id');$table->index('use...
asked by 13.03.2018 / 21:09
1
answer

How to ignore the migrations of django.contrib.auth?

I have a Django application where I want to customize the authentication part. I've already done my own Authentication backend as well as set up my own Model that will be used in authentication. The problem is that when I run the command...
asked by 23.02.2018 / 12:57