30 lines
2.2 KiB
Transact-SQL
30 lines
2.2 KiB
Transact-SQL
USE [site_fuchs]
|
|
GO
|
|
ALTER TABLE [dbo].[fuchs_planner] DROP CONSTRAINT [DF_fuchs_planner_active]
|
|
GO
|
|
/****** Object: Table [dbo].[fuchs_planner] Script Date: 02.12.2020 21:05:05 ******/
|
|
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[fuchs_planner]') AND type in (N'U'))
|
|
DROP TABLE [dbo].[fuchs_planner]
|
|
GO
|
|
/****** Object: Table [dbo].[fuchs_planner] Script Date: 02.12.2020 21:05:06 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[fuchs_planner](
|
|
[planner_id] [tinyint] IDENTITY(1,1) NOT NULL,
|
|
[shortname] [varchar](10) NOT NULL,
|
|
[name] [varchar](100) NULL,
|
|
[description] [varchar](2000) NULL,
|
|
[active] [bit] NOT NULL,
|
|
CONSTRAINT [PK_fuchs_planner] PRIMARY KEY CLUSTERED
|
|
(
|
|
[planner_id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
ALTER AUTHORIZATION ON [dbo].[fuchs_planner] TO SCHEMA OWNER
|
|
GO
|
|
ALTER TABLE [dbo].[fuchs_planner] ADD CONSTRAINT [DF_fuchs_planner_active] DEFAULT ((1)) FOR [active]
|
|
GO
|