r46054 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/extensions/DataCenter/DataCenter.sql
@@ -379,7 +379,7 @@
380380 --
381381 -- Initial Facilities
382382 --
383 -INSERT INTO dc_facility_locations
 383+INSERT INTO /*$wgDBprefix*/dc_facility_locations
384384 (
385385 fcl_loc_tense, fcl_loc_name, fcl_loc_region, fcl_loc_latitude,
386386 fcl_loc_longitude
@@ -388,7 +388,7 @@
389389 ( 'present', 'PMTPA', 'Tampa, FL', 27.98141, -82.451141 ),
390390 ( 'present', 'SFO', 'San Francisco, CA', 37.775196, -122.419204 );
391391 --
392 -INSERT INTO dc_facility_spaces
 392+INSERT INTO /*$wgDBprefix*/dc_facility_spaces
393393 (
394394 fcl_spc_tense, fcl_spc_name, fcl_spc_location, fcl_spc_width,
395395 fcl_spc_height, fcl_spc_depth, fcl_spc_power
@@ -399,7 +399,7 @@
400400 --
401401 -- Initial Assets
402402 --
403 -INSERT INTO dc_rack_assets
 403+INSERT INTO /*$wgDBprefix*/dc_rack_assets
404404 (
405405 ast_rak_model, ast_rak_tense, ast_rak_location, ast_rak_asset,
406406 ast_rak_serial
@@ -412,7 +412,7 @@
413413 ( 2, 'present', 1, '5670556705', 'A1S2D3F4G5H6J7' ),
414414 ( 2, 'present', 2, '6780667806', 'Z1X2C3V4B5N6M7' );
415415 --
416 -INSERT INTO dc_object_assets
 416+INSERT INTO /*$wgDBprefix*/dc_object_assets
417417 (
418418 ast_obj_model, ast_obj_tense, ast_obj_location, ast_obj_asset,
419419 ast_obj_serial
@@ -427,7 +427,7 @@
428428 --
429429 -- Initial Models
430430 --
431 -INSERT INTO dc_rack_models
 431+INSERT INTO /*$wgDBprefix*/dc_rack_models
432432 (
433433 mdl_rak_manufacturer, mdl_rak_name, mdl_rak_kind, mdl_rak_units
434434 )
@@ -436,7 +436,7 @@
437437 ( 'Rittal', 'TS-44', 'Rack', 44 ),
438438 ( 'Rittal', 'TS-47', 'Rack', 47 );
439439 --
440 -INSERT INTO dc_object_models
 440+INSERT INTO /*$wgDBprefix*/dc_object_models
441441 (
442442 mdl_obj_manufacturer, mdl_obj_name, mdl_obj_kind, mdl_obj_form_factor,
443443 mdl_obj_units, mdl_obj_depth, mdl_obj_power
@@ -446,7 +446,7 @@
447447 ( 'Cisco', 'Catalyst 2950', 'Switch', 'rackunit', 1, 1, 100 ),
448448 ( 'APC', 'Smart-UPS 3000VA', 'UPS', 'rackunit', 5, 2, 20 );
449449 --
450 -INSERT INTO dc_port_models
 450+INSERT INTO /*$wgDBprefix*/dc_port_models
451451 (
452452 mdl_prt_name, mdl_prt_kind, mdl_prt_category, mdl_prt_format
453453 )
@@ -497,7 +497,7 @@
498498 --
499499 -- Initial Meta
500500 --
501 -INSERT INTO dc_meta_fields
 501+INSERT INTO /*$wgDBprefix*/dc_meta_fields
502502 (
503503 mta_fld_name, mta_fld_format
504504 )
@@ -507,7 +507,7 @@
508508 ( 'Weight (LBS)', 'number' ),
509509 ( 'Assigned User', 'string' );
510510 --
511 -INSERT INTO dc_meta_values
 511+INSERT INTO /*$wgDBprefix*/dc_meta_values
512512 (
513513 mta_val_component_category, mta_val_component_type,
514514 mta_val_component_id, mta_val_field, mta_val_value
@@ -516,7 +516,7 @@
517517 ( 'facility', 'location', 2, 1, true ),
518518 ( 'facility', 'location', 2, 2, 'The best place to be!' );
519519 --
520 -INSERT INTO dc_meta_plans
 520+INSERT INTO /*$wgDBprefix*/dc_meta_plans
521521 (
522522 mta_pln_tense, mta_pln_space, mta_pln_name, mta_pln_note
523523 )
@@ -527,7 +527,7 @@
528528 --
529529 -- Initial Links
530530 --
531 -INSERT INTO dc_asset_links
 531+INSERT INTO /*$wgDBprefix*/dc_asset_links
532532 (
533533 lnk_ast_name, lnk_ast_plan, lnk_ast_tense, lnk_ast_parent_link,
534534 lnk_ast_asset_type, lnk_ast_asset_id, lnk_ast_x, lnk_ast_y, lnk_ast_z,
@@ -547,7 +547,7 @@
548548 ( 'Switch', 2, 'present', 6, 'object', 5, null, null, 9, 0 ),
549549 ( 'UPS', 2, 'present', 6, 'object', 6, null, null, 10, 0 );
550550 --
551 -INSERT INTO dc_model_links
 551+INSERT INTO /*$wgDBprefix*/dc_model_links
552552 (
553553 lnk_mdl_name, lnk_mdl_quantity, lnk_mdl_parent_type,
554554 lnk_mdl_parent_id, lnk_mdl_child_type, lnk_mdl_child_id
@@ -558,7 +558,7 @@
559559 ( 'Power In', 1, 'object', 3, 'port', 27 ),
560560 ( 'Power Out', 8, 'object', 3, 'port', 24 );
561561 --
562 -INSERT INTO dc_field_links
 562+INSERT INTO /*$wgDBprefix*/dc_field_links
563563 (
564564 lnk_fld_field, lnk_fld_component_category, lnk_fld_component_type
565565 )

Status & tagging log