From e4a812f0ff9fc49a7c0fe92bf6ed51bf5eec58e7 Mon Sep 17 00:00:00 2001 From: Noud de Brouwer Date: Wed, 23 Jan 2013 14:44:41 +0000 Subject: [PATCH] DB in conversion create Blacklist table as well. --- app/Config/Schema/db_blacklist.php | 19 +++++++++++++++++++ app/Console/shell/migrate-0.2.2-0.2.3.sh | 3 +++ 2 files changed, 22 insertions(+) create mode 100755 app/Config/Schema/db_blacklist.php diff --git a/app/Config/Schema/db_blacklist.php b/app/Config/Schema/db_blacklist.php new file mode 100755 index 000000000..7bcc9e6df --- /dev/null +++ b/app/Config/Schema/db_blacklist.php @@ -0,0 +1,19 @@ + array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), + 'name' => array('type' => 'text', 'null' => false, 'default' => null, 'key' => 'index', 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)), + 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_bin', 'engine' => 'MyISAM') + ); +} diff --git a/app/Console/shell/migrate-0.2.2-0.2.3.sh b/app/Console/shell/migrate-0.2.2-0.2.3.sh index 74a0e364a..28cf5d93b 100755 --- a/app/Console/shell/migrate-0.2.2-0.2.3.sh +++ b/app/Console/shell/migrate-0.2.2-0.2.3.sh @@ -23,6 +23,9 @@ cd ${PRJCT} # create Whitelist table ./Console/cake schema create DbWhitelist +# create Blacklist table +./Console/cake schema create DbBlacklist + # update Schema, add Users.role_id ./Console/cake schema update -s 0.2.2.1