Commit Graph

193 Commits (8b8a2bd63443dc9defbba4b0ab03801955ae406a)

Author SHA1 Message Date
Dries Buytaert fd37c0db4b - Added default table values to MSSQL database scheme. Patch by Moshe. Fixes bug #1571. 2003-04-28 20:53:42 +00:00
Dries Buytaert b85cf71962 - Applied modified version of Al's "block delta" patch. I left out the
blogroll feature as I think it would get very confusing.  I don't mind
  to add it but it need some thought and documentation as it somewhat
  conflicts with the existing cloud module.

  These changes require you to run update.php.
2003-04-19 16:42:42 +00:00
Dries Buytaert 9d5fb1029a - Made sure the admin menu is enabled after a fresh install. This is
required to make the menu show up.

  This partly fixes bug #1508.
2003-04-18 22:33:15 +00:00
Dries Buytaert fd9635e63a - Some MSSQL related fixes by Moshe. 2003-04-13 17:12:52 +00:00
Dries Buytaert 164003ed91 - Added missing tid-column to the forum table. Patch by Anarcat. 2003-04-13 15:26:52 +00:00
Dries Buytaert 2e2e247979 - Added missing 'created' field to 'cache' table. 2003-03-19 21:55:32 +00:00
Dries Buytaert 2976bc59f0 - The link field got accidentically removed. Thanks Stephane. 2003-03-18 21:03:42 +00:00
Dries Buytaert 170b674a09 - All LIMIT queries must go through the pager or through db_query_range().
The syntax for db_query_range() was enhanced so it matches db_query(). So
  you may pass extra arguments of the SQL statement which are checked via
  check_query() and then substituted into the SQL statement. After these
  optional arguments, you always pass $from and $count parameters which
  define your range.  Most often, the $from is 0 and the count is the max
  number of records you want returned.  Patch by Moshe.

- The pager_query() function for PEAR was enhanced so that it adds  proper
  GROUP BY statement counting the number of records to be paged. Patch by
  James Arthur.

- MSSQL database scheme by Moshe.
2003-03-16 07:02:20 +00:00
Dries Buytaert 6dc1cf59ba - Added a database scheme for Microsoft's SQL server. 2003-03-16 06:34:59 +00:00
Dries Buytaert a8edbf638f - Removing the menu table: it is no longer used.
[TODO: update 'update.php'.]
2003-02-24 23:17:39 +00:00
Dries Buytaert d5bb7bce52 - database.mysql cannot be run from within phpMyAdmin because of line
consisting of hyphens only.  Patch by Zbynek.
2003-02-24 22:39:32 +00:00
Dries Buytaert 73f476a6c1 - Fixed typo: forum2 -> forum. 2003-02-07 08:06:37 +00:00
Dries Buytaert 4ea6d5048d - Updated the database scheme. 2003-02-06 19:14:19 +00:00
Dries Buytaert d268783669 - Small improvement to the admin menu based on feedback from Michael. 2003-01-14 20:33:42 +00:00
Dries Buytaert 8a63646576 - Added an extra parameter to watchdog() which lets you specifiy an "action"
or "operation" link.

- Made the main page of the administration section show an overview of all
  watchdog entries with such action link.

- Fixed typo in PostgreSQL database scheme.
2003-01-04 11:03:15 +00:00
Dries Buytaert 22fa9ed70a - Refactored the administration pages. 2002-12-24 15:40:32 +00:00
Dries Buytaert 1ad6cff2ec - Fixed typo in the database scheme. Reported by Ettiene. 2002-12-15 08:20:57 +00:00
Dries Buytaert b6b24c28e0 Applied patch by Natrak:
- page_header() now adds Last-Modified and ETag http headers.
- When running PHP as an Apache module page_header() will check the HTTP
  headers for conditional gets, and will only push the content when it
  fails. (Works for html and xml pages as they are all cached). Note:
  this is a PHP limitation, so until PHP makes it work for other web
  servers this won't work for them.
- Added created field to cache database to hold the timestamp when the
  cache was created.
- Changed cache_get() to return an object with ->data and ->created.
- Update forum and locale modules.
2002-12-11 22:00:04 +00:00
Dries Buytaert d2d381d7c4 - Removed rating module; it is not being used much and it has a known bug.
Will add it to the contributions repository.
2002-12-08 07:54:30 +00:00
Dries Buytaert b62025c217 - Removed two a dead table from both the MySQL and the PostgreSQL database
scheme.

- Fixed the default settings for both the MySQL and the PostgreSQL database
  scheme.
2002-12-07 10:36:44 +00:00
Dries Buytaert f42bfcac31 - Fixed small glitch in the database schemes; the block table has changed but
the queries that insert some default block values were not updated.
2002-11-30 15:21:36 +00:00
Dries Buytaert 697dde0fe5 - Updated PostgreSQL scheme. Patch by Stefan. 2002-11-21 17:43:37 +00:00
Dries Buytaert 56d72a918f - Added Stefan's page module improvements.
[NOTE: the PostgreSQL database scheme needs updating.]
2002-11-20 20:54:56 +00:00
Dries Buytaert 96a45ecba6 - Updated the PostgreSQL database scheme (thanks James) and the MySQL
database scheme.
2002-11-09 20:19:13 +00:00
Dries Buytaert 86a3ebefd3 - Made the forum module work with PostgreSQL. Patch by Gordon Kerr, verified
by James Arthur.
2002-11-08 13:11:42 +00:00
Dries Buytaert 74c722502b - Applied a PostgreSQL patch from James. 2002-11-01 09:37:31 +00:00
Dries Buytaert 66c5b70736 - Wrapped some hardcoded colors in "theme_invoke()"s; we can still create
a drupal_error() later on but I think we better get used to theme_invoke().

- Fixed translation bug.  Patch by Moshe.

- Fixed PHP warning.  Patch by ax.
2002-10-22 18:46:43 +00:00
Kjartan Mannes b60b9ca828 - removed function module_rehash().
- updated database dump.
- removed tables modules, layout and referrer (don't forget to backup!).
2002-10-17 18:34:38 +00:00
Kjartan Mannes 8457c4d2ff - serializing update_start variable. 2002-09-25 18:50:50 +00:00
Dries Buytaert e4d92b5892 - Some PostgreSQL improvements. Patch by James Arthur. 2002-09-22 10:01:03 +00:00
Dries Buytaert a28f818006 - Changed "$watchdog->message" from type "varchar(255)" to type "text".
Patch by James.  For sake of consistency, I updated the MySQL scheme
  and added a new update entry to "update.php".
2002-08-26 18:18:12 +00:00
Dries Buytaert 2fe2a123a4 - Removed the unused table and included the sequences table. Patch by
jaa.
2002-08-22 18:21:44 +00:00
Dries Buytaert fd05ff03d6 - Fixed typo. Patch by Marco. 2002-08-21 04:20:06 +00:00
Dries Buytaert bfe5b85dbd - Applied a (modified) version of Marco's SQL sequence patch. 2002-08-20 19:29:16 +00:00
Dries Buytaert c34d77854d - Bugfix: changed the PostgreSQL database scheme of the session field in
the user table.  Patch by jaa.
2002-08-18 15:03:28 +00:00
Dries Buytaert d4a918b806 - Renewed the PostgreSQL database scheme! Patch by jaa. 2002-08-16 07:38:36 +00:00
Dries Buytaert e04f6d2328 - Made the rating module and its SQL table ASNI compliant. Patch by jaa. 2002-08-16 07:37:03 +00:00
Kjartan Mannes 80aca19a61 - removing cvs table definition. 2002-07-31 08:25:48 +00:00
Kjartan Mannes ec59398791 - feed table should have not null defined for refresh and timestamp. 2002-07-31 08:14:25 +00:00
Dries Buytaert c3a60df58b - Patch my Marco: "session in my users table is actually varchar(32), which is small. locale data was greater and so was not correctly recorded. strangely, update_11() in update.php reads: update_sql("ALTER TABLE users ADD session TEXT;"); but in database.mysql.inc, line 496 session varchar(32) NOT NULL default '', so the update fails." 2002-07-13 13:01:47 +00:00
Kjartan Mannes 66ccfb3f8d - fixed the markup of the collapsed comment view settings.
- updated update.php and database.mysql disable a few more modules by default.
  Without the config options in place to disable things this might confuse users.
2002-06-15 10:49:44 +00:00
Dries Buytaert 291d119b25 - Removed non-existing theme from both update.php and database.mysql. Patch
by Marco.
2002-06-08 14:26:23 +00:00
Dries Buytaert 68129fd539 - Changed some "default NULL"s to "default NOT NULL"s as this only works on
recent MySQL versions.  I included the diffs for review.

update.php:
-  update_sql("CREATE TABLE search_index (word varchar(50) default NULL, lno in
+  update_sql("CREATE TABLE search_index (word varchar(50) default NOT NULL, ln

database.mysql:
-  word varchar(50) default NULL,
-  lno int(10) unsigned default NULL,
-  type varchar(16) default NULL,
-  count int(10) unsigned default NULL,
+ word varchar(50) NOT NULL,
+ lno int(10) unsigned NOT NULL,
+ type varchar(16) default NULL,
+ count int(10) unsigned default NULL,
2002-06-06 18:29:40 +00:00
Kjartan Mannes 4a28077f46 - adding descriptions to modules (thanks Joe + Scott).
- fixed comment flat list view missing 1 comment.
- changed update.php around a bit.
    * security check isn't in effect if the db hasn't been updated.
    * instructions re-organized.
    * fixed some minor updates.
- updated database.mysql done by UnConeD.
- changelog update.
2002-06-01 21:57:29 +00:00
Dries Buytaert f3c8757179 - Ran the code through 'scripts/code-clean.sh': removed trailing whitespace
(and possibly tabs).
2002-05-20 07:34:38 +00:00
Kjartan Mannes deeb4a0f3a - fixing a typo 2002-05-16 05:58:10 +00:00
Kjartan Mannes a676cde7b2 - Haven't re-implemented custom in the main tree. Oops. 2002-04-29 17:35:05 +00:00
Kjartan Mannes 852171c830 - updating database.mysql definition. 2002-04-29 16:59:49 +00:00
Steven Wittens 5b5551674d Poll.module:
Forgot to change a 'lid' into a 'nid'
2002-04-21 20:53:30 +00:00
Steven Wittens 0a966e1ed4 Updated poll.module:
- Removed obsolete lid column (changed update.php and database.mysql)
- Added short help
2002-04-20 01:51:05 +00:00
Dries Buytaert d8cd54969c - Added Marco's long-awaited taxonmy module and patches - a replacement
for the meta system.  The patches add some extra functionality to the
  comment system (for example, comments can be set read-only) and fix a
  couple of small problems.

  + I integrated the required SQL updates from the varius *.mysql files
    into the "update.php" script.  Upgrading should be easy ...

  + I did not apply/commit the "user.diff" as requested by Marco ...

  + I didn't know what to do with "forum.module" and "forum2.module":
    what do you want me to do with it Marco?  Which one should go in?

  + Can we remove "node_index()" now; both from "node.module" and the
    themes?

  + Thanks Marco!
2002-04-14 20:46:41 +00:00
Kjartan Mannes dc8f6be46f - added default value to enable user block to update.php
- did a new dump of the database from a clean upgrade as my local devel is
  a little infected with additional tables.
2002-01-27 19:27:17 +00:00
Kjartan Mannes 0120c08f39 - updating database/database.mysql again. Forgot to remove some contrib
module tables.
2002-01-21 17:37:39 +00:00
Kjartan Mannes 8c672011a2 - moved user block from theme.inc to user.module.
* only problem is that the admin.php link is not available until the
      admin enables the block.
    * $theme->user is obsolete, will patch the themes properly in a
      later patch.
- moved moderation block from theme.inc to queue.module.
    * removed theme_moderation_results().
- updated database/database.mysql.
2002-01-21 17:31:13 +00:00
Dries Buytaert 336b713a5f - A large batch of updates, amongst them a rewritten node system. More
information available on the mailing list.
2001-11-01 11:00:51 +00:00
Dries Buytaert f1932821be - PEAR-ification of Drupal by claw: you can now host Drupal on a wide
range of databases including MySQL, PostgreSQL, MSSQL, and others.

  For additional information and an 'how to upgrade', check the mails
  sent to the mailing list.
2001-10-09 21:01:47 +00:00
Dries Buytaert 808b6b6cae - Changed the authentication and login scheme as discussed on the mailing
list.
- Fixed the export function in book.module (patch my Julian).
- Fixed the comment alignment (comments got truncated).
2001-08-11 14:54:39 +00:00
Kjartan Mannes 13bfd9ca64 database.mysql
- Added link to the SQL definition.
2001-07-24 08:37:52 +00:00
Dries Buytaert d6d60de3cc - Added blog.module to replace diary.module (contrubeted by Julian):
+ feedback wanted

- Added updated import.module (contributed by Julian):
   + user page do browse the headlines by feed and bundle, to display
     the item descriptions, etc.

- Fixed small bug in common.inc.

- Updated database.mysql
2001-07-11 22:06:24 +00:00
Dries Buytaert 4ac70d708f - Updated database.mysql 2001-07-08 15:01:37 +00:00
Dries Buytaert 5ff9dd653f - Made it possible to enter longer username such as 'Gerhard K*llesreit'.
- Updated database.mysql.
2001-06-23 14:59:15 +00:00
Dries Buytaert 03c06a86eb Oops, a rather large commit:
- Changed meta.module, node.module and index.php to use comma-seperated
  lists of attributes rather then "foo=a,bar=b" lists.  This makes it a
  a lot easier to use both modules.  In addition, error handling can be
  discarded as it can't be made any simpler, really ...

  It fits rather nicely in Drupal's design so I'm getting more and more
  happy with this meta.module (but we are not 100% there yet).

- node.module, node.inc:

   + Improved the node-related admin interface so that navigating back
     and forth the administrative menus is made both easier and faster.

   + Removed some redundant database fields from the node table.  See
     2.00-to-x.xx.sql!

   + Added 2 news hooks called "node_insert" and "node_update".  Just
     like this is the case with the existing hook "node_delete" these
     new hooks will automatically get called when a node has been
     inserted or udpated.  Note that this is an optional call-back that
     only needs to be implemented when required.  With the addition of
     these two hooks, the node mechanism (version 1) is pretty well
     completed.

- watchdog.module:
   + Fixed bug whit the 'regular messages' query in the watchdog.module.

- book.module:
   + Fixed bug in book.module: the 'parent' was not set properly when
     updating a book page.
   + Made it so that older versions of a book page are automatically
     reactived upon deletion of the most recent version, i.e. when
     doing a version roll-back.

- comment.inc:
   + Undid Remco's patch to comment.inc; it does not work in some cases.


- conf.module:
   + Fine-tuned some of the options in conf.module a bit.

- marvin.theme:
   + Visual changes to make it look better on Windows browsers.  Mind
     to give some feedback on this?
   + Fixed 3 HTML typos/bugs.
   + XHTML-ified the theme at a best effort basis; I didn't carry the
     XHTML specification with me.
   + Made use of the theme_slogan variable to display the site's slogan.
   + As soon we have at least one valid XHTML theme we can wonder on how
     to integrate other XML namespaces (cfr. MathML story at drop.org).

- database.mysql:
   + Updated database.mysql so that it contains all the latest "database
     patches".
2001-06-17 18:31:25 +00:00
Dries Buytaert 20397ad3d9 CHANGES
- Redid settings.module and even renamed it to conf.module.
    * Settings are now grouped in basic categories like "system
      settings", "module settings" and "filters".
  * Added new settings to make Drupal easier to configure and
  to make some aspects like the watchdog scale better.

- Renamed includes/settings.php to includes/conf.php.

- Added filter support to conf.module and introduced filter hooks so
  modules can implement and export new filters.  Example filters are
  an HTML filter (implemented), a profanity filter, an url converter,
  ASCII smileys to images filter and so on ...

- Reworked the check_* functions: user contributed content/input is
  only verified and filtered once in its lifespan.

NOTES

- Altough this is a large commit, no database changes are required.
2001-05-20 13:51:40 +00:00
Steven Wittens c0ecd46aff Added poll.module, a poll module :)
It's mainly intended as a sideblock-element as there's no real use in having them show up on the mainpage. There's no real poll-browsing system for now either.

I still need to write documentation, and I'm not yet satisfied with the node-output (non-sideblock). I should be able to improve it once the $theme->nodebox ideas get finalized.
2001-05-19 17:41:41 +00:00
Dries Buytaert 6f02738cc2 - Removed the "history"-field from the SQL table "users" and added
this information to the "users"-field in both nodes and comments.
  This database/table change reduces the number of SQL queries and
  makes Drupal scale better where a lot of voting/moderation takes
  place.  Last but not least it can be considered a new and better
  foundation for future moderation metrics / algorithms.  In other
  words: it is plain better.

    --> oops, all voting/moderation results will be lost!
    --> requires database update, see "2.00-to-x.xx.sql"!

- Updated database/database.mysql
2001-05-16 20:54:37 +00:00
Steven Wittens 2baf9ac129 I've restored it to its previous condition... apparently the database.mysql is terribly outdated (didn't know this), so we should probably just wait till the final release to update it. 2001-05-14 23:07:23 +00:00
Steven Wittens 1e8b5a9233 Hmmm the "promote" column was missing... 2001-05-14 21:55:24 +00:00
Dries Buytaert 3f1979aa3c - Addition: made it so that comments can be enabled/disabled on
a node per node basis, rather then on a category per category
  basis.  The default settings for each individual category can
  be changed though.

  Example: it can be setup so that - by default - all stories
  posted to the category "article" will have comments enabled
  but stories submitted to "announcement" not.

  Different configuration schemes can easily be added later.

  Requires a SQL update, see 2.00-to-x.xx.sql/database.mysql.

- Addition: made submit.php only use categories that users can
  actually submit new content to.
2001-04-19 19:59:48 +00:00
Dries Buytaert b1c66cb5de Another big update so please read this carefully because there is important information hidden in it.
Made it so that we can disable/enable comments on a category by category basis. In order to accomplish this I had to make a few (*temporary*) changes.

I moved all comment code from the "module level" (eg. story.module) to the "node level".  It was nothing but the logical next step in nodifying drupal.  This enables us to add comments to all existing content types including book entries.  But also for book entries, this to can be toggled on and off. :-)

Moreover module writers don't have to worry about the complex comment logic: it is "abstracted" away.  This implies that story.module got smaller, faster and easier to comprehend. :-)

In order to accomplish this, I had to update ALL THEMES, which I did - and on my way I updated Goofy, Oranzh and UnConeD - with the previous changes.  All themes are up-to-date now!  I also had to remove the [ reply to this story ] links, and temporally re-introcuded the "Add comment" button in the "Comment control".  Tempora lly that is, UnConeD. ;)

I plan to upgrade drop.org either tommorow or wednesday so test away if you have some time to kill. ;)

Oh, I also fixed a few bugs and made various small improvements.
2001-04-16 18:21:22 +00:00
Dries Buytaert 599677ef0c - updated database.mysql file 2001-04-16 13:39:40 +00:00
Dries Buytaert b4a05b8374 - removed redundant tables 2001-04-07 20:12:59 +00:00
Dries Buytaert dae5c2208c - improved rating module: it now shows some basic statistics :-)
- updated database files
- removed affialiate-site and drupal-site module: maintain them
  by hand through a box for now will you.
2001-04-07 20:00:21 +00:00
Dries Buytaert 38806b4a39 - fixed bug in common.inc: throttle()
- streamlined method invocation in node.inc
- added node_status() function to modules
- added NEW (mostly static) page module
- added NEW settings module
2001-04-07 15:02:28 +00:00
Dries Buytaert 8213f5b262 A lot of small changes (search-n-replace) make a big commit:
- fixed update bug in book.module
  - provide a log message when both adding and updating book pages
  - all configurable variables are now accessed through "variable_get()":
  - rewrote watchdog and submission throttle and removed watchdog.inc
  - improved robustness of sections.inc
  - imporved story.module
  - updated ./database/database.sql
2001-04-06 14:14:16 +00:00
Dries Buytaert ecc651d83d - added a new faq module with administration interface 2001-03-03 15:31:51 +00:00
Dries Buytaert 4d31d27ff0 - added comment index for performance sake
- improved comment module - code revision
- improved backend module - moreover headlines now work
- (automatically) stripped tabs and trailing whitespaces from
  Jeroen's theme.
2001-02-27 07:45:03 +00:00
Dries Buytaert 4371b627d5 - added fine-grained user permission system which allows us to give
certain users access to specific administration sections only.
    Ex. a FAQ maintainer can only edit the FAQ, and members of an
        "editorial board" can only edit comments, diaries and
         stories, ..
- code review => rewrote include/user.inc which is much easier now
- fixed 4 small bugs
2001-02-18 15:14:56 +00:00
Dries Buytaert 52a1d1bbe8 - More updates on the translation support 2001-02-17 12:59:24 +00:00
Dries Buytaert e7f043c30a - updates 2001-02-14 09:32:33 +00:00
Dries Buytaert db554e857d - initial import of the preliminary translation code.
- added timer.inc for benchmarking purpose
- bugfix for php-clean
- bugfix for account.php
- removed redundant format_data
- ...
2001-02-12 20:40:43 +00:00
Dries Buytaert 77ed531035 - added new feature for evaluating purpose: user rating (mojo, karma)!
- removed tabs from Jeroen's theme
2001-02-07 22:01:57 +00:00
Dries Buytaert de2e393933 - various updates, bugfixes and improvements 2001-02-04 22:09:38 +00:00
Dries Buytaert 3d0f6b3032 - fixes table bug
- add ienie-wiene of information
2001-01-23 22:14:29 +00:00
Dries Buytaert 0b9b325873 - fixed bug in database.mysql
- removed redundant options from hostname.conf
2001-01-23 12:03:15 +00:00
Dries Buytaert ea97888533 I know, I know, it is getting nasty lately but I have another large commit after nothing but code.
This time I redid the "category"-stuff.  Categories - from now on called sections - are now maintained from the admin pages, can have their own post, dump and timout thresholds as discussed earlier (some weeks ago).  By tomorrow evening users will be able to enable or disable section as well - i.e. to customize the content of drop.org.
2001-01-21 19:41:11 +00:00
Dries Buytaert 2952d16f78 - updated/improved discussion engine: it needs additional fine-tuning
though but I think this is stable enough for public consumption and
  real-life testing.
   ==> a first big step towards a flexible comment engine.

IMPORTANT:
  - Required theme updatins:

    UnConeD: check your $theme->controls() as I added a very, very
             dummy implementation

  - Required database updates:

    alter table users modify mode tinyint(1) DEFAULT '' NOT NULL;
    alter table comments change sid lid int(6) DEFAULT '0' NOT NULL;
    alter table comments add link varchar(16) DEFAULT '' NOT NULL;
    update comments set link = 'story';
2001-01-20 12:20:31 +00:00
Dries Buytaert 8b4c95b259 - rewrote the block placement stuff and updated the themes.
IMPORTANT: you have to drop 2 tables "blocks" and "layout"
             and you have to recreate them again with those
             in database/database.mysql
- integrated the documentation written by UnConeD
2001-01-13 16:33:19 +00:00
Dries Buytaert 554d9b080b - fixed 2 small bugs in account.php
- drastically improved administration section
- drastically revamped story administration:
  added new feature to schedule the publishing of stories
- applied correct naming conventions to submission.php
- fixed 1 small glitch in boxes
- somewhat expanded the documentation
= changed one SQL table
- updated the faq with info on drupal
- ... and more things I forgot about
2001-01-07 19:21:28 +00:00
Dries Buytaert 4572760eb3 A batch of preparations for release candidate 2:
- expanded documentation
   (written by Jeroen)
 - fixed bug in includes/module.inc
 - fixed bug in modules/backend.class
 - renamed some of the SQL tables (!)
 - started making the diary.module truly modular (not finished yet)
 - renamed "admin_blocks" to "boxes"
 - added new functionality to "boxes": apart from PHP boxes, you
   can now create ASCII boxes as well as HTML boxes for those who
   are not confident with PHP.
   (requested by stalor)
 - added drupal-site module to keep track of known drupal sites
 - added small Perl script to generate encrypted CVS passwords
2001-01-03 21:23:58 +00:00
Dries Buytaert 83f6495c9a - Jeroen: here are the correct and up-to-date database tables! 2000-12-30 11:55:52 +00:00
Dries Buytaert 62588af9ce - a few more updates 2000-12-16 14:32:21 +00:00
Dries Buytaert 6c445ef88d * updated the database files 2000-10-31 11:07:40 +00:00
Dries Buytaert 1641d9f846 * added the database tables of drop to CVS: not the content, just the
table definitions.
2000-10-24 11:53:41 +00:00