mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- found a bug, it caused MSSQL not being able to use templates stored in the DB since the first beta. removing pointless auto_increment
git-svn-id: file:///svn/phpbb/trunk@7990 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1453,7 +1453,7 @@ END;
|
||||
Table: 'phpbb_styles_template_data'
|
||||
*/
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id number(4) NOT NULL,
|
||||
template_id number(4) DEFAULT '0' NOT NULL,
|
||||
template_filename varchar2(100) DEFAULT '' ,
|
||||
template_included clob DEFAULT '' ,
|
||||
template_mtime number(11) DEFAULT '0' NOT NULL,
|
||||
@@ -1466,22 +1466,6 @@ CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (templ
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename)
|
||||
/
|
||||
|
||||
CREATE SEQUENCE phpbb_styles_template_data_seq
|
||||
/
|
||||
|
||||
CREATE OR REPLACE TRIGGER t_phpbb_styles_template_data
|
||||
BEFORE INSERT ON phpbb_styles_template_data
|
||||
FOR EACH ROW WHEN (
|
||||
new.template_id IS NULL OR new.template_id = 0
|
||||
)
|
||||
BEGIN
|
||||
SELECT phpbb_styles_template_data_seq.nextval
|
||||
INTO :new.template_id
|
||||
FROM dual;
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_theme'
|
||||
*/
|
||||
|
Reference in New Issue
Block a user