Cleaned up some database work
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 21 Jun 2016 16:21:39 +0000 (12:21 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 21 Jun 2016 16:21:39 +0000 (12:21 -0400)
setup/databaseScripts/examples/drop_database_V0.0.1.sql [new file with mode: 0644]
setup/databaseScripts/examples/readme.txt

diff --git a/setup/databaseScripts/examples/drop_database_V0.0.1.sql b/setup/databaseScripts/examples/drop_database_V0.0.1.sql
new file mode 100644 (file)
index 0000000..f04ce11
--- /dev/null
@@ -0,0 +1,12 @@
+-- Gaslight Media Members Database 
+-- File Created: 12/09/14 15:27:15
+-- Database Version: 1.1.5
+-- Database Deletion Script
+-- Note: Tables with DELETE CASCADE must appear before referenced table
+--
+-- Multiple tables may be separated by ",".
+
+DROP TABLE IF EXISTS
+    {prefix}sometablename
+;
+
index f4f3b48..eeecde4 100644 (file)
@@ -17,5 +17,9 @@ There is also an entry in the dbVersions.php file that describes the update.
 
 Note that the number of tables needs to be set to the updated number for each update.
 
-Also note taht the SQL update scripts are run before the PHP update scripts.
+Also note that the SQL update scripts are run before the PHP update scripts.
+
+NOTE: When doing a database version update be sure to update the version numbers
+on the "create_database_V..." and "drop_database_V..." files. Also the drop_database
+file must reference all off the tables in the create_database file.