Changes between Version 2 and Version 3 of UseCase009


Ignore:
Timestamp:
05/21/26 18:31:25 (6 days ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase009

    v2 v3  
    1717{{{#!div style="margin-left: 20px;"
    1818{{{
    19 SELECT product_id, format, price, stock, description, release_id
    20 FROM Product
    21 WHERE product_id = @selected_product_id;
     19SELECT product_id, format, price, stock, product_description, release_id
     20FROM PRODUCTS
     21WHERE product_id = :selected_product_id;
    2222}}}
    2323}}}
     
    3131{{{#!div style="margin-left: 20px;"
    3232{{{
    33 UPDATE Product
     33UPDATE PRODUCTS
    3434SET
    35     price = @new_price,
    36     stock = @new_stock,
    37     description = @new_description,
    38     format = @new_format
    39 WHERE product_id = @selected_product_id;
     35    price = :new_price,
     36    stock = :new_stock,
     37    product_description = :new_description,
     38    format = :new_format
     39WHERE product_id = :selected_product_id;
    4040}}}
    4141}}}
    4242
    43 6. System confirms the successful modification to the admin and updates the product information across the public catalog immediately.
     436. System logs the modification
    4444
    4545{{{#!div style="margin-left: 20px;"
    4646{{{
    47 SELECT *
    48 FROM Product
    49 WHERE product_id = @selected_product_id;
     47INSERT INTO MODIFICATIONS (modification_id, admin_id, date_modified, type_of_modification, discount)
     48VALUES (:new_modification_id, :authenticated_admin_id, CURRENT_DATE, 'UPDATE', NULL);
     49
     50INSERT INTO MODIFICATION_PRODUCTS (modification_id, product_id)
     51VALUES (:new_modification_id, :selected_product_id);
     52}}}
     53}}}
     54
     557. System confirms the successful modification to the admin and updates the product information across the public catalog immediately.
     56
     57{{{#!div style="margin-left: 20px;"
     58{{{
     59SELECT * FROM PRODUCTS
     60WHERE product_id = :selected_product_id;
    5061}}}
    5162}}}