diff --git a/.vscode/launch.json b/.vscode/launch.json index f82900b..848c589 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,11 +5,19 @@ "version": "0.2.0", "configurations": [ { - "name": "Launch Amsterdam", + "name": "Amsterdam", "type": "go", "request": "launch", "mode": "auto", "program": "${workspaceFolder}" - } + }, + { + "name": "Amsterdam Test Config", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}", + "args": ["-C", "${workspaceFolder}/test.yaml"] + }, ] -} \ No newline at end of file +} diff --git a/config/config.go b/config/config.go index 33fd351..6b87652 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,6 @@ /* * Amsterdam Web Communities System - * Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved + * Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -24,7 +24,7 @@ import ( const AMSTERDAM_VERSION = "0.0.1" // AMSTERDAM_COPYRIGHT contains the copyright dates for Amsterdam. -const AMSTERDAM_COPYRIGHT = "2025" +const AMSTERDAM_COPYRIGHT = "2025-2026" // AmCLI is the command-line interface arguments structure. type AmCLI struct { diff --git a/docs/templates/go-header.txt b/docs/templates/go-header.txt index bb7ef15..cca5197 100644 --- a/docs/templates/go-header.txt +++ b/docs/templates/go-header.txt @@ -1,6 +1,6 @@ /* * Amsterdam Web Communities System - * Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved + * Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/docs/templates/jet-header.txt b/docs/templates/jet-header.txt index 10bfaa7..0cbaaaa 100644 --- a/docs/templates/jet-header.txt +++ b/docs/templates/jet-header.txt @@ -1,6 +1,6 @@ {* * Amsterdam Web Communities System - * Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved + * Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/docs/templates/yaml-header.txt b/docs/templates/yaml-header.txt index 120db81..4589ca4 100644 --- a/docs/templates/yaml-header.txt +++ b/docs/templates/yaml-header.txt @@ -1,6 +1,6 @@ # # Amsterdam Web Communities System -# Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved +# Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/setup/migrate-venice.sql b/setup/migrate-venice.sql new file mode 100644 index 0000000..436ec09 --- /dev/null +++ b/setup/migrate-venice.sql @@ -0,0 +1,47 @@ +# MySQL script for migrating a Venice database to the Amsterdam schema. +# Written by Amy Bowersox +#--------------------------------------------------------------------------- +# Amsterdam Web Communities System +# Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# + +ALTER TABLE globals RENAME COLUMN max_sig_mbr_page TO max_comm_mbr_page; +ALTER TABLE globals RENAME COLUMN sig_create_lvl TO comm_create_lvl; + +ALTER TABLE audit RENAME COLUMN sigid TO commid; +ALTER TABLE audit RENAME INDEX sig_view TO comm_view; + +ALTER TABLE contacts RENAME COLUMN owner_sigid TO owner_commid; + +ALTER TABLE sigs RENAME COLUMN sigid TO commid; +ALTER TABLE sigs RENAME COLUMN signame TO commname; +ALTER TABLE sigs RENAME AS communities; + +ALTER TABLE sigftrs RENAME COLUMN sigid TO commid; +ALTER TABLE sigftrs RENAME AS commftrs; + +ALTER TABLE sigmember RENAME COLUMN sigid TO commid; +ALTER TABLE sigmember RENAME AS commmember; + +ALTER TABLE sigban RENAME COLUMN sigid TO commid; +ALTER TABLE sigban RENAME AS commban; + +ALTER TABLE sigtoconf RENAME COLUMN sigid TO commid; +ALTER TABLE sigtoconf RENAME AS commtoconf; + +ALTER TABLE confhotlist RENAME COLUMN sigid TO commid; + +ALTER TABLE postpublish RENAME COLUMN sigid TO commid; + +ALTER TABLE ipban DROP INDEX by_mask; +ALTER TABLE ipban DROP COLUMN address; +ALTER TABLE ipban DROP COLUMN mask; +ALTER TABLE ipban ADD COLUMN mask_hi BIGINT UNSIGNED NOT NULL AFTER id; +ALTER TABLE ipban ADD COLUMN mask_lo BIGINT UNSIGNED NOT NULL AFTER id; +ALTER TABLE ipban ADD COLUMN address_hi BIGINT UNSIGNED NOT NULL AFTER id; +ALTER TABLE ipban ADD COLUMN address_lo BIGINT UNSIGNED NOT NULL AFTER id; +ALTER TABLE ipban ADD INDEX by_mask (mask_hi, mask_lo);