Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PostgreSQL support initial commit | Habeas Codice | 2014-11-13 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 unused email template files | zottel | 2014-10-10 | 4 | -75/+0 |
| | |||||
* | make verify_email the default for new installs (at least English installs), ↵ | friendica | 2014-09-10 | 1 | -0/+5 |
| | | | | and provide a setting on the admin page for it. | ||||
* | some initial work towards email address verification | friendica | 2014-07-03 | 1 | -0/+25 |
| | |||||
* | Clean up legacy smarty3 | Thomas Willingham | 2014-04-19 | 10 | -301/+0 |
| | |||||
* | removed default maximagesize - it can be set in the admin pages. | friendica | 2014-04-02 | 1 | -4/+0 |
| | |||||
* | This should be a slight improvement in setting ciphers - we'll punt on ↵ | friendica | 2014-03-25 | 1 | -7/+0 |
| | | | | RedHat but open up the list just for openssl distros which seem to have all the problems at the moment. | ||||
* | ssl ciphers - be liberal in what we accept, conservative in what we generate | friendica | 2014-03-24 | 1 | -0/+7 |
| | |||||
* | notification bug - don't use $r, we already set it to something else that we ↵ | friendica | 2014-02-06 | 1 | -1/+2 |
| | | | | need further on. | ||||
* | INSTALL for dummies - step 1: ensure that we throw an ugly error message in ↵ | friendica | 2013-11-05 | 1 | -0/+11 |
| | | | | | | | their face if there's an ugly error when we first try to install. DON'T white screen until after they've got it running. | ||||
* | add "tiered" access policy, add tagcloud to directory pages | friendica | 2013-09-18 | 1 | -2/+8 |
| | |||||
* | if changing primary hub during an import operation - remove the old xchan ↵ | friendica | 2013-08-19 | 1 | -1/+1 |
| | | | | and create a fresh xchan pointing at this instance. Also a minor edit to increase the default photo upload limit for new sites. There aren't many cameras left that will take photos < 800k in size. | ||||
* | Add a site access policy (to determine if this is really a public site or ↵ | friendica | 2013-08-06 | 1 | -0/+14 |
| | | | | just an open site) and add an orphan flag to xchans in case all their hublocs go away. Get rid of a couple of DO NOT EDIT template messages which were still lurking in the tree. | ||||
* | convert all the remaining email templates to smarty | friendica | 2013-05-16 | 8 | -51/+53 |
| | |||||
* | update email template to smarty (several more to go) | friendica | 2013-05-15 | 1 | -5/+5 |
| | |||||
* | fix intltext templates - maybe | friendica | 2013-05-15 | 1 | -10/+10 |
| | |||||
* | add port settings to setup | friendica | 2013-05-15 | 1 | -0/+1 |
| | |||||
* | Sort out registrations requiring approval | friendica | 2013-02-11 | 4 | -12/+12 |
| | |||||
* | add soapbox settings | friendica | 2013-02-10 | 2 | -8/+28 |
| | |||||
* | perhaps REGISTER_VERIFY will work now. I'll test it and make certain it ↵ | friendica | 2013-02-08 | 2 | -2/+2 |
| | | | | works some day. But not today. | ||||
* | add newline at end of header | Zach Prezkuta | 2013-01-11 | 10 | -2/+12 |
| | |||||
* | add warning messae about automatically generated templates | Zach Prezkuta | 2013-01-11 | 10 | -10/+50 |
| | |||||
* | add Smarty templates for international templates | Zach Prezkuta | 2013-01-10 | 10 | -0/+241 |
| | |||||
* | provide a default directory configuration (client) | friendica | 2012-12-26 | 1 | -3/+6 |
| | |||||
* | fixed several little nit bugs that cropped up during deployment | friendica | 2012-12-06 | 1 | -23/+7 |
| | |||||
* | All the themes except one are horked anway | friendica | 2012-11-06 | 1 | -1/+1 |
| | |||||
* | new install settings | friendica | 2012-10-18 | 1 | -0/+2 |
| | |||||
* | use a single language config until all the new options are in place | friendica | 2012-10-17 | 1 | -21/+4 |
| | |||||
* | relocate register policy setting in language htconfig templates | friendica | 2012-10-07 | 1 | -1/+1 |
| | |||||
* | provide auto admin registration as before, but allow the current admin to ↵ | friendica | 2012-10-04 | 1 | -1/+1 |
| | | | | create other admins | ||||
* | implement "follow" service limits | friendica | 2012-06-24 | 1 | -1/+1 |
| | |||||
* | bring back the email and logging of update failures, but without the ↵ | friendica | 2012-04-28 | 1 | -0/+11 |
| | | | | transactions | ||||
* | escape email template var names. fix bug n385. | Fabio Comuni | 2012-04-20 | 8 | -50/+50 |
| | |||||
* | Merge branch 'master' of https://github.com/friendica/friendica | Alexander Kampmann | 2012-04-05 | 9 | -0/+0 |
| | | | | | | Conflicts: include/config.php update.php | ||||
* | htconfig.tpl - Friendika -> Friendica | Abinoam P. Marques Jr | 2012-02-20 | 1 | -2/+2 |
| | |||||
* | by default allow pseudonyms | friendica | 2012-01-25 | 1 | -0/+3 |
| | |||||
* | add remove_user hook (it looks like dreamhost changed all my file ↵ | friendica | 2012-01-18 | 9 | -0/+0 |
| | | | | permissions, this will make a nasty commit) | ||||
* | remove some old email templates | friendica | 2012-01-03 | 8 | -153/+0 |
| | |||||
* | Merge branch 'master' into notify | friendica | 2011-12-12 | 1 | -6/+0 |
|\ | |||||
| * | remove all plugins from default config | friendica | 2011-12-12 | 1 | -6/+0 |
| | | |||||
* | | notifications refactor | friendica | 2011-12-08 | 1 | -1/+1 |
|/ | |||||
* | add expire_starred option, fix "delete selected" on some themes, new project ↵ | friendica | 2011-11-21 | 3 | -8/+8 |
| | | | | name in email templates | ||||
* | input the admin email address during install/setup. | Friendika | 2011-07-07 | 1 | -1/+1 |
| | |||||
* | improve colour balance and banner on html email notifications | Friendika | 2011-05-31 | 3 | -3/+4 |
| | |||||
* | merged multipart email changes | Chris Case | 2011-05-21 | 33 | -1484/+15 |
|\ | |||||
| * | issues with private photos - hitting internal size limits | Friendika | 2011-05-04 | 1 | -1/+1 |
| | | |||||
| * | the rest of the english html templates except for htconfig | Friendika | 2011-04-07 | 10 | -879/+0 |
| | | |||||
| * | more templates | Friendika | 2011-04-07 | 5 | -57/+0 |
| | | |||||
| * | Add some text suggesting that new folks add some basic profile information ↵ | Friendika | 2011-04-06 | 1 | -1/+14 |
| | | | | | | | | if they want to make any friends. | ||||
| * | more templates | Friendika | 2011-04-06 | 2 | -35/+0 |
| | |