diff --git a/main.go b/main.go index 33cbbfdd7..a93d532fa 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { defer zapLogger.Sync() logger := zapLogger.Named("main") - logger.Info(fmt.Sprintf("Starting Erupe (9.2b-%s)", Commit())) + logger.Info(fmt.Sprintf("Starting Erupe (9.2-%s)", Commit())) if config.ErupeConfig.Database.Password == "" { preventClose("Database password is blank") diff --git a/patch-schema/etc-points.sql b/patch-schema/etc-points.sql deleted file mode 100644 index 88062922f..000000000 --- a/patch-schema/etc-points.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - -ALTER TABLE characters ADD bonus_quests INT NOT NULL DEFAULT 0; - -ALTER TABLE characters ADD daily_quests INT NOT NULL DEFAULT 0; - -ALTER TABLE characters ADD promo_points INT NOT NULL DEFAULT 0; - -END; \ No newline at end of file diff --git a/patch-schema/gacha-db-2.sql b/patch-schema/gacha-db-2.sql deleted file mode 100644 index d3faa1ed9..000000000 --- a/patch-schema/gacha-db-2.sql +++ /dev/null @@ -1,77 +0,0 @@ -BEGIN; - -ALTER TABLE characters - DROP COLUMN IF EXISTS gacha_prem; - -ALTER TABLE characters - DROP COLUMN IF EXISTS gacha_trial; - -ALTER TABLE characters - DROP COLUMN IF EXISTS frontier_points; - -ALTER TABLE users - ADD IF NOT EXISTS gacha_premium INT; - -ALTER TABLE users - ADD IF NOT EXISTS gacha_trial INT; - -ALTER TABLE users - ADD IF NOT EXISTS frontier_points INT; - -DROP TABLE IF EXISTS public.gacha_shop; - -CREATE TABLE IF NOT EXISTS public.gacha_shop ( - id SERIAL PRIMARY KEY, - min_gr INTEGER, - min_hr INTEGER, - name TEXT, - url_banner TEXT, - url_feature TEXT, - url_thumbnail TEXT, - wide BOOLEAN, - recommended BOOLEAN, - gacha_type INTEGER, - hidden BOOLEAN -); - -DROP TABLE IF EXISTS public.gacha_shop_items; - -CREATE TABLE IF NOT EXISTS public.gacha_entries ( - id SERIAL PRIMARY KEY, - gacha_id INTEGER, - entry_type INTEGER, - item_type INTEGER, - item_number INTEGER, - item_quantity INTEGER, - weight INTEGER, - rarity INTEGER, - rolls INTEGER, - frontier_points INTEGER, - daily_limit INTEGER -); - -CREATE TABLE IF NOT EXISTS public.gacha_items ( - id SERIAL PRIMARY KEY, - entry_id INTEGER, - item_type INTEGER, - item_id INTEGER, - quantity INTEGER -); - -DROP TABLE IF EXISTS public.stepup_state; - -CREATE TABLE IF NOT EXISTS public.gacha_stepup ( - gacha_id INTEGER, - step INTEGER, - character_id INTEGER -); - -DROP TABLE IF EXISTS public.lucky_box_state; - -CREATE TABLE IF NOT EXISTS public.gacha_box ( - gacha_id INTEGER, - entry_id INTEGER, - character_id INTEGER -); - -END; \ No newline at end of file diff --git a/patch-schema/gacha-db.sql b/patch-schema/gacha-db.sql deleted file mode 100644 index 2fab717fe..000000000 --- a/patch-schema/gacha-db.sql +++ /dev/null @@ -1,29 +0,0 @@ -BEGIN; - -DROP TABLE IF EXISTS public.gacha_shop; - -CREATE TABLE IF NOT EXISTS public.gacha_shop ( - id serial PRIMARY KEY, - min_gr integer, - min_hr integer, - name text, - link1 text, - link2 text, - link3 text, - icon integer, - type integer, - hide boolean -); - -DROP TABLE IF EXISTS public.fpoint_items; - -CREATE TABLE IF NOT EXISTS public.fpoint_items ( - id serial PRIMARY KEY, - item_type integer, - item_id integer, - quantity integer, - fpoints integer, - trade_type integer -); - -END; \ No newline at end of file diff --git a/patch-schema/guild-event-rp.sql b/patch-schema/guild-event-rp.sql deleted file mode 100644 index 1dca6aae1..000000000 --- a/patch-schema/guild-event-rp.sql +++ /dev/null @@ -1,7 +0,0 @@ -BEGIN; - -ALTER TABLE IF EXISTS public.guild_characters ADD rp_today INT DEFAULT 0; - -ALTER TABLE IF EXISTS public.guild_characters ADD rp_yesterday INT DEFAULT 0; - -END; \ No newline at end of file diff --git a/patch-schema/login-boost.sql b/patch-schema/login-boost.sql deleted file mode 100644 index 3b451a65f..000000000 --- a/patch-schema/login-boost.sql +++ /dev/null @@ -1,12 +0,0 @@ -BEGIN; - -DROP TABLE IF EXISTS public.login_boost_state; - -CREATE TABLE IF NOT EXISTS public.login_boost ( - char_id INTEGER, - week_req INTEGER, - expiration TIMESTAMP WITH TIME ZONE, - reset TIMESTAMP WITH TIME ZONE -); - -END; \ No newline at end of file diff --git a/patch-schema/mezfes-save.sql b/patch-schema/mezfes-save.sql deleted file mode 100644 index a4445dc15..000000000 --- a/patch-schema/mezfes-save.sql +++ /dev/null @@ -1,6 +0,0 @@ -BEGIN; - -ALTER TABLE public.characters - ADD COLUMN mezfes BYTEA; - -END; \ No newline at end of file diff --git a/patch-schema/misc.sql b/patch-schema/misc.sql deleted file mode 100644 index 93749d8db..000000000 --- a/patch-schema/misc.sql +++ /dev/null @@ -1,15 +0,0 @@ -BEGIN; - -CREATE TABLE IF NOT EXISTS public.feature_weapon -( - start_time TIMESTAMP WITH TIME ZONE NOT NULL, - featured INTEGER NOT NULL -); - -DROP TABLE IF EXISTS public.user_binaries; - -DROP PROCEDURE IF EXISTS raviinit; - -DROP PROCEDURE IF EXISTS ravireset; - -END; \ No newline at end of file diff --git a/patch-schema/rasta-id.sql b/patch-schema/rasta-id.sql deleted file mode 100644 index 14541e378..000000000 --- a/patch-schema/rasta-id.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - -UPDATE characters SET savemercenary = NULL; - -ALTER TABLE characters ADD rasta_id INT; - -ALTER TABLE characters ADD pact_id INT; - -END; \ No newline at end of file diff --git a/patch-schema/rights-v4.sql b/patch-schema/rights-v4.sql deleted file mode 100644 index 54e895f06..000000000 --- a/patch-schema/rights-v4.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - --- Remove Trial Course from all users -UPDATE users SET rights = rights-2; - -ALTER TABLE IF EXISTS public.users - ALTER COLUMN rights SET DEFAULT 12; - -END; \ No newline at end of file diff --git a/patch-schema/shop-db.sql b/patch-schema/shop-db.sql deleted file mode 100644 index 543c373db..000000000 --- a/patch-schema/shop-db.sql +++ /dev/null @@ -1,78 +0,0 @@ -BEGIN; - -ALTER TABLE IF EXISTS public.normal_shop_items - RENAME TO shop_items; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN shoptype TO shop_type; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN shopid TO shop_id; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN itemhash TO id; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN itemid TO item_id; - -ALTER TABLE IF EXISTS public.shop_items - ALTER COLUMN points TYPE integer; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN points TO cost; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN tradequantity TO quantity; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN rankreqlow TO min_hr; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN rankreqhigh TO min_sr; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN rankreqg TO min_gr; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN storelevelreq TO store_level; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN maximumquantity TO max_quantity; - -ALTER TABLE IF EXISTS public.shop_items - DROP COLUMN IF EXISTS boughtquantity; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN roadfloorsrequired TO road_floors; - -ALTER TABLE IF EXISTS public.shop_items - RENAME COLUMN weeklyfataliskills TO road_fatalis; - -ALTER TABLE public.shop_items - RENAME CONSTRAINT normal_shop_items_pkey TO shop_items_pkey; - -ALTER TABLE IF EXISTS public.shop_items - DROP CONSTRAINT IF EXISTS normal_shop_items_itemhash_key; - -CREATE SEQUENCE public.shop_items_id_seq; - -ALTER SEQUENCE public.shop_items_id_seq - OWNER TO postgres; - -ALTER TABLE IF EXISTS public.shop_items - ALTER COLUMN id SET DEFAULT nextval('shop_items_id_seq'::regclass); - -ALTER SEQUENCE IF EXISTS public.shop_items_id_seq - OWNED BY shop_items.id; - -SELECT setval('shop_items_id_seq', (SELECT MAX(id) FROM public.shop_items)); - -DROP TABLE IF EXISTS public.shop_item_state; - -CREATE TABLE IF NOT EXISTS public.shop_items_bought ( - character_id INTEGER, - shop_item_id INTEGER, - bought INTEGER -); - -END; \ No newline at end of file diff --git a/patch-schema/stampcard.sql b/patch-schema/stampcard.sql deleted file mode 100644 index f2c6b7d10..000000000 --- a/patch-schema/stampcard.sql +++ /dev/null @@ -1,5 +0,0 @@ -BEGIN; - -ALTER TABLE characters ADD stampcard INT NOT NULL DEFAULT 0; - -END; \ No newline at end of file diff --git a/patch-schema/time-fix.sql b/patch-schema/time-fix.sql deleted file mode 100644 index 8c5d890c0..000000000 --- a/patch-schema/time-fix.sql +++ /dev/null @@ -1,69 +0,0 @@ -BEGIN; - -ALTER TABLE IF EXISTS public.characters - ALTER COLUMN daily_time TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.characters - ALTER COLUMN guild_post_checked TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.characters - ALTER COLUMN boost_time TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.characters - ALTER COLUMN cafe_reset TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.distribution - ALTER COLUMN deadline TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.events - ALTER COLUMN start_time TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.feature_weapon - ALTER COLUMN start_time TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guild_alliances - ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guild_applications - ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guild_characters - ALTER COLUMN joined_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guild_posts - ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.characters - ALTER COLUMN daily_time TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guilds - ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.mail - ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.stamps - ALTER COLUMN hl_next TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.stamps - ALTER COLUMN ex_next TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.titles - ALTER COLUMN unlocked_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.titles - ALTER COLUMN updated_at TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.users - ALTER COLUMN last_login TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.users - ALTER COLUMN return_expires TYPE TIMESTAMP WITH TIME ZONE; - -ALTER TABLE IF EXISTS public.guild_meals - DROP COLUMN expires; - -ALTER TABLE IF EXISTS public.guild_meals - ADD COLUMN created_at TIMESTAMP WITH TIME ZONE; - -END; \ No newline at end of file diff --git a/patch-schema/unused-tables.sql b/patch-schema/unused-tables.sql deleted file mode 100644 index a3411d517..000000000 --- a/patch-schema/unused-tables.sql +++ /dev/null @@ -1,17 +0,0 @@ -BEGIN; - -DROP TABLE IF EXISTS public.account_ban; - -DROP TABLE IF EXISTS public.account_history; - -DROP TABLE IF EXISTS public.account_moderation; - -DROP TABLE IF EXISTS public.account_sub; - -DROP TABLE IF EXISTS public.history; - -DROP TABLE IF EXISTS public.questlists; - -DROP TABLE IF EXISTS public.schema_migrations; - -END; \ No newline at end of file