aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2022-03-30 14:34:00 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2022-03-30 14:34:00 +0200
commitc7f7e76721acda1483c0f29d6718d638ce0d8875 (patch)
tree864f06207b349a09c23ebd6bde74dfdd0acd7660 /migrations
parentchg: [dependecies] Updated SQLAlchemy. (diff)
downloadnewspipe-c7f7e76721acda1483c0f29d6718d638ce0d8875.tar.gz
newspipe-c7f7e76721acda1483c0f29d6718d638ce0d8875.tar.bz2
newspipe-c7f7e76721acda1483c0f29d6718d638ce0d8875.zip
chg: [style] improved style. !minor
Diffstat (limited to 'migrations')
-rw-r--r--migrations/README2
-rw-r--r--migrations/env.py7
-rw-r--r--migrations/versions/16f8fc3cf0cc_add_column_webpage_in_the_user_table.py3
-rw-r--r--migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py6
-rw-r--r--migrations/versions/19bdaa6208e_add_icon_column.py3
-rw-r--r--migrations/versions/1b750a389c22_remove_email_notification_column.py3
-rw-r--r--migrations/versions/2472eddbf44b_update_of_the_user_model.py3
-rw-r--r--migrations/versions/25ca960a207_mv_icons_from_feed_tbl_to_icon_tbl.py3
-rw-r--r--migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py3
-rw-r--r--migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py3
-rw-r--r--migrations/versions/422da2d0234_adding_filters_field.py3
-rw-r--r--migrations/versions/48f561c0ce6_add_column_entry_id.py3
-rw-r--r--migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py3
-rw-r--r--migrations/versions/661199d8768a_problem_with_the_last_upgrade.py3
-rw-r--r--migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py3
-rw-r--r--migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py3
-rw-r--r--migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py3
-rw-r--r--migrations/versions/b329a1a7366f_add_new_tables_for_the_bookmarks_and_.py6
-rw-r--r--migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py3
-rw-r--r--migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py3
-rw-r--r--migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py6
-rw-r--r--migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py3
-rw-r--r--migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py3
23 files changed, 31 insertions, 50 deletions
diff --git a/migrations/README b/migrations/README
index 98e4f9c4..2500aa1b 100644
--- a/migrations/README
+++ b/migrations/README
@@ -1 +1 @@
-Generic single-database configuration. \ No newline at end of file
+Generic single-database configuration.
diff --git a/migrations/env.py b/migrations/env.py
index cbfe86d4..4ac6ad53 100644
--- a/migrations/env.py
+++ b/migrations/env.py
@@ -1,13 +1,12 @@
-from __future__ import with_statement
-
from alembic import context
+from flask import current_app
+from sqlalchemy import engine_from_config
+from sqlalchemy import pool
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
-from flask import current_app
-from sqlalchemy import engine_from_config, pool
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
diff --git a/migrations/versions/16f8fc3cf0cc_add_column_webpage_in_the_user_table.py b/migrations/versions/16f8fc3cf0cc_add_column_webpage_in_the_user_table.py
index 95926d22..d5276fd5 100644
--- a/migrations/versions/16f8fc3cf0cc_add_column_webpage_in_the_user_table.py
+++ b/migrations/versions/16f8fc3cf0cc_add_column_webpage_in_the_user_table.py
@@ -5,10 +5,9 @@ Revises: 957d4c5b8ac9
Create Date: 2016-09-21 08:00:27.160357
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "16f8fc3cf0cc"
down_revision = "957d4c5b8ac9"
diff --git a/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py b/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
index e07ff6d7..bd7ccf58 100644
--- a/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
+++ b/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
@@ -5,12 +5,12 @@ Revises: cde34831ea
Create Date: 2015-03-10 14:20:53.676344
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
-import sqlalchemy as sa
from datetime import datetime
+import sqlalchemy as sa
+from alembic import op
+
revision = "17dcb75f3fe"
down_revision = "cde34831ea"
diff --git a/migrations/versions/19bdaa6208e_add_icon_column.py b/migrations/versions/19bdaa6208e_add_icon_column.py
index 19d2977b..05259c4e 100644
--- a/migrations/versions/19bdaa6208e_add_icon_column.py
+++ b/migrations/versions/19bdaa6208e_add_icon_column.py
@@ -5,10 +5,9 @@ Revises: 422da2d0234
Create Date: 2015-07-03 12:09:58.596010
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "19bdaa6208e"
down_revision = "422da2d0234"
diff --git a/migrations/versions/1b750a389c22_remove_email_notification_column.py b/migrations/versions/1b750a389c22_remove_email_notification_column.py
index 60e02687..9846fc26 100644
--- a/migrations/versions/1b750a389c22_remove_email_notification_column.py
+++ b/migrations/versions/1b750a389c22_remove_email_notification_column.py
@@ -5,10 +5,9 @@ Revises: 48f561c0ce6
Create Date: 2015-02-25 23:01:07.253429
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "1b750a389c22"
down_revision = "48f561c0ce6"
diff --git a/migrations/versions/2472eddbf44b_update_of_the_user_model.py b/migrations/versions/2472eddbf44b_update_of_the_user_model.py
index cb6de571..f1362029 100644
--- a/migrations/versions/2472eddbf44b_update_of_the_user_model.py
+++ b/migrations/versions/2472eddbf44b_update_of_the_user_model.py
@@ -5,10 +5,9 @@ Revises: ac35c979311a
Create Date: 2016-03-01 22:35:03.659694
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "2472eddbf44b"
down_revision = "ac35c979311a"
diff --git a/migrations/versions/25ca960a207_mv_icons_from_feed_tbl_to_icon_tbl.py b/migrations/versions/25ca960a207_mv_icons_from_feed_tbl_to_icon_tbl.py
index 9212e5ab..14ab7a10 100644
--- a/migrations/versions/25ca960a207_mv_icons_from_feed_tbl_to_icon_tbl.py
+++ b/migrations/versions/25ca960a207_mv_icons_from_feed_tbl_to_icon_tbl.py
@@ -5,10 +5,9 @@ Revises: 19bdaa6208e
Create Date: 2015-08-03 14:36:21.626411
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "25ca960a207"
down_revision = "19bdaa6208e"
diff --git a/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py b/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py
index 8d6c8ae8..4a91563d 100644
--- a/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py
+++ b/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py
@@ -5,10 +5,9 @@ Revises: be2b8b6f33dd
Create Date: 2016-11-08 07:41:13.923531
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "2c5cc05216fa"
down_revision = "be2b8b6f33dd"
diff --git a/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py b/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py
index 4e0df180..e0a7ab2b 100644
--- a/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py
+++ b/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py
@@ -5,10 +5,9 @@ Revises: 25ca960a207
Create Date: 2016-02-12 21:51:40.868539
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "3f83bfe93fc"
down_revision = "25ca960a207"
diff --git a/migrations/versions/422da2d0234_adding_filters_field.py b/migrations/versions/422da2d0234_adding_filters_field.py
index 084ddf09..5140e9fd 100644
--- a/migrations/versions/422da2d0234_adding_filters_field.py
+++ b/migrations/versions/422da2d0234_adding_filters_field.py
@@ -5,10 +5,9 @@ Revises: 17dcb75f3fe
Create Date: 2015-05-18 23:03:15.809549
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "422da2d0234"
down_revision = "17dcb75f3fe"
diff --git a/migrations/versions/48f561c0ce6_add_column_entry_id.py b/migrations/versions/48f561c0ce6_add_column_entry_id.py
index a233d0e5..69912b88 100644
--- a/migrations/versions/48f561c0ce6_add_column_entry_id.py
+++ b/migrations/versions/48f561c0ce6_add_column_entry_id.py
@@ -5,10 +5,9 @@ Revises:
Create Date: 2015-02-18 21:17:19.346998
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "48f561c0ce6"
down_revision = None
diff --git a/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py b/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py
index 9f98e68b..4527028d 100644
--- a/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py
+++ b/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py
@@ -5,10 +5,9 @@ Revises: f700c4237e9d
Create Date: 2016-10-06 11:02:41.356322
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "5553a6c05fa7"
down_revision = "f700c4237e9d"
diff --git a/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py b/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
index 188ec46f..bc205d6b 100644
--- a/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
+++ b/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
@@ -5,10 +5,9 @@ Revises: 3f83bfe93fc
Create Date: 2016-02-13 11:33:14.183576
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "661199d8768a"
down_revision = "3f83bfe93fc"
diff --git a/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py b/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py
index 47e56e2e..cecbad0c 100644
--- a/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py
+++ b/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py
@@ -5,10 +5,9 @@ Revises: 5553a6c05fa7
Create Date: 2016-10-06 13:47:32.784711
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "8bf5694c0b9e"
down_revision = "5553a6c05fa7"
diff --git a/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py b/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
index ac5c47be..609e37fa 100644
--- a/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
+++ b/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
@@ -5,10 +5,9 @@ Revises: 2472eddbf44b
Create Date: 2016-09-20 14:35:31.302555
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "957d4c5b8ac9"
down_revision = "2472eddbf44b"
diff --git a/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py b/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
index ee16ab78..7be08068 100644
--- a/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
+++ b/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
@@ -5,10 +5,9 @@ Revises: 661199d8768a
Create Date: 2016-02-18 08:54:43.786641
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "ac35c979311a"
down_revision = "661199d8768a"
diff --git a/migrations/versions/b329a1a7366f_add_new_tables_for_the_bookmarks_and_.py b/migrations/versions/b329a1a7366f_add_new_tables_for_the_bookmarks_and_.py
index f783425f..8ba85040 100644
--- a/migrations/versions/b329a1a7366f_add_new_tables_for_the_bookmarks_and_.py
+++ b/migrations/versions/b329a1a7366f_add_new_tables_for_the_bookmarks_and_.py
@@ -5,12 +5,12 @@ Revises: 2c5cc05216fa
Create Date: 2017-05-23 21:42:37.636307
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
-import sqlalchemy as sa
from datetime import datetime
+import sqlalchemy as sa
+from alembic import op
+
revision = "b329a1a7366f"
down_revision = "2c5cc05216fa"
branch_labels = None
diff --git a/migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py b/migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py
index 1a97d271..ce5037fe 100644
--- a/migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py
+++ b/migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py
@@ -5,10 +5,9 @@ Revises: b329a1a7366f
Create Date: 2018-04-04 23:26:52.517804
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "bdd38bd755cb"
down_revision = "b329a1a7366f"
diff --git a/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py b/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py
index fa733719..158c0703 100644
--- a/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py
+++ b/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py
@@ -5,10 +5,9 @@ Revises: fa10b0bdd045
Create Date: 2016-10-24 13:28:55.964803
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "be2b8b6f33dd"
down_revision = "fa10b0bdd045"
diff --git a/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py b/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py
index 0c6ada9c..c8acfc14 100644
--- a/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py
+++ b/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py
@@ -5,12 +5,12 @@ Revises: 1b750a389c22
Create Date: 2015-03-04 22:59:44.665979
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
-import sqlalchemy as sa
from datetime import datetime
+import sqlalchemy as sa
+from alembic import op
+
revision = "cde34831ea"
down_revision = "1b750a389c22"
diff --git a/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py b/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py
index 626d0f1a..54ee4fd4 100644
--- a/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py
+++ b/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py
@@ -5,10 +5,9 @@ Revises: 16f8fc3cf0cc
Create Date: 2016-10-05 08:47:51.384069
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "f700c4237e9d"
down_revision = "16f8fc3cf0cc"
diff --git a/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
index b94527cf..79b687b3 100644
--- a/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
+++ b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
@@ -5,10 +5,9 @@ Revises: 8bf5694c0b9e
Create Date: 2016-10-07 10:43:04.428178
"""
-
# revision identifiers, used by Alembic.
-from alembic import op
import sqlalchemy as sa
+from alembic import op
revision = "fa10b0bdd045"
down_revision = "8bf5694c0b9e"
bgstack15