change to dates, add migration script

This commit is contained in:
2026-01-10 23:01:08 -07:00
parent 8014bd4e83
commit f902ce125d
6 changed files with 63 additions and 8 deletions
+11 -3
View File
@@ -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"]
},
]
}
}
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+47
View File
@@ -0,0 +1,47 @@
# MySQL script for migrating a Venice database to the Amsterdam schema.
# Written by Amy Bowersox <amy@erbosoft.com>
#---------------------------------------------------------------------------
# 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);