forked from wallabag/wallabag
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 92995138fb | |||
| 713f35bafd | |||
| 4021c928be | |||
| 38c73f9691 | |||
| a5cd696b22 | |||
| 7a340375c3 |
@ -69,7 +69,7 @@ before_install:
|
||||
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
|
||||
|
||||
script:
|
||||
- travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
|
||||
- travis_wait composer update --no-interaction --no-progress
|
||||
- ant prepare-$DB
|
||||
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
|
||||
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
## Changelog
|
||||
|
||||
### 2.2.1 2017/01/31
|
||||
|
||||
- [#2809](https://github.com/wallabag/wallabag/pull/2809) Fixed duplicate entry for share_public in craue_setting_table and added documentation about migration (@nicosomb)
|
||||
|
||||
### 2.2.0 2017/01/27
|
||||
- [#2789](https://github.com/wallabag/wallabag/pull/2789) Added indexes on is_archived and is_starred (@nicosomb)
|
||||
- [#2763](https://github.com/wallabag/wallabag/pull/2763) Sort list of available tags (@janLo)
|
||||
|
||||
@ -34,13 +34,21 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
|
||||
{
|
||||
$entryTable = $schema->getTable($this->getTable('entry'));
|
||||
|
||||
$this->skipIf($entryTable->hasColumn('uid'), 'It seems that you already played this migration.');
|
||||
$this->skipIf($entryTable->hasColumn('uid') || $entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
|
||||
|
||||
$entryTable->addColumn('uid', 'string', [
|
||||
'notnull' => false,
|
||||
'length' => 23,
|
||||
]);
|
||||
$this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('share_public', '1', 'entry')");
|
||||
|
||||
$sharePublic = $this->container
|
||||
->get('doctrine.orm.default_entity_manager')
|
||||
->getConnection()
|
||||
->fetchArray('SELECT * FROM '.$this->getTable('craue_config_setting')." WHERE name = 'share_public'");
|
||||
|
||||
if (false === $sharePublic) {
|
||||
$this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('share_public', '1', 'entry')");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -30,7 +30,7 @@ framework:
|
||||
assets: ~
|
||||
|
||||
wallabag_core:
|
||||
version: 2.2.0
|
||||
version: 2.2.1
|
||||
paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
|
||||
languages:
|
||||
en: 'English'
|
||||
|
||||
7355
composer.lock
generated
Normal file
7355
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -724,6 +724,111 @@ Migration down
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5A0D96FBF ON wallabag_user (email_canonical)
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5C05FB297 ON wallabag_user (confirmation_token)
|
||||
|
||||
Migration 20161214094402
|
||||
------------------------
|
||||
|
||||
MySQL
|
||||
^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uuid uid VARCHAR(23)
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uid uuid VARCHAR(23)
|
||||
|
||||
PostgreSQL
|
||||
^^^^^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uuid TO uid
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uid TO uuid
|
||||
|
||||
SQLite
|
||||
^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry SELECT id,user_id,uuid,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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uuid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry 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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
Migration 20161214094403
|
||||
------------------------
|
||||
|
||||
|
||||
@ -724,6 +724,111 @@ Migration down
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5A0D96FBF ON wallabag_user (email_canonical)
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5C05FB297 ON wallabag_user (confirmation_token)
|
||||
|
||||
Migration 20161214094402
|
||||
------------------------
|
||||
|
||||
MySQL
|
||||
^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uuid uid VARCHAR(23)
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uid uuid VARCHAR(23)
|
||||
|
||||
PostgreSQL
|
||||
^^^^^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uuid TO uid
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uid TO uuid
|
||||
|
||||
SQLite
|
||||
^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry SELECT id,user_id,uuid,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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uuid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry 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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
Migration 20161214094403
|
||||
------------------------
|
||||
|
||||
|
||||
@ -724,6 +724,111 @@ Migration down
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5A0D96FBF ON wallabag_user (email_canonical)
|
||||
CREATE UNIQUE INDEX UNIQ_1D63E7E5C05FB297 ON wallabag_user (confirmation_token)
|
||||
|
||||
Migration 20161214094402
|
||||
------------------------
|
||||
|
||||
MySQL
|
||||
^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uuid uid VARCHAR(23)
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry CHANGE uid uuid VARCHAR(23)
|
||||
|
||||
PostgreSQL
|
||||
^^^^^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uuid TO uid
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
ALTER TABLE wallabag_entry RENAME uid TO uuid
|
||||
|
||||
SQLite
|
||||
^^^^^^
|
||||
|
||||
Migration up
|
||||
""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry SELECT id,user_id,uuid,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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
|
||||
Migration down
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE __temp__wallabag_entry (
|
||||
id INTEGER NOT NULL,
|
||||
user_id INTEGER DEFAULT NULL,
|
||||
uuid VARCHAR(23) DEFAULT NULL,
|
||||
title CLOB DEFAULT NULL,
|
||||
url CLOB DEFAULT NULL,
|
||||
is_archived BOOLEAN NOT NULL,
|
||||
is_starred BOOLEAN NOT NULL,
|
||||
content CLOB DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
mimetype CLOB DEFAULT NULL,
|
||||
language CLOB DEFAULT NULL,
|
||||
reading_time INTEGER DEFAULT NULL,
|
||||
domain_name CLOB DEFAULT NULL,
|
||||
preview_picture CLOB DEFAULT NULL,
|
||||
is_public BOOLEAN DEFAULT '0',
|
||||
http_status VARCHAR(3) DEFAULT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
INSERT INTO __temp__wallabag_entry 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;
|
||||
DROP TABLE wallabag_entry;
|
||||
ALTER TABLE __temp__wallabag_entry RENAME TO wallabag_entry
|
||||
CREATE INDEX uid ON wallabag_entry (uid)
|
||||
CREATE INDEX created_at ON wallabag_entry (created_at)
|
||||
CREATE INDEX IDX_F4D18282A76ED395 ON wallabag_entry (user_id)
|
||||
|
||||
Migration 20161214094403
|
||||
------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user