Commit graph

806 commits

Author SHA1 Message Date
Michael
2926282f8d More fields added to "user-contact" 2021-09-13 14:20:20 +00:00
Michael
84666a314a Rearranged fields 2021-09-13 08:22:11 +00:00
Michael
7c2913488c Remove deprecated fields 2021-09-12 21:02:29 +00:00
Michael
0a01f0443e Deprecated fields 2021-09-12 20:50:03 +00:00
Michael
b170dd765d Insert and update some more fields 2021-09-10 20:53:10 +00:00
Michael
a4b0ab90b1 Insert a user-contact for every contact 2021-09-10 13:05:16 +00:00
Michael
e28a4265c5 API: First steps to support subscriptions 2021-08-15 00:30:41 +00:00
Michael
ce46ab2573 The Matrix and XMPP address is now transported via AP as well 2021-08-10 23:49:09 +00:00
Michael
bee04f86ee Matrix addresses can be entered in the profile 2021-08-09 01:39:09 +00:00
Michael
6ea3d4aa61 Added API calls, removed fields 2021-07-29 10:34:31 +00:00
Michael
2951243b07 Preparation for delayed posts 2021-07-28 22:22:00 +00:00
Michael
c1f849c389 Unneeded legacy DFRN table removed 2021-07-22 07:11:26 +00:00
Michael
6668066099 The legacy OAuth server is removed 2021-07-20 17:41:04 +00:00
Michael
3a5523820c Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
Michael
d267ba999c We now use the new account-user-view (and fixed the function name) 2021-07-11 09:39:34 +00:00
Michael
58b84ca01d Public id added 2021-07-11 03:06:46 +00:00
Michael
f1e4d30898 New view chat combines all contact tables 2021-07-10 21:55:03 +00:00
Michael
07d2dfcd60 Some more "convertForUriId" replacements 2021-07-10 12:58:48 +00:00
Michael
6e79da0b0c The uri-id is now in all contact tables 2021-07-09 07:09:33 +00:00
Michael
dfe1d53342 Moved database structure 2021-07-08 19:16:23 +00:00
Michael
901c3f4855 we now have got an uri-id field for the contact table 2021-07-08 18:59:58 +00:00
Michael
178bc543e3 New founction to count threads 2021-07-08 17:32:41 +00:00
Michael
f29bd23ea8 New function to convert BBCode for a given ID 2021-07-08 13:47:46 +00:00
Michael
aed5e4cc96 New struture for post related links 2021-07-05 18:45:49 +00:00
Michael
e2dc36a691 AP: Support "discoverable" 2021-06-30 05:40:11 +00:00
Michael
fe07dc828b Fix noscrape publishing and pulling, added header 2021-06-17 11:23:32 +00:00
Michael
24cc82f396 API: (hopefully) improves speed of the public timeline 2021-06-12 15:19:56 +00:00
Michael
3f0937dd42 API: Show activity notifications 2021-06-01 05:51:03 +00:00
Michael
32d0d45adf Issue 10287: Don't show ignored and blocked posts 2021-05-24 10:51:21 +00:00
Michael
6fe916a390 API: improved mail handling 2021-05-22 13:37:04 +00:00
Michael
49207a8624 Added scope check 2021-05-16 07:37:11 +00:00
Michael
04c95f2441 added line break 2021-05-13 15:26:17 +00:00
Michael
b18073d5a8 Repurposed OAuth frontend handling, store the scope 2021-05-13 14:58:55 +00:00
Michael
9dd21bda6d OAuth login prototype 2021-05-11 06:19:23 +00:00
Michael
585d283ff9 Preparation for Oauth client registration 2021-05-09 22:23:21 +00:00
Michael
ef43aa1a4d Added database definition 2021-04-26 10:00:05 +00:00
Michael
688e056ad1 "post-reason" ends double usage of "post-type" 2021-04-07 06:02:06 +00:00
Michael
5666866812 Trending tags are now sort by different users 2021-03-11 19:59:42 +00:00
Michael
d30ec1eb58 More indexes / performance for "pinned" improved 2021-03-10 13:25:37 +00:00
Michael
1e56cee2c5 Issue 9906: Hopefully finally fixes the speed issues 2021-03-09 21:21:33 +00:00
Michael
d78345e694 Issue 9968: Avoid blocking update calls 2021-03-06 16:52:36 +00:00
Michael
470a47647a Small performance improvements, new view for future use 2021-03-06 05:47:49 +00:00
Michael
0277c55c43 Fix slow queries 2021-03-01 22:08:33 +00:00
Michael
dc18ba33f0 Fix PR #9949 2021-02-23 05:42:37 +00:00
Michael
1792046a4f post/thread views are renamed, search bugs fixed 2021-02-22 19:47:08 +00:00
Michael
eb07089088 More missing indexes 2021-02-21 16:43:06 +00:00
Michael
1c13a08d52 Updated database.sql 2021-02-21 13:14:17 +00:00
Michael
d78cf95495 Added index, join order fixed 2021-02-21 05:28:27 +00:00
Michael
bb59ca4de8 Added mistakenly removed field 2021-02-20 21:33:21 +00:00
Michael
abf7cbcc45 Updated database.sql 2021-02-20 20:51:08 +00:00
Michael
abcbbd2ec1 Merge remote-tracking branch 'upstream/develop' into no-item 2021-02-19 06:59:45 +00:00
Michael
c247d5fbeb The item table is now completely removed 2021-02-19 06:30:38 +00:00
Hypolite Petovan
7de03eb13f [Database version 1402] Rework parsed_url table
- Allow arbitrary-sized URL
- Use URL hash for primary key instead of truncated URL, requires table truncation pre update
- Add expires field
2021-02-18 08:49:33 -05:00
Michael
312c01a517 Several speed improvements (magiclink, caching, indexes) 2021-02-17 18:59:19 +00:00
Michael
60a6dfa23c Fix several database issues 2021-02-16 22:04:03 +00:00
Michael
649901f3ea Network update does work now again 2021-02-15 17:34:31 +00:00
Michael
1778e57baf Missing field in view 2021-02-15 06:14:53 +00:00
Michael
5f3c00271a Updated database.sql 2021-02-14 22:05:00 +00:00
Michael
07c07ec499 More "item" traces removed 2021-02-14 09:43:27 +00:00
Michael
ce6ad1aa73 Get rid of the "item" table, enhanced "post" tables 2021-02-13 19:56:03 +00:00
Michael
91ecbb1754 Updated database.sql 2021-02-09 17:11:52 +00:00
Michael
f1377ce7fb Issue 9906: Improved view speed 2021-02-09 16:35:01 +00:00
Michael
ab5a447bc2 The "thread" table isn't used anymore 2021-02-08 07:48:36 +00:00
Michael
5e846dd7c2 The thread table is replaced by post-thread and post-thread-user 2021-02-04 05:51:25 +00:00
Michael
e561cad844 "participation" is removed since it is unused 2021-02-02 06:28:51 +00:00
Michael
df24c0daeb User-Item table is replaced 2021-02-02 05:45:57 +00:00
Michael
b26157e6e3 Update function for "post-user-notification" 2021-02-01 20:11:25 +00:00
Michael
08317036e7 List of deprecated fields is checked 2021-02-01 07:06:01 +00:00
Michael
c1d99d6c4c Most user-item traces removed 2021-01-31 23:37:34 +00:00
Michael
30cc806c60 Added database.sql 2021-01-30 22:43:50 +00:00
Hypolite Petovan
9a4128a5c8
Merge pull request #9873 from annando/post-user
New "post-user" structure, new update  functionality
2021-01-28 19:32:17 -05:00
Michael
57ed388f9a Updated database.sql 2021-01-28 22:52:05 +00:00
Hypolite Petovan
b633d75e6c [Database version 1394] Add 2fa_trusted_browser table 2021-01-23 05:42:58 -05:00
Michael
d2ea3eabfb Replace legacy file/category handling 2021-01-21 07:16:41 +00:00
Michael
a773a72eaa The "icid" field is deprecated 2021-01-19 23:26:24 +00:00
Michael
b892db0cf3 All item selects are now done by the post class 2021-01-19 07:23:01 +00:00
Michael
2d0443a109 Avoid duplicates in post-view 2021-01-18 22:26:17 +00:00
Michael
f9430175c6 Avoid multiple lines in post-view, added thread view 2021-01-18 07:10:04 +00:00
Michael
4157db5473 "item" is replaced by "post-view" / postupdate check added 2021-01-17 20:32:13 +00:00
Michael
608d3b2b32 The view can be made simpler 2021-01-17 10:14:38 +00:00
Michael
8643603f8b Fix "Item couldn't be fetched." 2021-01-17 10:04:47 +00:00
Michael
d6052d309c Make the group member be "LEFT JOIN" 2021-01-16 23:46:57 +00:00
Michael
d0174b57dd Add group id 2021-01-16 23:14:37 +00:00
Michael
2b1d0b9db8 "selectForUser" and "" selectFirstForUser" is now moved to Post 2021-01-16 22:37:27 +00:00
Michael
3ab4e20fe6 Some more fields that will be needed for the user query 2021-01-15 11:46:57 +00:00
Michael
4cc52cef6b Added "blocked" fields 2021-01-15 11:31:24 +00:00
Michael
a19e411000 User-Item is not needed 2021-01-15 09:13:18 +00:00
Michael
f4addd337d New database version, fixes to empty field list 2021-01-14 22:51:44 +00:00
Michael
bf563a1a39 Store the server transport protocol 2021-01-10 19:08:23 -05:00
Michael
7f56e2e7a9 Improve photo loading speed 2020-12-26 18:51:36 +00:00
Michael
8cbe2f025b Updates database version 2020-12-03 15:50:14 +00:00
Michael
90349d14e1 Chaning wording 2020-12-02 14:55:57 +00:00
Michael
bd4dc10588 Ensure that the database.sql contains "if exists" 2020-12-02 08:50:45 +00:00
Michael
b2dadf0f92 Use a combined unique index 2020-12-02 00:34:10 +00:00
Michael
61ecdf789c Fix table structure 2020-12-01 22:21:44 +00:00
Michael Vogel
1e22c9f5eb
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-11-29 17:09:51 +01:00
Michael
0b99c0d98f Updated database.sql 2020-11-29 09:03:19 +00:00
Michael
818c064c0a The notifications parameters are now simplified 2020-11-25 19:56:39 +00:00
Michael
12e234656c Updated database.sql 2020-11-24 06:26:26 +00:00
Michael
deae47cbfd Increasing version number 2020-11-20 00:22:56 +00:00
Michael
190e0ff913 Moved table 2020-11-20 00:17:32 +00:00
Michael
adc49724dd Use "int" 2020-11-20 00:05:25 +00:00
Michael
e673da536c tinyint 2020-11-20 00:02:00 +00:00
Michael
d5cc466603 Mediumint 2020-11-19 23:52:07 +00:00
Michael
cd4a2bce9c Trying "tinyint" 2020-11-19 23:39:18 +00:00
Michael
b2e7a9cc5c Trying "int" 2020-11-19 23:28:10 +00:00
Michael
2255a5d41a Foreign key for verb 2020-11-19 23:21:31 +00:00
Michael
c07573e25f Test for failed test 2020-11-19 16:15:00 +00:00
Michael
cbfea67ba6 Improved key length 2020-11-19 09:47:59 +00:00
Michael
3af5f6b8ee Some more foreign keys added 2020-11-19 06:26:30 +00:00
Michael
a2c652bef5 No "not null" 2020-11-18 00:31:05 +00:00
Michael
4c78ac3ce2 Avoid foreign key problem 2020-11-18 00:24:38 +00:00
Michael
5668192f38 Moved table definition 2020-11-17 22:49:55 +00:00
Michael
eaa58da25b New table "post-user" and more foreign keys 2020-11-17 22:33:44 +00:00
Hypolite Petovan
682b9c24f8 Update database.sql with the latest structure changes 2020-11-15 11:42:46 -05:00
Michael Vogel
55f26218af
Merge pull request #9500 from MrPetovan/bug/9326-owner-view-blocked
[dbstructure 1373] Replace contact.blocked with user.blocked in owner-view
2020-11-08 08:45:12 +01:00
Hypolite Petovan
254b5ae07a [dbstructure 1373] Replace contact.blocked with user.blocked in owner-view
- It was falsely reporting blocked users as unblocked since we don't block the public self contact
2020-11-08 02:35:55 -05:00
Michael
43749c3069 The "attach" field is now deprecated 2020-11-07 08:22:59 +00:00
Michael
e548d647aa New table for attached media files 2020-10-29 05:20:26 +00:00
Michael
c03698953c Added database.sql 2020-10-05 16:50:38 +00:00
Michael
93cd85595c Added foreign key 2020-09-22 07:19:44 +00:00
Michael
338ddf45b1 We now store the causer-id in the items 2020-09-22 05:36:01 +00:00
Hypolite Petovan
4a15c5fcfe Welcome 2020.12-dev 2020-09-20 15:40:56 -04:00
Michael
7fba4145ed Updated database.sql 2020-09-19 12:53:20 +00:00
Michael
dfeae25e6d Issue 9231: Speed up full text search 2020-09-19 08:26:50 +00:00
Michael
6acf660ebd New model class "host" 2020-09-02 19:19:00 +00:00
Michael
247d87c4e5 Added "manually-approve" to the owner-view 2020-09-02 03:18:04 +00:00
Michael
c8069eda0c New field "manually-improved" 2020-09-02 03:06:44 +00:00
Michael
104c4bd734 More foreign keys added, one removed 2020-08-26 05:32:47 +00:00
Michael
9113b7e393 database.sql added 2020-08-24 20:09:03 +00:00
Michael
cbdaf6298a New foreign key for the "photo" table 2020-08-21 18:37:58 +00:00
Michael
2b13fc8efe Fix the network view 2020-08-19 19:10:30 +00:00
Michael Vogel
b5cca1ab93 Some small performance tweaks (indexes) 2020-08-18 12:50:18 +02:00
Michael
71d9037970 Some further cleaning up 2020-08-15 12:06:18 +00:00
Michael
24b5396b1d Using a view for the network page 2020-08-15 11:31:34 +00:00
Michael
76705664cd Remove the unused tables 2020-08-03 18:26:23 +00:00
Michael
4c089a1f87 "gcign" is removed 2020-07-31 17:58:25 +00:00
Michael
18617f6c48 Fetch followers/followings of contacts 2020-07-26 07:34:33 +00:00
Michael
ebcf757244 database.sql updates 2020-07-19 10:04:50 +00:00
Hypolite Petovan
34463f37e4 Rename contact table column to ffi_keyword_denylist 2020-06-07 11:24:52 -04:00
Michael
62217735f0 Use webfinger in apcontact fetch 2020-06-04 21:55:14 +00:00
Michael
64f3dd419c Updated database description 2020-05-29 02:19:58 +00:00
Michael
a77b7793a8 Rearranged table order 2020-05-22 05:06:55 +00:00
Michael
07bad22fa4 Database structure updated 2020-05-22 05:00:55 +00:00
Michael
451138453a Updated database definition 2020-05-16 20:59:42 +00:00
Michael
9a1de3100d Rearranged dbstructure 2020-05-15 12:17:13 +00:00
Michael
7a82171bfe The "term" table is removed 2020-05-15 06:50:20 +00:00
Michael
7a8d9689e5 Database description updated 2020-05-09 16:30:03 +00:00
Michael
5725784055 Update database definition, cleaned code 2020-05-05 15:47:35 +00:00
Michael
59675c4f0b Merge remote-tracking branch 'upstream/develop' into no-term2 2020-05-05 15:44:24 +00:00
Michael
2ee14bf5fe Merge remote-tracking branch 'upstream/develop' into post-delivery-data 2020-05-05 14:08:29 +00:00
Michael
b261df14af Updated database versions 2020-05-04 15:23:45 +00:00
Michael
6b1b052308 Updated database version in sql file 2020-05-04 14:42:24 +00:00
Michael
098ba4a667 "item-delivery-data" is now "post-delivery-data" 2020-05-02 19:34:02 +00:00
Michael
2a1cdfa36b Diaspora participations are now atored as activities 2020-05-02 08:52:11 +00:00
Michael
881c9bbd70 Increased db version number 2020-04-28 19:46:59 +00:00
Michael
749c2ce4ab Updated database description 2020-04-24 15:44:41 +00:00
Michael
6011598bc2 Database definition updated 2020-04-24 13:43:07 +00:00
Michael
63ebbb8a16 We now can define views 2020-04-23 06:19:44 +00:00
Michael
552fd98657 The "sign" table had been removed 2020-04-13 16:27:40 +00:00
Michael
c261457b03 Store the interaction date as well. 2020-03-10 22:04:03 +00:00
Michael
37376fa715 Issue 8371: Improvements for picture permissions 2020-03-08 13:16:59 +00:00
Michael
d6905e29cf Query the same contact only once a month 2020-03-07 05:31:03 +00:00
Michael
bd77556b49 New table for relations between global contacts - will replace glink in the future 2020-03-06 08:08:49 +00:00
Michael
af6db65961 Store the push/pull direction in the conversation table 2020-03-03 08:01:04 +00:00
Michael
dc9ea15bb1 Updated field description 2020-03-02 20:48:26 +00:00
Michael
530ecb27cf Updated database.sql 2020-03-02 20:31:16 +00:00
Hypolite Petovan
da09215db8 [Database] Version 1333
- Exchange profile.pdesc for profile.about
2020-02-09 02:35:46 -05:00
Hypolite Petovan
2171cc8a32 [Database] Structure version 1332
- Deprecated several fields in profile table
2020-01-22 19:42:36 -05:00
Hypolite Petovan
6857d24995 [Database] Structure version 1331
- Add profile_field table
2020-01-22 19:42:33 -05:00
nupplaPhil
d6fab6b06b
making update really work ... 2020-01-10 13:21:59 +01:00
Michael
bad50d31c0 Added index for performance considerations 2020-01-05 12:48:18 +00:00
Michael
4bfd0abec7 New "UserItem" class, new notification type field 2020-01-04 12:21:42 +00:00
Michael
90408b9d49 Discover directory type 2019-12-21 13:48:20 +00:00
Michael
533f07e874 Issue 6867: Only display direct mentions in the corresponding API endpoint 2019-12-15 13:14:55 +00:00
Michael
911a854255 APContact: Added follower count, following count and count of posts 2019-12-11 00:05:50 +00:00
Hypolite Petovan
f2c31ef1c0
Merge pull request #7828 from nupplaphil/task/move_enotify
Remove unnecessary code in "include/enotify"
2019-11-09 16:48:26 -05:00
Philipp Holzer
f9e3ff4b55
Remove unnecessary hash function.
- Was introduced for getting the last inserted ID before "lastInstertID()" was possible
- See b821399f00 (diff-a8e86a3c07531e66a3b0b4c8b4b07879R148)
2019-11-09 21:50:52 +01:00
Michael
ed58af25a5 show pinned items 2019-11-07 06:53:18 +00:00
Michael
cf56992444 We can now pin our own posts 2019-11-07 05:39:15 +00:00
Philipp Holzer
a94c4fc440
Revert "Add not null/default value for ACL in fields"
This reverts commit 1f535016 due incompatible combination
2019-10-28 21:59:55 +01:00
Philipp Holzer
1f535016d4
Add not null/default value for ACL in fields 2019-10-28 21:47:43 +01:00
Michael
a483ea8acb Increasing database version number 2019-08-21 21:11:37 +00:00
Michael
5a1a5a54dc Delivery count now counts the failed delivery attempts as well 2019-08-20 07:39:13 +00:00
Michael
41a1c1c3e6 Fetch items by given uri 2019-07-18 06:11:02 +00:00
Jeroen De Meerleer
01dc0c031c There are no dead nodes anymore 2019-07-09 09:23:36 +02:00
Hypolite Petovan
fe8a53425a
Revert "Changed unavailable to in a relation" 2019-07-08 15:55:08 -04:00
Jeroen De Meerleer
98b6764bfd Fixed DB_UPDATE_VERSION in database.sql
thanks @nupplaphil
2019-07-08 08:11:53 +02:00
Michael
ef5be9668f New fields in contact table / don't update on probe 2019-07-04 04:08:55 +00:00
Michael
1d7154a7d1 Update the gcontact entry when the public contact entry has changed 2019-07-02 09:06:48 +00:00
Michael
0a15222576 Collect data about used protocols for delivery 2019-06-28 09:03:58 +00:00
Michael
c66927a12b Updated database sql description 2019-05-05 10:40:02 +00:00
Michael
28f316b7e4 Replace the legacy DFRN connection process with AP 2019-05-02 13:05:31 +00:00
Michael
e268b50890 Updated database structure file 2019-04-09 05:50:51 +00:00
Michael
911ad99e61 Table definition removed 2019-04-05 19:27:32 +00:00
Michael
87cdbfcee4 Updated database.sql 2019-03-26 21:38:15 +00:00
Michael
55325f191b Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure 2019-03-26 21:36:46 +00:00
Michael
198e150ba8 Archive inboxes after 5 days of delivery failures 2019-03-25 21:51:32 +00:00
Hypolite Petovan
b8ec0e5e34 Database Structure version 1305
- Limit term_type index size
2019-03-25 01:05:14 -04:00
Hypolite Petovan
3f474d2941 Database Structure version 1305
- Add term_type index to term table
2019-03-23 19:18:15 -04:00
Philipp Holzer
c9a7b8334a
Adding to database.sql too 2019-03-01 09:27:56 +01:00
Hypolite Petovan
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
Hypolite Petovan
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
Michael
5554448162 Now storing the "manually approve" data / fix update routine 2019-01-14 06:36:08 +00:00
Michael
6aef4aea0e Updated database.sql 2018-11-16 20:21:33 +00:00
Michael
8d0f4710a4 Signed Diaspora posts should now be stored more reliable 2018-10-15 21:42:55 +00:00
Michael
efad4936b0 OStatus contacts are now automatically converted to AP 2018-10-13 18:13:01 +00:00
Michael
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
Michael
43a7a1647d Update version number 2018-07-07 23:53:30 +00:00
Philipp Holzer
f61aa2a3ee
fixed locks in database.sql 2018-07-07 17:59:22 +02:00
Michael
0c51159111 New index that is needed for the expiry 2018-07-06 06:46:44 +00:00
Michael
44e405d22b We now store activities in a separate table 2018-07-05 22:00:38 +00:00
Michael
bffdf96d87 The "file" variable isn't stored anymore in the item table 2018-07-01 07:57:59 +00:00
Michael
0ab9f2e265 Preparations to not store the tags in the item table anymore 2018-06-30 13:54:01 +00:00
Michael
a8a189eec4 The detected language now moved to "item-content" as well 2018-06-30 05:18:43 +00:00
Michael
bfe4842402 Changed database structure 2018-06-28 03:51:57 +00:00
Michael
6b568bb8fa Delete of item-content should work now 2018-06-25 20:23:32 +00:00
Michael
89fb28ae9b Content is now stored exclusively in item-content, connected via "icid" field 2018-06-25 04:56:32 +00:00
Michael
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
Michael
b654af28fa We need "global" 2018-06-03 09:40:32 +00:00
Michael
f081f15096 Updated sql file 2018-06-03 08:46:23 +00:00
Michael
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
Michael
bdbc51229a Fix for not being able to delete items 2018-05-26 18:07:27 +00:00
Michael
e9848d7b8f End subscription for unreachable subscribers 2018-05-19 03:56:29 +00:00
Michael
0374b0be6a Changed database structure 2018-05-18 12:50:57 +00:00
Michael
6a8c85fac4 Changed database structure 2018-05-17 23:35:24 +00:00
Michael
e65bd0325e Added server discovery for their relais configuration 2018-03-26 05:44:53 +00:00
Michael
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
Michael
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
Michael
fe68e99c7c The tag query should be much faster now 2018-02-26 06:59:32 +00:00
Michael
a59796d1d4 No gcontact-id anymore (It wasn't really used) 2018-02-21 05:15:55 +00:00
Michael
60764b7bc3 Oops ... 2018-02-20 12:59:37 +00:00
Michael
d90b93cfda Several more improvements to the database structure 2018-02-20 07:40:21 +00:00
Michael
6c26dcf1c7 The network is now just a 4 character field 2018-02-19 13:58:04 +00:00
Michael
2a762868e9 Some clean up for the worker, arrays are now supported as parameter 2018-02-11 16:18:39 +00:00
Michael
d70a20a466 We now incrementally calculate the queue delivery time 2018-02-08 18:39:48 +00:00
Michael
0093f863fd Don't add already queued items from Diaspora to the queue again 2018-02-08 11:26:24 +00:00
Michael
47d165cb25 Hook calls can now be forked into a worker queue entry 2018-02-06 22:52:36 +00:00
Michael
4949be60a8 Improved query speed 2018-02-01 00:29:47 +00:00
Michael
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
Michael
034d46196f "last-child" is not used anymore 2018-01-18 06:54:44 +00:00
Michael
7af564442a SQL structure had changed 2018-01-15 06:43:28 +00:00
Michael
fc9453b7e9 Corrected field names 2018-01-12 23:20:19 +00:00
Michael
e12b6e01a2 Best "uid" for sending comments, refresh after commenting might work now 2018-01-07 17:14:43 +00:00
Michael
dab83c8b40 We now fetch the number of registered users 2017-12-18 23:58:18 +00:00
Michael
22d3960871 Updated SQL dump 2017-12-17 16:47:01 +00:00
Michael
0fb6150fae Updated database.sql 2017-12-05 22:22:21 +00:00
Michael
45227a12a6 "item_id" and "spam" aren't used 2017-12-05 22:20:49 +00:00
Michael
583914a548 Removed some unused tables and functions 2017-12-05 21:54:13 +00:00
Michael
9ffde01fc1 DBClean now works with the conversation table as well 2017-12-05 21:30:38 +00:00
Michael
6396f92d9b Bugfix for "Index column size too large" 2017-10-25 04:44:45 +00:00
Michael
0695fa699c Removed "service class" functionality 2017-10-18 21:44:27 +00:00
Michael
b3e20b1685 New database version 2017-08-14 05:49:49 +00:00
Michael
2bad626be6 Bugfix: Signatures for likes hadn't been stored 2017-07-15 04:03:50 +00:00
Michael
4515c36f69 Semaphore based locking and hopefully the fix for the workerqueue 2017-06-28 04:53:11 +00:00
Michael
2ad784d37a Speeded up calling "proc_run" 2017-06-07 05:42:30 +00:00
Michael
8d13751d40 Increased database version 2017-06-06 12:07:27 +00:00
Michael
945d3cc048 The constant CURLE_OPERATION_TIMEDOUT isn't defined on older PHP versions 2017-06-03 19:46:19 +00:00
Michael
21eb9a4b2e Fixed locking behaviour for the worker 2017-06-03 07:25:01 +00:00
Michael
782783aa52 New function "dba::update" and changed unique index for the conversations 2017-04-28 05:50:27 +00:00
Michael
35dc56c9c2 Salmons with Mastodon seem to work now 2017-04-27 20:38:46 +00:00
Michael
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
Michael
358aa1d7ef Database version updated 2017-04-14 22:34:01 +00:00
Michael
e7783e2018 Merge remote-tracking branch 'upstream/develop' into issue-3326 2017-04-14 22:30:48 +00:00
Michael
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
Michael
222550e784 From now on we are using 0001-01-01 as lowest date 2017-03-18 11:42:54 +00:00
Michael
4812f4c0f9 Without only the worker queue we don't need the deliverq anymore. 2017-03-16 07:30:59 +00:00
Michael
5c92e97173 Added index for performance issues 2017-03-02 05:46:44 +00:00
Michael
402c74f8ea Changed database.sql 2017-01-20 15:00:14 +00:00
Michael
0548099f6c The config class now makes less database reads. 2017-01-18 21:45:32 +00:00