Questions tagged [Database migration] (1)

1
answer

I need to roll back the table Postgrsql and phone to create a table in Django?

Before restoration of type python manage.py -fake migration but I don't remember exactly and can't find anyone who knows help the pancreas.. –úigrate when he swears Output this error: django.db.utils.ProgrammingError: ERROR: relation "form_users" does not exist LINE 1: SELECT (1) AS "a" FROM "form_users WHERE form_users"....
Elisha70 asked April 16th 20 at 10:35
1
answer

WordPress + git + DB, as it is better to equip?

Work with VP. Is there a site on the server. Clone over ssh with git. All is good, but the data on the server and on LAN change even in the database. Created custom fields, pages, and so on. They also need somehow to clone and push to the server. How to organize everything?
sunny asked April 16th 20 at 10:12
2
answers

How to solve the error Laravel migration?

Just write that laravel just started to learn. Create a blank project on Laravel 6 Create DB prescribe it in .env. create a file migrations <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBlogsTable extends Migration { p...
Bernhard.Hil asked April 9th 20 at 10:38
1
answer

Why can't recreate the migration Django?

There is a project which has a sqlite dB with a certain content. Want to remove migration and create a new one. Deleted the contents of the folder Migrations, the database file, but makemigrations or any other team related to the migration gets the following error: Traceback (most recent call last): File "/Applications/PyC...
audra_Feil asked April 8th 20 at 02:55
0
answer

Laravel, what is the procedure for migration?

Collect database. Suddenly thought, and how: 1) create all the tables with fields under foreign keys and then hang up the foreign keys 2) create a table from the top down, the keys hang in the process 3) first create all the tables without fields under foreign keys and then create the fields and to hang up the keys 4) ??? ...
scarlett_Macejkovic52 asked April 8th 20 at 02:28
1
answer

How to add type this in migration(postgresql) Yii2?

Good day This is an example migration file public function safeUp() { $this->execute('DROP TYPE IF EXISTS users_status;'); $this->execute("CREATE TYPE AS user_status ENUM ('active','inactive','blocked','deleted');"); $this->createTable('{{%user}}', [ 'id' => $this->bigPrimaryKey(), 'status' => 'user_...
Jace.Hilpert58 asked April 7th 20 at 09:40
3
answers

Are there any recommendations on the names of the migrations database?

Something special about this thought because it always was a migration with a timestamp, which reduced to zero the conflicting class names of the migrations, Lara saw something called classes migrations without the timestamp (just CreateArticlesTable), and thought that if the old project which was a bunch of times to change...
Eudora.Hil asked April 4th 20 at 14:20
0
answer

How should work migration?

Hello! Can you please tell me how to work the migration in this case: There is a migration that adds three text values: test1, test2, test3 in the items table. At the beginning of the migration in the table only 1 record. Start the migration in the items table is already being used in the entry test1, as I understand it onl...
jedediah_Walter asked April 4th 20 at 14:07
2
answers

How to implement versioned, migrating to microservices?

Is the next task. There are services that use a set of common custom modules-starters. This starter consists of a set of Biblioteca, one of which is Camunda BPMN. And here it is important to understand that the engine that Camunda has its own database, i.e. each service that uses inside opportunities Camunda - needs to tigh...
coleman_Bode asked April 4th 20 at 12:35
1
answer

Could you tell me the basic rules of work with migrations in asp.net?

Good day! Deal with migrations in Entity Framework .net. Give an example of metanite what I'm doing: https://metanit.com/sharp/entityframework/3.12.php In all of these manuals are marked the basic things that issues do not arise. But if we dig even this resource comments, it becomes clear that getting out is not the obvious...
Tatyana.Yundt asked April 2nd 20 at 16:42