diff --git a/client/src/components/snippets/SnippetStorage.tsx b/client/src/components/snippets/SnippetStorage.tsx index 7c26ea8..aff194f 100644 --- a/client/src/components/snippets/SnippetStorage.tsx +++ b/client/src/components/snippets/SnippetStorage.tsx @@ -13,7 +13,7 @@ import { Snippet } from '../../types/types'; import { initializeMonaco } from '../../utils/languageUtils'; import ShareMenu from './share/ShareMenu'; -const APP_VERSION = "1.5.0"; +const APP_VERSION = "1.4.1"; const SnippetStorage: React.FC = () => { const { snippets, isLoading, addSnippet, updateSnippet, removeSnippet, reloadSnippets } = useSnippets(); diff --git a/server/src/config/database.js b/server/src/config/database.js index 6920fd1..3717817 100644 --- a/server/src/config/database.js +++ b/server/src/config/database.js @@ -125,7 +125,6 @@ function createInitialSchema(db) { CREATE TABLE IF NOT EXISTS snippets ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, - language TEXT NOT NULL, description TEXT, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ); @@ -142,6 +141,7 @@ function createInitialSchema(db) { snippet_id INTEGER NOT NULL, file_name TEXT NOT NULL, code TEXT NOT NULL, + language TEXT NOT NULL, position INTEGER NOT NULL, FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE );