Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #246 from koalie/patch-30
Browse files Browse the repository at this point in the history
Editorial
  • Loading branch information
foxmask committed Oct 12, 2017
2 parents de9ac50 + afd904f commit c7bd626
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions MIGRATION_0.10.x_to_0.11.x.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
==================================
MIGRATIONS from 0.10.x to 0.11.x :
==================================
=================================
MIGRATIONS from 0.10.x to 0.11.x:
=================================

Nota : in the SQL queries below, I use CURRENT_TIMESTAMP because of Postgresql. Adapt it to your own RDBMS.
Nota: in the SQL queries below, I use CURRENT_TIMESTAMP because of Postgresql. Adapt it to your own RDBMS.

Django Trigger Happy tables :
=============================
Django Trigger Happy tables:
============================

To migrate enter,

.. code-block:: bash
python manage.py migrate
if the migration complains that you've already created the table django_th_rss then check the follow :
if the migration complains that you've already created the table django_th_rss then check the following:

.. code-block:: sql
Expand All @@ -23,7 +23,7 @@ to find

11 | django_th | 0001_initial | 2015-06-10 10:00:00.977958+02

if you dont have it then do :
if you dont have it then do:

.. code-block:: sql
Expand All @@ -38,20 +38,20 @@ then replay
Django Trigger Happy Module tables :
====================================
Django Trigger Happy Module tables:
===================================

Evernote :
----------
Evernote:
---------

if the migration complains that you've already created the table django_th_evernote then check it by :
if the migration complains that you've already created the table django_th_evernote then check it by:

.. code-block:: sql
select * from django_migrations ;
check that you dont have those record in the django_migrations table
check that you don't have those record in the django_migrations table

.. code-block:: sql
Expand All @@ -60,74 +60,74 @@ check that you dont have those record in the django_migrations table
13 | th_evernote | 0001_initial | 2015-06-10 10:00:00.977958+02
if its not the case, then add the following by hand like that :
if it's not the case, then add the following by hand like that:

.. code-block:: sql
insert into django_migrations (app,name,applied) values('th_evernote','0001_initial',CURRENT_TIMESTAMP);
Holidays :
----------
Holidays:
---------

if the migration complains that you've already created the table django_th_holidays then check it by :
if the migration complains that you've already created the table django_th_holidays then check it by:

.. code-block:: sql
select * from django_migrations ;
check that you dont have those record in the django_migrations table
check that you don't have those record in the django_migrations table

.. code-block:: sql
select * from django_migrations ;
13 | th_holidays | 0001_initial | 2015-06-10 10:00:00.977958+02
if its not the case, then add the following by hand like that :
if it's not the case, then add the following by hand like that:

.. code-block:: sql
insert into django_migrations (app,name,applied) values('th_holidays','0001_initial',CURRENT_TIMESTAMP);
Pocket :
--------
Pocket:
-------

if the migration complains that you've already created the table django_th_pocket then check it by :
if the migration complains that you've already created the table django_th_pocket then check it by:

.. code-block:: sql
select * from django_migrations ;
check that you dont have those record in the django_migrations table
check that you don't have those record in the django_migrations table

.. code-block:: sql
select * from django_migrations ;
13 | th_pocket | 0001_initial | 2015-06-10 10:00:00.977958+02
if its not the case, then add the following by hand like that :
if it's not the case, then add the following by hand like that:

.. code-block:: sql
insert into django_migrations (app,name,applied) values('th_pocket','0001_initial',CURRENT_TIMESTAMP);
Readability :
-------------
Readability:
------------

if the migration complains that you've already created the table django_th_readability then check it by :
if the migration complains that you've already created the table django_th_readability then check it by:

.. code-block:: sql
select * from django_migrations ;
check that you dont have those record in the django_migrations table
check that you don't have those record in the django_migrations table

.. code-block:: sql
Expand All @@ -136,24 +136,24 @@ check that you dont have those record in the django_migrations table
13 | th_readability | 0001_initial | 2015-06-10 10:00:00.977958+02
if its not the case, then add the following by hand like that :
if it's not the case, then add the following by hand like that:

.. code-block:: sql
insert into django_migrations (app,name,applied) values('th_readability','0001_initial',CURRENT_TIMESTAMP);
Twitter :
---------
Twitter:
--------

if the migration complains that you've already created the table django_th_twitter then check it by :
if the migration complains that you've already created the table django_th_twitter then check it by:

.. code-block:: sql
select * from django_migrations ;
check that you dont have those record in the django_migrations table
check that you don't have those record in the django_migrations table

.. code-block:: sql
Expand All @@ -162,7 +162,7 @@ check that you dont have those record in the django_migrations table
13 | th_twitter | 0001_initial | 2015-06-10 10:00:00.977958+02
if its not the case, then add the following by hand like that :
if it's not the case, then add the following by hand like that:

.. code-block:: sql
Expand All @@ -185,8 +185,8 @@ otherwise add this too
insert into django_migrations (app,name,applied) values('th_twitter','0002_int_to_bigint',CURRENT_TIMESTAMP);
Table to drop :
---------------
Table to drop:
--------------

with the last

Expand All @@ -195,7 +195,7 @@ with the last
python manage.py migrate
you will meet this message :
you will see this message:


.. code-block:: bash
Expand All @@ -217,4 +217,4 @@ then play again
python manage.py migrate
thus the migration will skip that steps and will continue smoothly
thus the migration will skip that step and will continue smoothly

0 comments on commit c7bd626

Please sign in to comment.