Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | local_user => local_channel | friendica | 2015-01-28 | 1 | -3/+3 |
| | |||||
* | PostgreSQL support initial commit | Habeas Codice | 2014-11-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres) | ||||
* | remove log statement | friendica | 2014-10-15 | 1 | -2/+0 |
| | |||||
* | missing event permissions | friendica | 2014-10-15 | 1 | -1/+2 |
| | |||||
* | cleanup some text where we said "public" or "visible to anybody on the ↵ | friendica | 2014-08-07 | 1 | -1/+1 |
| | | | | internet" when that isn't necessarily true. | ||||
* | only show jotnets when posting conversation items | friendica | 2014-06-14 | 1 | -2/+4 |
| | |||||
* | bootstrapify aclselector | marijus | 2014-04-11 | 1 | -2/+8 |
| | |||||
* | remove a couple of mysql reserved words from being used as table or row ↵ | friendica | 2013-12-22 | 1 | -1/+1 |
| | | | | names. For this round we're getting 'group' and 'desc'. Warning: potentially destabilising as this touches a lot of code. | ||||
* | quite a bit of work on default acl permissions and various acl quirks | friendica | 2013-11-29 | 1 | -11/+11 |
| | |||||
* | cleanup | friendica | 2013-03-10 | 1 | -35/+0 |
| | |||||
* | start formatting for Doxygen | friendica | 2013-02-25 | 1 | -1/+1 |
| | |||||
* | another sql error from the logs | friendica | 2013-02-08 | 1 | -1/+1 |
| | |||||
* | function contact_selector is no longer in use, commented out | Michael Meer | 2013-01-14 | 1 | -2/+2 |
| | |||||
* | some work bringing acl_selectors into the modern era | friendica | 2013-01-05 | 1 | -18/+8 |
| | |||||
* | the pioneers should at least have a current db - it will likely be some time ↵ | friendica | 2012-07-16 | 1 | -8/+2 |
| | | | | before db updates go into this tree as many incompatible things are changing and cannot be automatically migrated, so it will probably mean frequent reinstalls. | ||||
* | implement contact archival | friendica | 2012-04-27 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of https://github.com/friendica/friendica | Alexander Kampmann | 2012-04-05 | 1 | -0/+0 |
| | | | | | | Conflicts: include/config.php update.php | ||||
* | Use tabindex to enable easy navigation in the dialog to write private mails; ↵ | Tobias Hößl | 2012-03-16 | 1 | -6/+8 |
| | | | | Recipient -> Subject -> Text field (tabindex has to be set to the IFRAME element after TinyMCE started) -> Send button | ||||
* | Enabled automated doc building. Changes: | Alexander Kampmann | 2012-03-01 | 1 | -1/+6 |
| | | | | | | | | -build.xml, phing build file -@package tags at acl_selector.php and db_update.php -added documentation and some IDE files to .gitignore -automated tool to find files that corrupt the doc build process -removed ansi characters from SSH1.php, docBlox could not handle them | ||||
* | acl_selectors.php - Friendika -> Friendica | Abinoam P. Marques Jr | 2012-02-20 | 1 | -1/+1 |
| | |||||
* | add remove_user hook (it looks like dreamhost changed all my file ↵ | friendica | 2012-01-18 | 1 | -0/+0 |
| | | | | permissions, this will make a nasty commit) | ||||
* | d* pm | friendica | 2011-12-06 | 1 | -1/+1 |
| | |||||
* | diaspora admin toggle, update install guide | Friendika | 2011-08-22 | 1 | -1/+1 |
| | |||||
* | cleanup | Friendika | 2011-08-07 | 1 | -2/+2 |
| | |||||
* | New jot acl selector | Fabio Comuni | 2011-07-19 | 1 | -2/+15 |
| | |||||
* | ignore current contact on friend suggestion picker | Friendika | 2011-06-27 | 1 | -4/+15 |
| | |||||
* | new contact_selector function to provide more fine-tuned selection options. | Friendika | 2011-06-23 | 1 | -0/+99 |
| | |||||
* | friendika-z initial implementation | Friendika | 2011-06-23 | 1 | -0/+2 |
| | |||||
* | adjust acl_selector max name length to prevent div overflow | Friendika | 2011-06-02 | 1 | -1/+1 |
| | |||||
* | more indicators of public visibility | Friendika | 2011-05-19 | 1 | -1/+1 |
| | |||||
* | lots of facebook fixes | Friendika | 2011-04-26 | 1 | -4/+2 |
| | |||||
* | show email contacts in acl selector | Friendika | 2011-04-18 | 1 | -2/+5 |
| | |||||
* | ability to edit image permissions | Friendika | 2011-03-09 | 1 | -1/+1 |
| | |||||
* | don't truncate names across multi-byte char sequences | Friendika | 2011-02-24 | 1 | -2/+2 |
| | |||||
* | app not defined | Friendika | 2011-02-13 | 1 | -0/+2 |
| | |||||
* | post permission hooks | Friendika | 2011-02-09 | 1 | -0/+22 |
| | |||||
* | readjust name length limits - acl selector | Friendika | 2011-01-31 | 1 | -1/+1 |
| | |||||
* | truncate names in acl selector | Friendika | 2011-01-31 | 1 | -2/+5 |
| | |||||
* | limit privacy ACL's to networks which can handle privacy | Friendika | 2011-01-30 | 1 | -8/+9 |
| | |||||
* | add google buzz | Friendika | 2010-11-21 | 1 | -2/+2 |
| | |||||
* | view directory cleanup | Friendika | 2010-11-15 | 1 | -0/+138 |