Release v0.1.4 with terrain rescanning and owner-published map updates
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m26s

This commit is contained in:
2026-10-28 19:40:53 +05:00
parent 5898ef35a5
commit 658c8974ac
53 changed files with 608 additions and 83 deletions

View File

@@ -16,7 +16,7 @@ try {
await db.exec(`create role anon; create role authenticated; create role service_role bypassrls; create role supabase_auth_admin bypassrls;
create schema auth; create table auth.users(id uuid primary key);
create function auth.uid() returns uuid language sql as $$select null::uuid$$;
create schema storage; create table storage.buckets(id text primary key,name text,public boolean,file_size_limit bigint);`);
create schema storage; create table storage.buckets(id text primary key,name text,public boolean,file_size_limit bigint,allowed_mime_types text[]); create table storage.objects(id uuid primary key default gen_random_uuid(),bucket_id text,name text); create function storage.foldername(name text) returns text[] language sql as $$ select string_to_array(name, '/') $$;`);
for(const file of (await readdir("supabase/migrations")).filter(f=>f.endsWith(".sql")).sort())
await db.exec(await readFile(`supabase/migrations/${file}`,"utf8"));
await db.exec("grant select,insert,update,delete on all tables in schema public to service_role;");
@@ -61,8 +61,8 @@ try {
await db.query("insert into public.contributor_tokens(owner_id,token_hash,label) values($1,'uploadfixture','fixture')",[owner]);
await db.query("insert into public.pairing_codes(device_hash,user_code,owner_id,expires_at,token_value) values('device','PAIR',$1,clock_timestamp()+interval '1 day','secret')",[owner]);
const key=await value("select public.developer_key_create($1,'Test',array['maps:read'],$2,'mg_dev_fixture',1) value",[owner,hash]);
await db.query("insert into public.game_sessions(id,revision_id,owner_id,access_hash,difficulty) values($1,$2,$3,'old-solo-secret','easy')",[game,revision,owner]);
await db.query("insert into public.multiplayer_rooms(id,revision_id,host_player_id,difficulty,player_limit) values($1,$2,$3,'easy',4)",[room,revision,player]);
await db.query("insert into public.game_sessions(id,revision_id,owner_id,access_hash,difficulty,difficulty_settings) values($1,$2,$3,'old-solo-secret','easy',public.resolve_difficulty_preset('easy'))",[game,revision,owner]);
await db.query("insert into public.multiplayer_rooms(id,revision_id,host_player_id,difficulty,player_limit,difficulty_settings) values($1,$2,$3,'easy',4,public.resolve_difficulty_preset('easy'))",[room,revision,player]);
await db.query("insert into public.multiplayer_players(id,room_id,access_hash,display_name,account_id) values($1,$2,'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd','Fixture',$3)",[player,room,owner]);
assert.deepEqual(await action(owner,"ban"),{id:owner,status:"banned",statusVersion:1});
assert.equal((await profile()).account_reason,reason);