Skip to content

Commit

Permalink
merge to 1 sql file for sqlite database
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Dec 7, 2024
1 parent 478e2a7 commit d480fc3
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 41 deletions.
40 changes: 38 additions & 2 deletions migrations/dlu/0_initial.sql
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ last_updated BIGINT NOT NULL,
time_claimed BIGINT NOT NULL,
rejection_reason TEXT NOT NULL,
reputation BIGINT NOT NULL,
zone_id INTEGER NOT NULL
zone_id INTEGER NOT NULL,
performance_cost DOUBLE DEFAULT 0.0
);

CREATE TABLE IF NOT EXISTS ugc (
Expand Down Expand Up @@ -149,7 +150,8 @@ body TEXT NOT NULL,
client_version TEXT NOT NULL,
other_player_id TEXT NOT NULL,
selection TEXT NOT NULL,
submitted DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
submitted DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
reporter_id INTEGER NOT NULL DEFAULT 0
);

CREATE TABLE IF NOT EXISTS servers (
Expand All @@ -160,3 +162,37 @@ port INTEGER NOT NULL,
state INTEGER NOT NULL,
version INTEGER NOT NULL DEFAULT 0
);

CREATE TABLE IF NOT EXISTS player_cheat_detections (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
account_id INTEGER REFERENCES accounts(id),
name TEXT NOT NULL,
violation_msg TEXT NOT NULL,
violation_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
violation_system_address TEXT NOT NULL
);

CREATE TABLE IF NOT EXISTS ugc_modular_build (
ugc_id BIGINT NOT NULL PRIMARY KEY,
character_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
ldf_config VARCHAR(60) NOT NULL
);

CREATE TABLE IF NOT EXISTS ignore_list (
player_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
ignored_player_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,

PRIMARY KEY (player_id, ignored_player_id)
);

CREATE TABLE IF NOT EXISTS accounts_rewardcodes (
account_id INTEGER NOT NULL REFERENCES accounts(id) ON DELETE CASCADE,
rewardcode INTEGER NOT NULL,
PRIMARY KEY (account_id, rewardcode)
);

CREATE TABLE IF NOT EXISTS behaviors (
behavior_info TEXT NOT NULL,
behavior_id BIGINT NOT NULL PRIMARY KEY,
character_id BIGINT NOT NULL DEFAULT 0
);
8 changes: 0 additions & 8 deletions migrations/dlu/10_Security_updates.sql

This file was deleted.

9 changes: 0 additions & 9 deletions migrations/dlu/11_fix_cheat_detection_table.sql

This file was deleted.

5 changes: 0 additions & 5 deletions migrations/dlu/12_modular_build_ugc.sql

This file was deleted.

6 changes: 0 additions & 6 deletions migrations/dlu/13_ignore_list.sql

This file was deleted.

5 changes: 0 additions & 5 deletions migrations/dlu/14_reward_codes.sql

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion migrations/dlu/2_reporter_id.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/dlu/3_add_performance_cost.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/dlu/4_friends_list_objectids.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/dlu/5_brick_model_sd0.sql

This file was deleted.

2 changes: 0 additions & 2 deletions migrations/dlu/6_property_behaviors.sql

This file was deleted.

Empty file.
Empty file.
Empty file.

0 comments on commit d480fc3

Please sign in to comment.