Commit graph

408 commits

Author SHA1 Message Date
b8ec0e5e34 Database Structure version 1305
- Limit term_type index size
2019-03-25 01:05:14 -04:00
3f474d2941 Database Structure version 1305
- Add term_type index to term table
2019-03-23 19:18:15 -04:00
c9a7b8334a
Adding to database.sql too 2019-03-01 09:27:56 +01:00
7720b62799 Change workerqueue.parameter to mediumtext for lisibility 2019-01-23 09:07:01 -05:00
fabrixxm
736bcae3e8 update database.sql 2019-01-21 10:01:18 -05:00
4d26c9de03 Database Structure version 1292
- Add two fields to item-delivery-data table
2019-01-21 09:32:40 -05:00
fabrixxm
e5c2d4e2f8 Add Database storage backend
This storage store files data in a separate database table
2019-01-21 09:11:33 -05:00
fabrixxm
06157c2ab0 Update database.sql 2019-01-21 09:03:41 -05:00
5554448162 Now storing the "manually approve" data / fix update routine 2019-01-14 06:36:08 +00:00
6aef4aea0e Updated database.sql 2018-11-16 20:21:33 +00:00
8d0f4710a4 Signed Diaspora posts should now be stored more reliable 2018-10-15 21:42:55 +00:00
efad4936b0 OStatus contacts are now automatically converted to AP 2018-10-13 18:13:01 +00:00
46f77f3486 Detect the object type 2018-10-07 20:36:15 +00:00
Hypolite Petovan
d019a87ecc Update version to 2018.12-dev 2018-09-23 19:02:11 -04:00
Michael Vogel
edcd0a3744 Issue 4960: Ignoring and blocking of contacts should work again (#5657)
* Issue 4960: Ignoring and blocking of contacts should work again

* Renamed functions

* This function should be renamed as well.

* We now have a frontend to block and ignore public contacts

* Hide some parts for public contacts

* Removed notices, public contact is now accessible from dirfind as well

* We now show contact conversations and contact posts

* We now use a new conversation mode

* The update functionality is disabled until it will work completely

* Fixing tabs chaos

* Update after posts on the contacts page will now work

* Show connect link
2018-08-25 09:48:00 -04:00
Michael Vogel
276abfaba6 Issue 5158: Ignore all threads, even public ones (#5588)
* Issue 5158: Ignore all threads, even public ones

* Remove some notice

* Now it really should work

* Using "defaults"
2018-08-08 22:32:11 +02:00
Michael Vogel
fa46e97f27 We now store the uri data in a separate table (#5560)
* We now have a item-uri table

* Fixing line endings

* New item uri table

* Rescued ItemURI.php file

* Reverting some git problem

* Corrected the dbstructure file

* Updated database.sql / we now store content in the new id fields
2018-08-05 13:09:59 +02:00
Michael Vogel
986106a8f7 Item storage: Permissions aren't stored in the items anymore (#5495)
* The permission set is now used for item permissions

* Check for allow_cid, ... is superfluous. Checking for "private" is enough

* We query the permissionset

* Permissions are displayed correctly

* Changed index

* We don't store the permissions in the item table anymore

* Permission fields are now deprecated

* Reversed ...
2018-07-25 19:14:55 -04:00
Michael Vogel
ec49d004e3 We now store the item delivery data in a separate table (#5413)
* We now store the item delivery data in a separate table

* Reorganized table structure
2018-07-19 17:56:52 -04:00
Michael Vogel
5af9596dde New item field "Post-type" and new table "permissionset" (#5408)
* "post-type" replaces "bookmark" and "type"

* Removed some more type

* Added index to permission set

* The permission set is now stored

* The permission set is now removed upon expiry

* Post update now stores the permission set

* New file

* Permissions are now sorted

* Changed documentation
2018-07-19 09:52:05 -04:00
Michael Vogel
d3a2ed85fe Next item structure works (#5380)
* Use "LEFT JOIN" to always fetch the item. Needed for update routines.

* New conversion routine that now covers every item

* Post update is now activated

* We now use a hash based upon RIPEMD-320 for content and activity

* The hash doesn't contain the plink anymore

* Legacy item fields are now "null"able

* New hash function for a server unique item hash

* Introduction of the legacy mode (usage of old item fields)

* Code simplification

* We don't need the "uri" fields anymore in item-activity and item-content

* Use the "created" and not the "received" date for the hash

* Avoiding several notices

* Some more warnings removed

* Improved uri-hash / Likes on Diaspora are now getting a creation date

* Corrected the post update version

* Ensure an unique uri-hash

* Don't delete orhaned item data at the moment

* Partly reworked, due to strange behaviour

* Some more parts reworked

* Using the uri currently seems to be more reliable

* Using the uri here as well

* Use the hash values again

* Grouped item fields in different categories

* Notices again

* use the gravity (we always should)

* Added hint for disabled post updates

* Notices ...

* Issue #5337: Personal notes are displayed again

* Use the gravity again
2018-07-15 14:36:20 -04:00
Michael Vogel
ff5ee74ecf
Merge branch 'develop' into item-activities 2018-07-08 06:35:50 +02:00
43a7a1647d Update version number 2018-07-07 23:53:30 +00:00
f61aa2a3ee
fixed locks in database.sql 2018-07-07 17:59:22 +02:00
0c51159111 New index that is needed for the expiry 2018-07-06 06:46:44 +00:00
44e405d22b We now store activities in a separate table 2018-07-05 22:00:38 +00:00
bffdf96d87 The "file" variable isn't stored anymore in the item table 2018-07-01 07:57:59 +00:00
0ab9f2e265 Preparations to not store the tags in the item table anymore 2018-06-30 13:54:01 +00:00
a8a189eec4 The detected language now moved to "item-content" as well 2018-06-30 05:18:43 +00:00
bfe4842402 Changed database structure 2018-06-28 03:51:57 +00:00
6b568bb8fa Delete of item-content should work now 2018-06-25 20:23:32 +00:00
89fb28ae9b Content is now stored exclusively in item-content, connected via "icid" field 2018-06-25 04:56:32 +00:00
ca1add20a0 Small corrections to the database definition 2018-06-23 04:46:22 +00:00
rabuzarus
d5afbd3357 port hubzillas OpenWebAuth - rename verify table to openwebauth-token 2018-06-20 19:18:41 +02:00
rabuzarus
1c7f4e3c63 port hubzillas OpenWebAuth - remote authentification 2018-06-18 23:05:44 +02:00
Hypolite Petovan
0a13ab6b9f
Merge pull request #5166 from annando/unsed-item-fields
Remove unused, unneeded or redundant item fields
2018-06-03 12:19:50 -04:00
b654af28fa We need "global" 2018-06-03 09:40:32 +00:00
f081f15096 Updated sql file 2018-06-03 08:46:23 +00:00
3034170088 DBStruxture can now create "memory" tables as well 2018-06-02 05:03:23 +00:00
Hypolite Petovan
93daf7883e Merge branch 'master' into develop
- Updated new develop version label
- Incremented database build number
2018-06-01 07:30:04 -04:00
Hypolite Petovan
6d20785005 Fix version number in database.sql 2018-06-01 07:25:48 -04:00
Pascal Deklerck
99a88b16ff 4419 update DB version & database.sql 2018-05-29 16:11:25 +02:00
bdbc51229a Fix for not being able to delete items 2018-05-26 18:07:27 +00:00
e9848d7b8f End subscription for unreachable subscribers 2018-05-19 03:56:29 +00:00
0374b0be6a Changed database structure 2018-05-18 12:50:57 +00:00
6a8c85fac4 Changed database structure 2018-05-17 23:35:24 +00:00
e65bd0325e Added server discovery for their relais configuration 2018-03-26 05:44:53 +00:00
5bca333bf0 Fix: No "not null" when text is replaced by varchar 2018-03-24 21:57:50 +00:00
Hypolite Petovan
9abe3dade2 Bump database version number after RC merge 2018-03-23 20:01:53 -04:00
Hypolite Petovan
ecd660cb10 Updated version number 2018-03-23 06:39:51 -04:00
Hypolite Petovan
27d94023ee Merge branch 'master' into develop 2018-03-23 06:15:55 -04:00
5bd519efff There is now a "content-warning" field 2018-03-14 22:28:35 +00:00
Hypolite Petovan
f94134f556 Update database.sql according to process 2018-03-04 23:41:14 -05:00
Hypolite Petovan
4b361747a0 Update SQL scripts for cache table 2018-03-04 23:13:19 -05:00
fe68e99c7c The tag query should be much faster now 2018-02-26 06:59:32 +00:00
a59796d1d4 No gcontact-id anymore (It wasn't really used) 2018-02-21 05:15:55 +00:00
60764b7bc3 Oops ... 2018-02-20 12:59:37 +00:00
d90b93cfda Several more improvements to the database structure 2018-02-20 07:40:21 +00:00
6c26dcf1c7 The network is now just a 4 character field 2018-02-19 13:58:04 +00:00
2a762868e9 Some clean up for the worker, arrays are now supported as parameter 2018-02-11 16:18:39 +00:00
d70a20a466 We now incrementally calculate the queue delivery time 2018-02-08 18:39:48 +00:00
0093f863fd Don't add already queued items from Diaspora to the queue again 2018-02-08 11:26:24 +00:00
47d165cb25 Hook calls can now be forked into a worker queue entry 2018-02-06 22:52:36 +00:00
4949be60a8 Improved query speed 2018-02-01 00:29:47 +00:00
3fbc873ffe Birthdays are now transmitted reliably to Diaspora 2018-01-23 22:51:30 +00:00
Hypolite Petovan
4fb24d4ebb Make the user.legacy_password field boolean 2018-01-22 07:48:30 -05:00
Hypolite Petovan
c53c2fffa5 [database] Add user.legacy_password field 2018-01-20 22:24:58 -05:00
Hypolite Petovan
0bacff3994 Update database.sql with user.pwdreset_time field 2018-01-20 19:09:40 -05:00
034d46196f "last-child" is not used anymore 2018-01-18 06:54:44 +00:00
7af564442a SQL structure had changed 2018-01-15 06:43:28 +00:00
fc9453b7e9 Corrected field names 2018-01-12 23:20:19 +00:00
e12b6e01a2 Best "uid" for sending comments, refresh after commenting might work now 2018-01-07 17:14:43 +00:00
dab83c8b40 We now fetch the number of registered users 2017-12-18 23:58:18 +00:00
22d3960871 Updated SQL dump 2017-12-17 16:47:01 +00:00
0fb6150fae Updated database.sql 2017-12-05 22:22:21 +00:00
45227a12a6 "item_id" and "spam" aren't used 2017-12-05 22:20:49 +00:00
583914a548 Removed some unused tables and functions 2017-12-05 21:54:13 +00:00
9ffde01fc1 DBClean now works with the conversation table as well 2017-12-05 21:30:38 +00:00
6396f92d9b Bugfix for "Index column size too large" 2017-10-25 04:44:45 +00:00
0695fa699c Removed "service class" functionality 2017-10-18 21:44:27 +00:00
b3e20b1685 New database version 2017-08-14 05:49:49 +00:00
2bad626be6 Bugfix: Signatures for likes hadn't been stored 2017-07-15 04:03:50 +00:00
4515c36f69 Semaphore based locking and hopefully the fix for the workerqueue 2017-06-28 04:53:11 +00:00
2ad784d37a Speeded up calling "proc_run" 2017-06-07 05:42:30 +00:00
8d13751d40 Increased database version 2017-06-06 12:07:27 +00:00
945d3cc048 The constant CURLE_OPERATION_TIMEDOUT isn't defined on older PHP versions 2017-06-03 19:46:19 +00:00
21eb9a4b2e Fixed locking behaviour for the worker 2017-06-03 07:25:01 +00:00
782783aa52 New function "dba::update" and changed unique index for the conversations 2017-04-28 05:50:27 +00:00
35dc56c9c2 Salmons with Mastodon seem to work now 2017-04-27 20:38:46 +00:00
45d73b106b Conversation data is now stored in another table 2017-04-26 21:16:25 +00:00
Alexandre Alapetite
62768a1bb4 Bump version to 1219
https://github.com/friendica/friendica/pull/3321#pullrequestreview-32528437
2017-04-16 15:23:57 +02:00
Alexandre Alapetite
6b250d3ae9 Merge branch 'develop' into MySQL5.7 2017-04-16 15:16:58 +02:00
358aa1d7ef Database version updated 2017-04-14 22:34:01 +00:00
e7783e2018 Merge remote-tracking branch 'upstream/develop' into issue-3326 2017-04-14 22:30:48 +00:00
fdcb6d3c6f Issue 3326: We are now completely working with utf8mb4 2017-04-14 07:58:56 +00:00
Alexandre Alapetite
b8e4094e7b Allow negative contact.contat-type
https://github.com/friendica/friendica/issues/3328
2017-04-12 23:09:22 +02:00
Alexandre Alapetite
d2901dcb00 Fix for MySQL 5.7+
https://github.com/friendica/friendica/issues/2786

Only tested on Ubuntu 16.10 with MySQL 5.7.17.

https://dev.mysql.com/doc/refman/8.0/en/timestamp-initialization.html

https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_zero_date
As of MySQL 5.7.4, NO_ZERO_DATE is deprecated.

Patch based on the following search & replace (and then reverting some
changes in libraries):

```sh
grep -l '= "0000-00-00"' -r . | xargs sed -i -e "s/= \"0000-00-00\"/=
'0000-00-00'/g"

grep -l "0000-00-00" -r . | xargs sed -i -e "s/0000-00-00/0001-01-01/g"

grep -l "!= '0001-01-01'" -r . | xargs sed -i -e "s/!= '0001-01-01'/>
'0001-01-01'/g"

grep -l " === '0001-01-01'" -r . | xargs sed -i -e "s/ === '0001-01-01'/
<= '0001-01-01'/g"

grep -l " == '0001-01-01'" -r . | xargs sed -i -e "s/ == '0001-01-01'/
<= '0001-01-01'/g"

grep -l "strpos(\$dob, '0000-') === 0" -r . | xargs sed -i -e
"s/strpos(\$dob, '0000-') === 0/strpos(\$dob, '0000-') === 0 ||
strpos(\$dob, '0001-') === 0/g"

grep -l 'array("", "0001-01-01")' -r . | xargs sed -i -e 's/array("",
"0001-01-01")/array("", "0000-00-00", "0001-01-01")/g'

grep -l "\$dob = '0000-'" -r . | xargs sed -i -e "s/\$dob =
'0000-'/\$dob = '0001-'/g"
```
2017-04-11 23:00:45 +02:00
222550e784 From now on we are using 0001-01-01 as lowest date 2017-03-18 11:42:54 +00:00
4812f4c0f9 Without only the worker queue we don't need the deliverq anymore. 2017-03-16 07:30:59 +00:00
5c92e97173 Added index for performance issues 2017-03-02 05:46:44 +00:00