mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00

This sends a HEAD request to the registered URL for the webapp and assumes that the app is dead if result is not 200. This change caused a cascade of changes to the treatment of the database table, because the DBMS layer insists that a table's primary key be INTEGER. It was necessary to introduce a new column for the purpose. This also means you can have more than one running instance of the same UI, if you wish. But it also means that the sequence required by the new column will overflow after about 2 billion starts.
38 lines
1.1 KiB
SQL
38 lines
1.1 KiB
SQL
--
|
|
-- database_schema_18-3.sql
|
|
--
|
|
-- Version: $Revision$
|
|
--
|
|
-- Date: $Date: 2012-05-29
|
|
--
|
|
-- The contents of this file are subject to the license and copyright
|
|
-- detailed in the LICENSE and NOTICE files at the root of the source
|
|
-- tree and available online at
|
|
--
|
|
-- http://www.dspace.org/license/
|
|
--
|
|
|
|
--
|
|
-- SQL commands to upgrade the database schema of a live DSpace 1.8 or 1.8.x
|
|
-- to the DSpace 3 database schema
|
|
--
|
|
-- DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST.
|
|
-- DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST.
|
|
-- DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST. DUMP YOUR DATABASE FIRST.
|
|
--
|
|
|
|
-------------------------------------------
|
|
-- New columns and longer hash for salted password hashing DS-861 --
|
|
-------------------------------------------
|
|
|
|
CREATE SEQUENCE webapp_seq;
|
|
|
|
CREATE TABLE Webapp
|
|
(
|
|
webapp_id INTEGER NOT NULL PRIMARY KEY,
|
|
AppName VARCHAR(32),
|
|
URL VARCHAR,
|
|
Started TIMESTAMP,
|
|
isUI INTEGER
|
|
);
|