TABLE MISSING FROM DB

DESCRIPTION OF ISSUE

[Discontinued_items] is missing from installer db

this causes issues with discontinuing items

SOLUTION

Use the following query to add the table to existing sites

USE [POS]
GO

/****** Object:  Table [dbo].[Discontinued_items]    Script Date: 9/29/2024 4:43:16 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Discontinued_items](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[UPCCode] [nvarchar](255) NULL,
	[inserted_date] [datetime] NULL,
	[user_id] [int] NULL,
 CONSTRAINT [PK_Discontinued_items] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

Last updated