Browse Source

Removed update features, since first release

allens 3 weeks ago
parent
commit
20b40cb665
3 changed files with 4 additions and 24 deletions
  1. 0 2
      ownchatbot/update_db.sql
  2. 0 22
      update-db.sh
  3. 4 0
      update.sh

+ 0 - 2
ownchatbot/update_db.sql

@@ -1,2 +0,0 @@
-ALTER TABLE points ADD COLUMN email TEXT;
-ALTER TABLE goals ADD COLUMN milestones INTEGER;

+ 0 - 22
update-db.sh

@@ -1,22 +0,0 @@
-#!/bin/bash
-#
-
-set -e  #  Exit immediately if any command exits with a non-zero status
-
-activate_venv() {
-    source env/bin/activate
-}
-
-update_db() {  # Create the database. This also populates it with some goals and votes from the default rewards.py
-    export FLASK_APP=ownchatbot
-    if python -m flask update-db; then
-        echo "Database updated successfully."
-    else
-        echo "Failed to update the database. Please check for errors."
-        exit 1  # Exit the script with a non-zero status
-    fi
-}
-
-activate_venv
-update_db
-deactivate

+ 4 - 0
update.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+#
+
+echo "No updates to make this time around."