From c636b2868de47100061242700768db7eff51795b Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 6 Feb 2009 11:37:28 -0500 Subject: [PATCH] Removing raw .sql files from app/config, renaming sql/ => schema/ --- app/config/{sql => schema}/db_acl.php | 0 app/config/{sql => schema}/i18n.php | 0 app/config/{sql => schema}/sessions.php | 0 app/config/sql/db_acl.sql | 40 ------------------------- app/config/sql/i18n.sql | 26 ---------------- app/config/sql/sessions.sql | 16 ---------- 6 files changed, 82 deletions(-) rename app/config/{sql => schema}/db_acl.php (100%) rename app/config/{sql => schema}/i18n.php (100%) rename app/config/{sql => schema}/sessions.php (100%) delete mode 100644 app/config/sql/db_acl.sql delete mode 100644 app/config/sql/i18n.sql delete mode 100644 app/config/sql/sessions.sql diff --git a/app/config/sql/db_acl.php b/app/config/schema/db_acl.php similarity index 100% rename from app/config/sql/db_acl.php rename to app/config/schema/db_acl.php diff --git a/app/config/sql/i18n.php b/app/config/schema/i18n.php similarity index 100% rename from app/config/sql/i18n.php rename to app/config/schema/i18n.php diff --git a/app/config/sql/sessions.php b/app/config/schema/sessions.php similarity index 100% rename from app/config/sql/sessions.php rename to app/config/schema/sessions.php diff --git a/app/config/sql/db_acl.sql b/app/config/sql/db_acl.sql deleted file mode 100644 index 6fc01b8ea..000000000 --- a/app/config/sql/db_acl.sql +++ /dev/null @@ -1,40 +0,0 @@ -# $Id$ -# -# Copyright 2005-2008, Cake Software Foundation, Inc. -# -# Licensed under The MIT License -# Redistributions of files must retain the above copyright notice. -# http://www.opensource.org/licenses/mit-license.php The MIT License - -CREATE TABLE acos ( - id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - parent_id INTEGER(10) DEFAULT NULL, - model VARCHAR(255) DEFAULT '', - foreign_key INTEGER(10) UNSIGNED DEFAULT NULL, - alias VARCHAR(255) DEFAULT '', - lft INTEGER(10) DEFAULT NULL, - rght INTEGER(10) DEFAULT NULL, - PRIMARY KEY (id) -); - -CREATE TABLE aros_acos ( - id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - aro_id INTEGER(10) UNSIGNED NOT NULL, - aco_id INTEGER(10) UNSIGNED NOT NULL, - _create CHAR(2) NOT NULL DEFAULT 0, - _read CHAR(2) NOT NULL DEFAULT 0, - _update CHAR(2) NOT NULL DEFAULT 0, - _delete CHAR(2) NOT NULL DEFAULT 0, - PRIMARY KEY(id) -); - -CREATE TABLE aros ( - id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - parent_id INTEGER(10) DEFAULT NULL, - model VARCHAR(255) DEFAULT '', - foreign_key INTEGER(10) UNSIGNED DEFAULT NULL, - alias VARCHAR(255) DEFAULT '', - lft INTEGER(10) DEFAULT NULL, - rght INTEGER(10) DEFAULT NULL, - PRIMARY KEY (id) -); diff --git a/app/config/sql/i18n.sql b/app/config/sql/i18n.sql deleted file mode 100644 index db1daea4a..000000000 --- a/app/config/sql/i18n.sql +++ /dev/null @@ -1,26 +0,0 @@ -# $Id$ -# -# Copyright 2005-2008, Cake Software Foundation, Inc. -# -# Licensed under The MIT License -# Redistributions of files must retain the above copyright notice. -# http://www.opensource.org/licenses/mit-license.php The MIT License - -CREATE TABLE i18n ( - id int(10) NOT NULL auto_increment, - locale varchar(6) NOT NULL, - model varchar(255) NOT NULL, - foreign_key int(10) NOT NULL, - field varchar(255) NOT NULL, - content mediumtext, - PRIMARY KEY (id), -# UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field), -# INDEX I18N_LOCALE_ROW(locale, model, foreign_key), -# INDEX I18N_LOCALE_MODEL(locale, model), -# INDEX I18N_FIELD(model, foreign_key, field), -# INDEX I18N_ROW(model, foreign_key), - INDEX locale (locale), - INDEX model (model), - INDEX row_id (foreign_key), - INDEX field (field) -); diff --git a/app/config/sql/sessions.sql b/app/config/sql/sessions.sql deleted file mode 100644 index 75be419a1..000000000 --- a/app/config/sql/sessions.sql +++ /dev/null @@ -1,16 +0,0 @@ -# $Id$ -# -# Copyright 2005-2008, Cake Software Foundation, Inc. -# 1785 E. Sahara Avenue, Suite 490-204 -# Las Vegas, Nevada 89104 -# -# Licensed under The MIT License -# Redistributions of files must retain the above copyright notice. -# http://www.opensource.org/licenses/mit-license.php The MIT License - -CREATE TABLE cake_sessions ( - id varchar(255) NOT NULL default '', - data text, - expires int(11) default NULL, - PRIMARY KEY (id) -); \ No newline at end of file