r46053 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46052‎ | r46053 | r46054 >
Date:00:58, 23 January 2009
Author:tparscal
Status:ok
Tags:
Comment:
Added prefixing to drops.
Modified paths:
  • /trunk/extensions/DataCenter/DataCenter.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/DataCenter/DataCenter.sql
@@ -4,7 +4,7 @@
55 -- Facilities
66 --
77 -- Table of locations of physical datacenters
8 -DROP TABLE IF EXISTS dc_facility_locations;
 8+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_facility_locations;
99 CREATE TABLE /*$wgDBprefix*/dc_facility_locations (
1010 -- Unique ID of dc_locations
1111 fcl_loc_id INTEGER AUTO_INCREMENT,
@@ -23,7 +23,7 @@
2424 ) /*$wgDBTableOptions*/;
2525 --
2626 -- Table of spaces in locations
27 -DROP TABLE IF EXISTS dc_facility_spaces;
 27+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_facility_spaces;
2828 CREATE TABLE /*$wgDBprefix*/dc_facility_spaces (
2929 -- Unique ID of dc_spaces
3030 fcl_spc_id INTEGER AUTO_INCREMENT,
@@ -48,7 +48,7 @@
4949 -- Assets
5050 --
5151 -- Table of racks
52 -DROP TABLE IF EXISTS dc_rack_assets;
 52+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_rack_assets;
5353 CREATE TABLE /*$wgDBprefix*/dc_rack_assets (
5454 -- Unique ID of dc_racks
5555 ast_rak_id INTEGER AUTO_INCREMENT,
@@ -67,7 +67,7 @@
6868 ) /*$wgDBTableOptions*/;
6969 --
7070 -- Table of objects
71 -DROP TABLE IF EXISTS dc_object_assets;
 71+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_object_assets;
7272 CREATE TABLE /*$wgDBprefix*/dc_object_assets (
7373 -- Unique ID of dc_objects
7474 ast_obj_id INTEGER AUTO_INCREMENT,
@@ -88,7 +88,7 @@
8989 -- Models
9090 --
9191 -- Table of model of racks
92 -DROP TABLE IF EXISTS dc_rack_models;
 92+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_rack_models;
9393 CREATE TABLE /*$wgDBprefix*/dc_rack_models (
9494 -- Unique ID of dc_rack_models
9595 mdl_rak_id INTEGER AUTO_INCREMENT,
@@ -105,7 +105,7 @@
106106 ) /*$wgDBTableOptions*/;
107107 --
108108 -- Table of model of objects
109 -DROP TABLE IF EXISTS dc_object_models;
 109+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_object_models;
110110 CREATE TABLE /*$wgDBprefix*/dc_object_models (
111111 -- Unique ID of dc_object_models
112112 mdl_obj_id INTEGER AUTO_INCREMENT,
@@ -133,7 +133,7 @@
134134 ) /*$wgDBTableOptions*/;
135135 --
136136 -- Table of models of ports
137 -DROP TABLE IF EXISTS dc_port_models;
 137+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_port_models;
138138 CREATE TABLE /*$wgDBprefix*/dc_port_models (
139139 -- Unique ID of dc_port_models
140140 mdl_prt_id INTEGER AUTO_INCREMENT,
@@ -168,7 +168,7 @@
169169 -- Meta Information
170170 --
171171 -- Table of tags used to categorize repairs
172 -DROP TABLE IF EXISTS dc_meta_tags;
 172+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_tags;
173173 CREATE TABLE /*$wgDBprefix*/dc_meta_tags (
174174 -- Unique ID of dc_tags
175175 mta_tag_id INTEGER AUTO_INCREMENT,
@@ -179,7 +179,7 @@
180180 ) /*$wgDBTableOptions*/;
181181 --
182182 --
183 -DROP TABLE IF EXISTS dc_meta_plans;
 183+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_plans;
184184 CREATE TABLE /*$wgDBprefix*/dc_meta_plans (
185185 -- Unique ID of dc_meta_plans
186186 mta_pln_id INTEGER AUTO_INCREMENT,
@@ -196,7 +196,7 @@
197197 ) /*$wgDBTableOptions*/;
198198 --
199199 -- Table of changes made to targets (facilities, assets and models)
200 -DROP TABLE IF EXISTS dc_meta_changes;
 200+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_changes;
201201 CREATE TABLE /*$wgDBprefix*/dc_meta_changes (
202202 -- Unique ID of dc_meta_changes
203203 mta_cng_id INTEGER AUTO_INCREMENT,
@@ -232,7 +232,7 @@
233233 ) /*$wgDBTableOptions*/;
234234 --
235235 -- Table of models used by other models
236 -DROP TABLE IF EXISTS dc_model_links;
 236+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_model_links;
237237 CREATE TABLE /*$wgDBprefix*/dc_model_links (
238238 -- Unique ID of dc_meta_model_links
239239 lnk_mdl_id INTEGER AUTO_INCREMENT,
@@ -258,7 +258,7 @@
259259 ) /*$wgDBTableOptions*/;
260260 --
261261 -- Table of assets used by other assets
262 -DROP TABLE IF EXISTS dc_asset_links;
 262+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_asset_links;
263263 CREATE TABLE /*$wgDBprefix*/dc_asset_links (
264264 -- Unique ID of dc_meta_asset_links
265265 lnk_ast_id INTEGER AUTO_INCREMENT,
@@ -290,7 +290,7 @@
291291 ) /*$wgDBTableOptions*/;
292292 --
293293 -- Table of meta fields to attach to components
294 -DROP TABLE IF EXISTS dc_field_links;
 294+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_field_links;
295295 CREATE TABLE /*$wgDBprefix*/dc_field_links (
296296 -- Unique ID of dc_meta_field_links
297297 lnk_fld_id INTEGER AUTO_INCREMENT,
@@ -316,7 +316,7 @@
317317 ) /*$wgDBTableOptions*/;
318318 --
319319 -- Table of meta fields to attach to models
320 -DROP TABLE IF EXISTS dc_meta_fields;
 320+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_fields;
321321 CREATE TABLE /*$wgDBprefix*/dc_meta_fields (
322322 -- Unique ID of dc_meta_fields
323323 mta_fld_id INTEGER AUTO_INCREMENT,
@@ -335,7 +335,7 @@
336336 ) /*$wgDBTableOptions*/;
337337 --
338338 -- Table of meta information to attach to assets
339 -DROP TABLE IF EXISTS dc_meta_values;
 339+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_values;
340340 CREATE TABLE /*$wgDBprefix*/dc_meta_values (
341341 -- Unique ID of dc_meta_values
342342 mta_val_id INTEGER AUTO_INCREMENT,
@@ -365,7 +365,7 @@
366366 ) /*$wgDBTableOptions*/;
367367 --
368368 -- Table of connections between ports
369 -DROP TABLE IF EXISTS dc_meta_connections;
 369+DROP TABLE IF EXISTS /*$wgDBprefix*/dc_meta_connections;
370370 CREATE TABLE /*$wgDBprefix*/dc_meta_connections (
371371 -- Unique ID of dc_connections
372372 mta_con_id INTEGER AUTO_INCREMENT,

Status & tagging log