From 6ea4bc6caa1fe80081324f5d49e9990e57b5ce7d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 12 Sep 2005 18:26:59 +0000 Subject: - Patch #30801 by Allie Micka and m3avrck: performance improvements: improved the database scheme and queries of the block.module. --- database/updates.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'database/updates.inc') diff --git a/database/updates.inc b/database/updates.inc index f6027f786..bb73e7235 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -45,7 +45,8 @@ $sql_updates = array( "2005-08-08" => "update_144", "2005-08-15" => "update_145", "2005-08-25" => "update_146", - "2005-09-07" => "update_147" + "2005-09-07" => "update_147", + "2005-09-12" => "update_148" ); function update_110() { @@ -790,6 +791,14 @@ function update_147() { return $ret; } +function update_148() { + $ret = array(); + + $ret[] = update_sql('ALTER TABLE {blocks} ADD PRIMARY KEY (module, delta)'); + + return $ret; +} + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql); -- cgit v1.2.3