Jeremy Benoist
1e0d8ad7b7
Enable PHPStan
...
- Fix error for level 0 & 1 (level 7 has 699 errors...)
- Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
2019-01-18 15:25:50 +01:00
Jeremy Benoist
877787e5fe
Fix utf8mb4 on vendor tables
...
When creating the schema for test these tables use default length for
string: 255. Which fail when using utf8mb4.
> Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
Also move the `setKeepStaticConnections` in before and after class to
avoid:
> SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist
See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
2018-11-28 22:04:55 +01:00
Sébastien Viande
7975395d10
Entry: add archived_at property and updateArchived method
2018-09-21 10:33:33 +02:00
Kevin Decherf
2a1ceb67b4
php-cs-fixer
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2018-09-05 14:25:32 +02:00
Jeremy Benoist
49b4c87598
We should able to get the table name unescaped
...
When we want to perform complex queries to retrieve metadata from the database
2018-06-14 14:15:07 +02:00
Jeremy Benoist
bfe7a69226
Fixed migrations with dash into db name
2018-06-14 13:43:09 +02:00
Jérémy Benoist
d1f260e2d7
Merge pull request #3504 from aaa2000/fix-initial-migration-with-table-prefix
...
Fix initial migration when using custom table prefix
2017-12-16 22:24:06 +01:00
Jeremy Benoist
ccb52fb461
Use getTable() to retrieve prefixed table name
2017-12-16 22:08:00 +01:00
Nicolas Lœuillet
caf719f163
Fixed lower case tags migration
2017-12-15 13:59:02 +01:00
adev
f1f2cf2bce
Fix initial migration when using custom table prefix
...
Fix #3503
2017-12-14 19:14:10 +01:00
Jeremy Benoist
3fadf42a1c
CS
2017-12-12 14:30:22 +01:00
Jeremy Benoist
ad46f2fb46
Use hasTable instead of try/catch
2017-12-12 13:41:44 +01:00
Jeremy Benoist
43e1711eb6
Change the way to check for initial migration
2017-12-12 11:17:16 +01:00
Kevin Decherf
40a63c8b11
migrations: fix duplicate violation during lowercase tag migration
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-12-10 19:31:30 +01:00
Kevin Decherf
6c5904ba7f
Replace raw query with named parameter
...
Fix possible issue with special chars on #3139
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-12-10 18:22:41 +01:00
Kevin Decherf
893fd6434f
Add craue setting to enable sharing of origin url to Shaarli
...
Also fix the field name used in the query string and add it to baggy
theme
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-11-25 17:07:55 +01:00
adev
f4e7a0df0e
Fix phpcs
2017-11-21 22:07:37 +01:00
adev
18865cec86
Implements down migration
2017-11-21 21:35:17 +01:00
adev
2680b0bc8c
Fix installation command
2017-11-21 21:35:17 +01:00
adev
18fb777b89
Add an initial migration
2017-11-21 21:35:16 +01:00
Nicolas Lœuillet
95b7d92ea5
Merge pull request #3425 from wallabag/add-setting-for-headers
...
Added internal setting to enable/disable headers storage
2017-11-21 13:26:24 +01:00
Kevin Decherf
b3d85e69e9
Fix MySQL issue on mig from #3373
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-11-20 22:39:33 +01:00
Nicolas Lœuillet
8a21985474
Added internal setting to enable/disable headers storage
2017-11-20 18:47:48 +01:00
Kevin Decherf
eae8138b33
Fix phpcs
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-11-19 15:26:13 +01:00
Kevin Decherf
e0ef1a1c8b
Add originUrl property to Entry, handle that in EntryRestController, handle migration
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-11-19 15:02:11 +01:00
Nicolas Lœuillet
abce2f05dd
Fixed @Kdecherf's review
2017-10-13 10:11:24 +02:00
Jeremy Benoist
705d3c38dc
CS
2017-10-13 09:35:44 +02:00
Nicolas Lœuillet
88bac4a33e
Changed reading_time field to prevent null values
2017-10-13 09:35:44 +02:00
Jeremy Benoist
3ef055ced3
CS
2017-10-09 16:47:15 +02:00
Jérémy Benoist
3af5d41759
Merge pull request #3139 from Kdecherf/2502-tag-case
...
Ignore tag's case
2017-09-03 20:25:15 +02:00
Kevin Decherf
7b4f66881d
php-cs-fixer on DoctrineMigrations/Version20170719231144
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-08-27 16:59:02 +02:00
Kevin Decherf
bd164a75c4
Add migration to change case of tags
...
This migration does not support SQLite as long as this engine does not
support Unicode in LOWER().
This migration starts by retrieving the list of lowercase tags which
need to be migrated. Then it retrieves the list of tags for each tags
from the previous step in order to migrate entries. It handles deletion
of empty tags. At the end the migration makes a full scan to update the
label of all remaining tags.
WARNING: THIS MIGRATION IS IRREVERSIBLE.
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2017-08-27 16:51:23 +02:00
François D
a991c46eed
Set a starred_at field when an entry is starred.
...
This date is used to sort starred entries.
Can not use Entry::timestamps method otherwise starred_at will be updated each time entry is updated.
Add an updateStar method into Entry class
A migration script has been added in order to set starred_at field.
2017-08-25 21:19:47 +02:00
Jeremy Benoist
f808b01692
Add a real configuration for CS-Fixer
2017-07-01 09:52:38 +02:00
Thomas Citharel
bead8b42da
Fix reviews
...
Encrypt username too
Redirect to list after saving credentials
Fix typos
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2017-06-20 16:03:39 +02:00
Jeremy Benoist
906424c1b6
Crypt site credential password
2017-06-20 16:03:35 +02:00
Jeremy Benoist
fd7fde9515
Force sequence creation for postgresql
2017-06-20 16:03:20 +02:00
Jeremy Benoist
f92fcb53ca
Add CRUD for site credentials
2017-06-20 16:03:08 +02:00
Jérémy Benoist
679aaf0836
Merge pull request #3173 from wallabag/domain-name-param
...
remove craueconfig domain name setting and add a proper one in parame…
2017-06-10 11:36:03 +02:00
Jeremy Benoist
80f4d85ac9
Review
2017-06-08 19:15:33 +02:00
Nicolas Lœuillet
7bb3aa3177
Merge pull request #3093 from aaa2000/annotation-error-on-save
...
Displays an error with an annotation with a too long quote
2017-06-07 16:30:27 +02:00
adev
c406cef5b6
Fix postgresql migration
2017-06-07 00:12:20 +02:00
Thomas Citharel
d6c4c484c4
add migration
2017-06-06 16:04:51 +02:00
adev
2c3e148b00
Displays an error with an annotation with a too long quote
...
Fix #2762
2017-06-04 11:38:29 +02:00
Jeremy Benoist
426bb453d2
API user creation behing a toggle
...
I've added a toggle feature (in internal settings) so that user api creation can be disabled while form registration still can be enabled.
Also, the /api/user endpoint shouldn't require authentication. Even if we check the authentication when sending a GET request, to retrieve current user information.
I've moved all the internal settings definition to config to avoid duplicated place to define them.
I don't know why we didn't did that earlier.
2017-06-02 11:32:38 +02:00
Nicolas Lœuillet
dda6a6addc
Added headers field in Entry
2017-05-11 14:18:21 +02:00
Nicolas Lœuillet
8c3158eba8
Added migration to change length for user fields
2017-05-10 10:46:32 +02:00
Nicolas Lœuillet
21d955f703
Cleaned craue_config_setting by removing useless download_pictures setting
2017-04-20 15:45:43 +02:00
Nicolas Lœuillet
64f1d8f77a
Merge pull request #3024 from wallabag/store-date
...
Added publication date and author
2017-04-18 13:12:28 +02:00
Nicolas Lœuillet
01736b5a2e
Removed is_public in Entry edit form
2017-04-13 15:54:19 +02:00