diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2017-01-27 11:44:04 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2017-01-27 11:44:04 +0100 |
commit | b564d350b0d3ca5f8b5928c87272c55ff3c92b19 (patch) | |
tree | fc2d4cb8beb6d4a3c855b22b5185a368b3ff57bc /docs | |
parent | 6fb06904ecde15b1b07d0a2af945338b416cf0e2 (diff) | |
download | wallabag-b564d350b0d3ca5f8b5928c87272c55ff3c92b19.tar.gz wallabag-b564d350b0d3ca5f8b5928c87272c55ff3c92b19.tar.zst wallabag-b564d350b0d3ca5f8b5928c87272c55ff3c92b19.zip |
Added indexes on is_archived and is_starred
Diffstat (limited to 'docs')
-rw-r--r-- | docs/de/user/query-upgrade-21-22.rst | 82 | ||||
-rw-r--r-- | docs/de/user/upgrade.rst | 5 | ||||
-rw-r--r-- | docs/en/user/query-upgrade-21-22.rst | 82 | ||||
-rw-r--r-- | docs/en/user/upgrade.rst | 2 | ||||
-rw-r--r-- | docs/fr/user/query-upgrade-21-22.rst | 82 | ||||
-rw-r--r-- | docs/fr/user/upgrade.rst | 5 |
6 files changed, 258 insertions, 0 deletions
diff --git a/docs/de/user/query-upgrade-21-22.rst b/docs/de/user/query-upgrade-21-22.rst index cd201dc2..f32d5a19 100644 --- a/docs/de/user/query-upgrade-21-22.rst +++ b/docs/de/user/query-upgrade-21-22.rst | |||
@@ -795,3 +795,85 @@ Migration down | |||
795 | DROP TABLE __temp__wallabag_entry | 795 | DROP TABLE __temp__wallabag_entry |
796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) | 796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) |
797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | 797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) |
798 | |||
799 | Migration 20170127093841 | ||
800 | ------------------------ | ||
801 | |||
802 | MySQL | ||
803 | ^^^^^ | ||
804 | |||
805 | Migration up | ||
806 | """""""""""" | ||
807 | |||
808 | .. code-block:: sql | ||
809 | |||
810 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
811 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
812 | |||
813 | Migration down | ||
814 | """""""""""""" | ||
815 | |||
816 | .. code-block:: sql | ||
817 | |||
818 | DROP INDEX IDX_entry_starred ON wallabag_entry | ||
819 | DROP INDEX IDX_entry_archived ON wallabag_entry | ||
820 | |||
821 | PostgreSQL | ||
822 | ^^^^^^^^^^ | ||
823 | |||
824 | Migration up | ||
825 | """""""""""" | ||
826 | |||
827 | .. code-block:: sql | ||
828 | |||
829 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
830 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
831 | |||
832 | Migration down | ||
833 | """""""""""""" | ||
834 | |||
835 | .. code-block:: sql | ||
836 | |||
837 | DROP INDEX IDX_entry_starred | ||
838 | DROP INDEX IDX_entry_archived | ||
839 | |||
840 | SQLite | ||
841 | ^^^^^^ | ||
842 | |||
843 | Migration up | ||
844 | """""""""""" | ||
845 | |||
846 | .. code-block:: sql | ||
847 | |||
848 | DROP INDEX uid | ||
849 | DROP INDEX created_at | ||
850 | DROP INDEX IDX_F4D18282A76ED395 | ||
851 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
852 | DROP TABLE wallabag_entry | ||
853 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
854 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
855 | DROP TABLE __temp__wallabag_entry | ||
856 | CREATE INDEX uid ON wallabag_entry (uid) | ||
857 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
858 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
859 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
860 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
861 | |||
862 | Migration down | ||
863 | """""""""""""" | ||
864 | |||
865 | .. code-block:: sql | ||
866 | |||
867 | DROP INDEX IDX_entry_archived | ||
868 | DROP INDEX IDX_entry_starred | ||
869 | DROP INDEX IDX_F4D18282A76ED395 | ||
870 | DROP INDEX created_at | ||
871 | DROP INDEX uid | ||
872 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
873 | DROP TABLE wallabag_entry | ||
874 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
875 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
876 | DROP TABLE __temp__wallabag_entry | ||
877 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
878 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
879 | CREATE INDEX uid ON wallabag_entry (uid) | ||
diff --git a/docs/de/user/upgrade.rst b/docs/de/user/upgrade.rst index 1107616e..544c7167 100644 --- a/docs/de/user/upgrade.rst +++ b/docs/de/user/upgrade.rst | |||
@@ -37,6 +37,11 @@ Dies ist die Migrationsliste von 2.1.x auf 2.2.0: | |||
37 | * ``20161118134328``: ``http_status``-Feld zur ``entry``-Tabelle hinzugefügt | 37 | * ``20161118134328``: ``http_status``-Feld zur ``entry``-Tabelle hinzugefügt |
38 | * ``20161122144743``: Interne Einstellung für das (de-)aktivieren zum Holen von Artikeln mit einer Paywall hinzugefügt | 38 | * ``20161122144743``: Interne Einstellung für das (de-)aktivieren zum Holen von Artikeln mit einer Paywall hinzugefügt |
39 | * ``20161122203647``: ``expired``- und ``credentials_expired``-Feld aus der ``user``-Tabelle entfernt | 39 | * ``20161122203647``: ``expired``- und ``credentials_expired``-Feld aus der ``user``-Tabelle entfernt |
40 | * ``20161128084725``: added ``list_mode`` field on ``config`` table | ||
41 | * ``20161128131503``: dropped ``locked``, ``credentials_expire_at`` and ``expires_at`` fields on ``user`` table | ||
42 | * ``20161214094402``: renamed ``uuid`` to ``uid`` on ``entry`` table | ||
43 | * ``20161214094403``: added ``uid`` index on ``entry`` table | ||
44 | * ``20170127093841``: added ``is_starred`` and ``is_archived`` indexes on ``entry`` table | ||
40 | 45 | ||
41 | Upgrade auf einem Shared Hosting | 46 | Upgrade auf einem Shared Hosting |
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
diff --git a/docs/en/user/query-upgrade-21-22.rst b/docs/en/user/query-upgrade-21-22.rst index cd201dc2..f32d5a19 100644 --- a/docs/en/user/query-upgrade-21-22.rst +++ b/docs/en/user/query-upgrade-21-22.rst | |||
@@ -795,3 +795,85 @@ Migration down | |||
795 | DROP TABLE __temp__wallabag_entry | 795 | DROP TABLE __temp__wallabag_entry |
796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) | 796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) |
797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | 797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) |
798 | |||
799 | Migration 20170127093841 | ||
800 | ------------------------ | ||
801 | |||
802 | MySQL | ||
803 | ^^^^^ | ||
804 | |||
805 | Migration up | ||
806 | """""""""""" | ||
807 | |||
808 | .. code-block:: sql | ||
809 | |||
810 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
811 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
812 | |||
813 | Migration down | ||
814 | """""""""""""" | ||
815 | |||
816 | .. code-block:: sql | ||
817 | |||
818 | DROP INDEX IDX_entry_starred ON wallabag_entry | ||
819 | DROP INDEX IDX_entry_archived ON wallabag_entry | ||
820 | |||
821 | PostgreSQL | ||
822 | ^^^^^^^^^^ | ||
823 | |||
824 | Migration up | ||
825 | """""""""""" | ||
826 | |||
827 | .. code-block:: sql | ||
828 | |||
829 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
830 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
831 | |||
832 | Migration down | ||
833 | """""""""""""" | ||
834 | |||
835 | .. code-block:: sql | ||
836 | |||
837 | DROP INDEX IDX_entry_starred | ||
838 | DROP INDEX IDX_entry_archived | ||
839 | |||
840 | SQLite | ||
841 | ^^^^^^ | ||
842 | |||
843 | Migration up | ||
844 | """""""""""" | ||
845 | |||
846 | .. code-block:: sql | ||
847 | |||
848 | DROP INDEX uid | ||
849 | DROP INDEX created_at | ||
850 | DROP INDEX IDX_F4D18282A76ED395 | ||
851 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
852 | DROP TABLE wallabag_entry | ||
853 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
854 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
855 | DROP TABLE __temp__wallabag_entry | ||
856 | CREATE INDEX uid ON wallabag_entry (uid) | ||
857 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
858 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
859 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
860 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
861 | |||
862 | Migration down | ||
863 | """""""""""""" | ||
864 | |||
865 | .. code-block:: sql | ||
866 | |||
867 | DROP INDEX IDX_entry_archived | ||
868 | DROP INDEX IDX_entry_starred | ||
869 | DROP INDEX IDX_F4D18282A76ED395 | ||
870 | DROP INDEX created_at | ||
871 | DROP INDEX uid | ||
872 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
873 | DROP TABLE wallabag_entry | ||
874 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
875 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
876 | DROP TABLE __temp__wallabag_entry | ||
877 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
878 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
879 | CREATE INDEX uid ON wallabag_entry (uid) | ||
diff --git a/docs/en/user/upgrade.rst b/docs/en/user/upgrade.rst index 99260e13..889b5300 100644 --- a/docs/en/user/upgrade.rst +++ b/docs/en/user/upgrade.rst | |||
@@ -43,7 +43,9 @@ Here is the migrations list for 2.1.x to 2.2.0 release: | |||
43 | * ``20161122203647``: dropped ``expired`` and ``credentials_expired`` fields on ``user`` table | 43 | * ``20161122203647``: dropped ``expired`` and ``credentials_expired`` fields on ``user`` table |
44 | * ``20161128084725``: added ``list_mode`` field on ``config`` table | 44 | * ``20161128084725``: added ``list_mode`` field on ``config`` table |
45 | * ``20161128131503``: dropped ``locked``, ``credentials_expire_at`` and ``expires_at`` fields on ``user`` table | 45 | * ``20161128131503``: dropped ``locked``, ``credentials_expire_at`` and ``expires_at`` fields on ``user`` table |
46 | * ``20161214094402``: renamed ``uuid`` to ``uid`` on ``entry`` table | ||
46 | * ``20161214094403``: added ``uid`` index on ``entry`` table | 47 | * ``20161214094403``: added ``uid`` index on ``entry`` table |
48 | * ``20170127093841``: added ``is_starred`` and ``is_archived`` indexes on ``entry`` table | ||
47 | 49 | ||
48 | Upgrade on a shared hosting | 50 | Upgrade on a shared hosting |
49 | =========================== | 51 | =========================== |
diff --git a/docs/fr/user/query-upgrade-21-22.rst b/docs/fr/user/query-upgrade-21-22.rst index cd201dc2..f32d5a19 100644 --- a/docs/fr/user/query-upgrade-21-22.rst +++ b/docs/fr/user/query-upgrade-21-22.rst | |||
@@ -795,3 +795,85 @@ Migration down | |||
795 | DROP TABLE __temp__wallabag_entry | 795 | DROP TABLE __temp__wallabag_entry |
796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) | 796 | CREATE INDEX created_at_idx ON wallabag_entry (created_at) |
797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | 797 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) |
798 | |||
799 | Migration 20170127093841 | ||
800 | ------------------------ | ||
801 | |||
802 | MySQL | ||
803 | ^^^^^ | ||
804 | |||
805 | Migration up | ||
806 | """""""""""" | ||
807 | |||
808 | .. code-block:: sql | ||
809 | |||
810 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
811 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
812 | |||
813 | Migration down | ||
814 | """""""""""""" | ||
815 | |||
816 | .. code-block:: sql | ||
817 | |||
818 | DROP INDEX IDX_entry_starred ON wallabag_entry | ||
819 | DROP INDEX IDX_entry_archived ON wallabag_entry | ||
820 | |||
821 | PostgreSQL | ||
822 | ^^^^^^^^^^ | ||
823 | |||
824 | Migration up | ||
825 | """""""""""" | ||
826 | |||
827 | .. code-block:: sql | ||
828 | |||
829 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
830 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
831 | |||
832 | Migration down | ||
833 | """""""""""""" | ||
834 | |||
835 | .. code-block:: sql | ||
836 | |||
837 | DROP INDEX IDX_entry_starred | ||
838 | DROP INDEX IDX_entry_archived | ||
839 | |||
840 | SQLite | ||
841 | ^^^^^^ | ||
842 | |||
843 | Migration up | ||
844 | """""""""""" | ||
845 | |||
846 | .. code-block:: sql | ||
847 | |||
848 | DROP INDEX uid | ||
849 | DROP INDEX created_at | ||
850 | DROP INDEX IDX_F4D18282A76ED395 | ||
851 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
852 | DROP TABLE wallabag_entry | ||
853 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
854 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
855 | DROP TABLE __temp__wallabag_entry | ||
856 | CREATE INDEX uid ON wallabag_entry (uid) | ||
857 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
858 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
859 | CREATE INDEX IDX_entry_starred ON wallabag_entry (is_starred) | ||
860 | CREATE INDEX IDX_entry_archived ON wallabag_entry (is_archived) | ||
861 | |||
862 | Migration down | ||
863 | """""""""""""" | ||
864 | |||
865 | .. code-block:: sql | ||
866 | |||
867 | DROP INDEX IDX_entry_archived | ||
868 | DROP INDEX IDX_entry_starred | ||
869 | DROP INDEX IDX_F4D18282A76ED395 | ||
870 | DROP INDEX created_at | ||
871 | DROP INDEX uid | ||
872 | CREATE TEMPORARY TABLE __temp__wallabag_entry AS SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM wallabag_entry | ||
873 | DROP TABLE wallabag_entry | ||
874 | CREATE TABLE wallabag_entry (id INTEGER NOT NULL, user_id INTEGER DEFAULT NULL, uid VARCHAR(23) DEFAULT NULL COLLATE BINARY, title CLOB DEFAULT NULL COLLATE BINARY, url CLOB DEFAULT NULL COLLATE BINARY, is_archived BOOLEAN NOT NULL, is_starred BOOLEAN NOT NULL, content CLOB DEFAULT NULL COLLATE BINARY, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mimetype CLOB DEFAULT NULL COLLATE BINARY, language CLOB DEFAULT NULL COLLATE BINARY, reading_time INTEGER DEFAULT NULL, domain_name CLOB DEFAULT NULL COLLATE BINARY, preview_picture CLOB DEFAULT NULL COLLATE BINARY, is_public BOOLEAN DEFAULT '0', http_status VARCHAR(3) DEFAULT NULL COLLATE BINARY, PRIMARY KEY(id)) | ||
875 | INSERT INTO wallabag_entry (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status) SELECT id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, http_status FROM __temp__wallabag_entry | ||
876 | DROP TABLE __temp__wallabag_entry | ||
877 | CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id) | ||
878 | CREATE INDEX created_at ON wallabag_entry (created_at) | ||
879 | CREATE INDEX uid ON wallabag_entry (uid) | ||
diff --git a/docs/fr/user/upgrade.rst b/docs/fr/user/upgrade.rst index 088b19a0..2ca5d127 100644 --- a/docs/fr/user/upgrade.rst +++ b/docs/fr/user/upgrade.rst | |||
@@ -37,6 +37,11 @@ Voici la liste des migrations de la 2.1.x à la 2.2.0 : | |||
37 | * ``20161118134328``: ajout du champ ``http_status`` sur la table ``entry`` | 37 | * ``20161118134328``: ajout du champ ``http_status`` sur la table ``entry`` |
38 | * ``20161122144743``: ajout du paramètre interne pour activer/désactiver la récupération d'articles derrière un paywall | 38 | * ``20161122144743``: ajout du paramètre interne pour activer/désactiver la récupération d'articles derrière un paywall |
39 | * ``20161122203647``: suppression des champs ``expired`` et ``credentials_expired`` sur la table ``user`` | 39 | * ``20161122203647``: suppression des champs ``expired`` et ``credentials_expired`` sur la table ``user`` |
40 | * ``20161128084725``: ajout du champ ``list_mode`` sur la table ``config`` | ||
41 | * ``20161128131503``: suppression des champs ``locked``, ``credentials_expire_at`` et ``expires_at`` sur la table ``user`` | ||
42 | * ``20161214094402``: renommage du champ ``uuid`` en ``uid`` sur la table ``entry`` | ||
43 | * ``20161214094403``: ajout de l'index ``uid`` sur la table ``entry`` | ||
44 | * ``20170127093841``: ajout des index ``is_starred`` et ``is_archived`` sur la table ``entry`` | ||
40 | 45 | ||
41 | Mise à jour sur un hébergement mutualisé | 46 | Mise à jour sur un hébergement mutualisé |
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |