Skip to content
Snippets Groups Projects
Commit 61d291a1 authored by Steven Murray's avatar Steven Murray
Browse files

The 'DEFAULT 0' clause of the nbRetries column of the CREATE TABLE MigrationJob

statement was in the wrong place and was causing the following error message
when trying to create the stager schema:

			   nbRetries INTEGER CONSTRAINT NN_MigrationJob_nbRetries NOT NULL DEFAULT 0,
                                                                                           *
ERROR at line 9:
ORA-00907: missing right parenthesis

I have now moved the DEFAULT 0 clause to immediately after the column type.
There are other problems with the stager creation script that still need to be
fixed.  I hope it is only one more problem and not many.
parent 9cd222df
Branches
Tags
No related merge requests found
......@@ -340,7 +340,7 @@ CREATE TABLE MigrationJob (fileSize INTEGER CONSTRAINT NN_MigrationJob_FileSize
originalCopyNb INTEGER,
destCopyNb INTEGER CONSTRAINT NN_MigrationJob_destcopyNb NOT NULL,
tapePool INTEGER CONSTRAINT NN_MigrationJob_TapePool NOT NULL,
nbRetries INTEGER CONSTRAINT NN_MigrationJob_nbRetries NOT NULL DEFAULT 0,
nbRetries INTEGER DEFAULT 0 CONSTRAINT NN_MigrationJob_nbRetries NOT NULL,
mountTransactionId INTEGER, -- this is NULL at the beginning
fileTransactionId INTEGER CONSTRAINT UN_MigrationJob_FileTrId UNIQUE USING INDEX,
fSeq INTEGER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment