Renamed technology tables and views
* Removed the _v2 suffix from some tables and views.
This commit is contained in:
parent
ab04752169
commit
071257786c
19 changed files with 82 additions and 82 deletions
legacyworlds-server-data/db-structure/parts/030-data
|
@ -101,7 +101,7 @@ CREATE TYPE emp.technology_state
|
|||
* research system has been removed
|
||||
*/
|
||||
|
||||
CREATE TABLE emp.technologies_v2(
|
||||
CREATE TABLE emp.technologies(
|
||||
/* Identifier of the empire */
|
||||
empire_id INT NOT NULL ,
|
||||
|
||||
|
@ -136,9 +136,9 @@ CREATE TABLE emp.technologies_v2(
|
|||
);
|
||||
|
||||
CREATE INDEX idx_emptech_technology
|
||||
ON emp.technologies_v2 ( technology_name_id );
|
||||
ON emp.technologies ( technology_name_id );
|
||||
|
||||
ALTER TABLE emp.technologies_v2
|
||||
ALTER TABLE emp.technologies
|
||||
ADD CONSTRAINT fk_emptech_empire
|
||||
FOREIGN KEY ( empire_id ) REFERENCES emp.empires ( name_id )
|
||||
ON DELETE CASCADE ,
|
||||
|
@ -358,4 +358,4 @@ ALTER TABLE emp.enemy_empires
|
|||
ON DELETE CASCADE ,
|
||||
ADD CONSTRAINT fk_enemyempires_enemy
|
||||
FOREIGN KEY (enemy_id) REFERENCES emp.empires
|
||||
ON DELETE CASCADE;
|
||||
ON DELETE CASCADE;
|
||||
|
|
Reference in a new issue