Initial commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_inflow_record]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_inflow_record];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_inflow_record]
|
||||
@product_inflow_record_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_inflow_records]
|
||||
WHERE [id] = @product_inflow_record_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_type]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_type];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_type]
|
||||
@product_type_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_types]
|
||||
WHERE [id] = @product_type_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_write_off_record]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_write_off_record];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_write_off_record]
|
||||
@product_write_off_record_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_write_off_records]
|
||||
WHERE [id] = @product_write_off_record_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_attribute]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_attribute];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_attribute]
|
||||
@attribute_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[attributes]
|
||||
WHERE [id] = @attribute_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_price_history_record]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_price_history_record];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_price_history_record]
|
||||
@price_history_record_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[price_history_records]
|
||||
WHERE [id] = @price_history_record_id;
|
||||
GO
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_attribute]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_attribute];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_attribute]
|
||||
@product_id AS INT,
|
||||
@product_attribute_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_attributes]
|
||||
WHERE [product_id] = @product_attribute_id
|
||||
AND [attribute_id] = @product_attribute_id
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_outflow_record]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_outflow_record];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_outflow_record]
|
||||
@product_outflow_record_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_outflow_records]
|
||||
WHERE [id] = @product_outflow_record_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_product_value]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_product_value];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_product_value]
|
||||
@product_value_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[product_values]
|
||||
WHERE [id] = @product_value_id;
|
||||
GO
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
USE [Database]
|
||||
|
||||
IF OBJECT_ID('[Procedures].[delete_supplier]', 'P') IS NOT NULL
|
||||
DROP PROCEDURE [Procedures].[delete_supplier];
|
||||
GO
|
||||
CREATE PROCEDURE [Procedures].[delete_supplier]
|
||||
@supplier_id AS INT
|
||||
AS
|
||||
DELETE FROM [Tables].[suppliers]
|
||||
WHERE [id] = @supplier_id;
|
||||
GO
|
||||
Reference in New Issue
Block a user