From bc08040811bc6aec8907dc748045d803eaac54c2 Mon Sep 17 00:00:00 2001
From: Matthieu Berjon <matthieu.berjon@inria.fr>
Date: Tue, 20 Mar 2018 16:15:50 +0100
Subject: [PATCH] Update of the SQL schema for users table

I updated the Django migration file to force the order of the fields
generated in the rails database.

Signed-off-by: Matthieu Berjon <matthieu.berjon@inria.fr>
---
 django/poc/migrations/0001_initial.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/django/poc/migrations/0001_initial.py b/django/poc/migrations/0001_initial.py
index 53e21460..cb2921da 100644
--- a/django/poc/migrations/0001_initial.py
+++ b/django/poc/migrations/0001_initial.py
@@ -91,8 +91,6 @@ class Migration(migrations.Migration):
             name='User',
             fields=[
                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
-                ('created_at', models.DateTimeField(auto_now_add=True)),
-                ('updated_at', models.DateTimeField(auto_now_add=True)),
                 ('email', models.CharField(max_length=255, unique=True)),
                 ('encrypted_password', models.CharField(max_length=255)),
                 ('reset_password_token', models.CharField(max_length=255, null=True, unique=True)),
@@ -103,6 +101,8 @@ class Migration(migrations.Migration):
                 ('last_sign_in_at', models.DateTimeField(blank=True, null=True)),
                 ('current_sign_in_ip', models.CharField(blank=True, max_length=255, null=True)),
                 ('last_sign_in_ip', models.CharField(blank=True, max_length=255, null=True)),
+                ('created_at', models.DateTimeField(auto_now_add=True)),
+                ('updated_at', models.DateTimeField(auto_now_add=True)),
                 ('admin', models.IntegerField(default=False)),
                 ('confirmation_token', models.CharField(blank=True, max_length=255, null=True, unique=True)),
                 ('confirmed_at', models.DateTimeField(blank=True, null=True)),
-- 
GitLab