Remove migration file, schema already in main SQL

This commit is contained in:
2026-03-02 13:01:18 -07:00
parent cbed5e4e0c
commit 36a516f878
2 changed files with 32 additions and 14 deletions

32
log.txt
View File

@@ -12,3 +12,35 @@ The last packet sent successfully to the server was 0 milliseconds ago. The driv
[2026-02-28 14:35:14] [ERROR] EXCEPTION | Location: MainLayoutController.loadView | Type: LoadException | Message:
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/modelviews/analytics-view.fxml:58
| Context: Loading view: analytics-view.fxml
[2026-02-28 15:54:59] [ERROR] EXCEPTION | Location: LoginController.openMainLayout | Type: LoadException | Message: Error resolving onAction='#btnChatClicked', either the event handler is not in the Namespace or there is an error in the script.
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/main-layout-view.fxml:177
| Context: Loading main application layout after successful login
[2026-02-28 15:55:01] [ERROR] EXCEPTION | Location: LoginController.openMainLayout | Type: LoadException | Message: Error resolving onAction='#btnChatClicked', either the event handler is not in the Namespace or there is an error in the script.
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/main-layout-view.fxml:177
| Context: Loading main application layout after successful login
[2026-02-28 15:59:05] [ERROR] EXCEPTION | Location: LoginController.openMainLayout | Type: LoadException | Message:
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/main-layout-view.fxml:48
| Context: Loading main application layout after successful login
[2026-02-28 15:59:24] [ERROR] EXCEPTION | Location: LoginController.openMainLayout | Type: LoadException | Message:
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/main-layout-view.fxml:48
| Context: Loading main application layout after successful login
[2026-02-28 16:01:12] [ERROR] EXCEPTION | Location: LoginController.openMainLayout | Type: LoadException | Message:
/home/user/Documents/SAIT/Winter%202026/intellij/group-2-threaded-project-petshop-desktop/target/classes/org/example/petshopdesktop/main-layout-view.fxml:48
| Context: Loading main application layout after successful login
[2026-03-02 12:37:53] [ERROR] EXCEPTION | Location: ConnectionDB.getConnection | Type: CommunicationsException | Message: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. | Context: Establishing database connection
[2026-03-02 12:37:53] [ERROR] EXCEPTION | Location: ConnectionDB.getConnection | Type: CommunicationsException | Message: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. | Context: Establishing database connection
[2026-03-02 12:41:14] [ERROR] EXCEPTION | Location: ConnectionDB.getConnection | Type: CommunicationsException | Message: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. | Context: Establishing database connection
[2026-03-02 12:41:29] [ERROR] EXCEPTION | Location: SaleController.refreshSales | Type: SQLSyntaxErrorException | Message: Unknown column 's.isRefund' in 'field list' | Context: Loading sales
[2026-03-02 12:41:43] [ERROR] EXCEPTION | Location: SaleController.refreshSales | Type: SQLSyntaxErrorException | Message: Unknown column 's.isRefund' in 'field list' | Context: Loading sales
[2026-03-02 12:41:46] [ERROR] EXCEPTION | Location: SaleController.refreshSales | Type: SQLSyntaxErrorException | Message: Unknown column 's.isRefund' in 'field list' | Context: Loading sales
[2026-03-02 12:41:50] [ERROR] EXCEPTION | Location: SaleController.refreshSales | Type: SQLSyntaxErrorException | Message: Unknown column 's.isRefund' in 'field list' | Context: Loading sales
[2026-03-02 12:42:11] [ERROR] EXCEPTION | Location: SaleController.refreshSales | Type: SQLSyntaxErrorException | Message: Unknown column 's.isRefund' in 'field list' | Context: Loading sales
[2026-03-02 13:00:16] [ERROR] EXCEPTION | Location: ConnectionDB.getConnection | Type: CommunicationsException | Message: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. | Context: Establishing database connection

View File

@@ -1,14 +0,0 @@
-- Database Migration Script for Refund System
-- Run this on existing Petstoredb to add refund functionality
USE Petstoredb;
-- Add refund columns to sale table
ALTER TABLE sale
ADD COLUMN isRefund BOOLEAN DEFAULT FALSE NOT NULL,
ADD COLUMN originalSaleId INT NULL,
ADD CONSTRAINT fk_original_sale
FOREIGN KEY (originalSaleId) REFERENCES sale(saleId);
-- Verify the changes
DESCRIBE sale;