Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
educational_paths* DB tables removed
Browse files Browse the repository at this point in the history
See #370
  • Loading branch information
bfontaine committed Nov 29, 2014
1 parent a7d8cba commit a564118
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 135 deletions.
21 changes: 0 additions & 21 deletions models/build/conf/classmap-ip7website-conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
'BaseCursus' => 'ip7website/om/BaseCursus.php',
'BaseCursusPeer' => 'ip7website/om/BaseCursusPeer.php',
'BaseCursusQuery' => 'ip7website/om/BaseCursusQuery.php',
'BaseEducationalPath' => 'ip7website/om/BaseEducationalPath.php',
'BaseEducationalPathPeer' => 'ip7website/om/BaseEducationalPathPeer.php',
'BaseEducationalPathQuery' => 'ip7website/om/BaseEducationalPathQuery.php',
'BaseEducationalPathsMandatoryCourses' => 'ip7website/om/BaseEducationalPathsMandatoryCourses.php',
'BaseEducationalPathsMandatoryCoursesPeer' => 'ip7website/om/BaseEducationalPathsMandatoryCoursesPeer.php',
'BaseEducationalPathsMandatoryCoursesQuery' => 'ip7website/om/BaseEducationalPathsMandatoryCoursesQuery.php',
'BaseEducationalPathsOptionalCourses' => 'ip7website/om/BaseEducationalPathsOptionalCourses.php',
'BaseEducationalPathsOptionalCoursesPeer' => 'ip7website/om/BaseEducationalPathsOptionalCoursesPeer.php',
'BaseEducationalPathsOptionalCoursesQuery' => 'ip7website/om/BaseEducationalPathsOptionalCoursesQuery.php',
'BaseFile' => 'ip7website/om/BaseFile.php',
'BaseFilePeer' => 'ip7website/om/BaseFilePeer.php',
'BaseFileQuery' => 'ip7website/om/BaseFileQuery.php',
Expand Down Expand Up @@ -87,18 +78,6 @@
'CursusPeer' => 'ip7website/CursusPeer.php',
'CursusQuery' => 'ip7website/CursusQuery.php',
'CursusTableMap' => 'ip7website/map/CursusTableMap.php',
'EducationalPath' => 'ip7website/EducationalPath.php',
'EducationalPathPeer' => 'ip7website/EducationalPathPeer.php',
'EducationalPathQuery' => 'ip7website/EducationalPathQuery.php',
'EducationalPathTableMap' => 'ip7website/map/EducationalPathTableMap.php',
'EducationalPathsMandatoryCourses' => 'ip7website/EducationalPathsMandatoryCourses.php',
'EducationalPathsMandatoryCoursesPeer' => 'ip7website/EducationalPathsMandatoryCoursesPeer.php',
'EducationalPathsMandatoryCoursesQuery' => 'ip7website/EducationalPathsMandatoryCoursesQuery.php',
'EducationalPathsMandatoryCoursesTableMap' => 'ip7website/map/EducationalPathsMandatoryCoursesTableMap.php',
'EducationalPathsOptionalCourses' => 'ip7website/EducationalPathsOptionalCourses.php',
'EducationalPathsOptionalCoursesPeer' => 'ip7website/EducationalPathsOptionalCoursesPeer.php',
'EducationalPathsOptionalCoursesQuery' => 'ip7website/EducationalPathsOptionalCoursesQuery.php',
'EducationalPathsOptionalCoursesTableMap' => 'ip7website/map/EducationalPathsOptionalCoursesTableMap.php',
'File' => 'ip7website/File.php',
'FilePeer' => 'ip7website/FilePeer.php',
'FileQuery' => 'ip7website/FileQuery.php',
Expand Down
47 changes: 0 additions & 47 deletions models/build/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -98,53 +98,6 @@ CREATE TABLE `courses_aliases`
INDEX `courses_aliases_FI_1` (`course_id`)
) ENGINE=MyISAM;

-- ---------------------------------------------------------------------
-- educational_paths
-- ---------------------------------------------------------------------

DROP TABLE IF EXISTS `educational_paths`;

CREATE TABLE `educational_paths`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`short_name` VARCHAR(8) NOT NULL,
`name` VARCHAR(50) NOT NULL,
`description` TEXT(1024),
`cursus_id` INTEGER NOT NULL,
`deleted` TINYINT(1) DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE INDEX `educational_paths_U_1` (`short_name`, `cursus_id`),
INDEX `educational_paths_FI_1` (`cursus_id`)
) ENGINE=MyISAM;

-- ---------------------------------------------------------------------
-- educational_paths_optional_courses
-- ---------------------------------------------------------------------

DROP TABLE IF EXISTS `educational_paths_optional_courses`;

CREATE TABLE `educational_paths_optional_courses`
(
`course_id` INTEGER NOT NULL,
`path_id` INTEGER NOT NULL,
PRIMARY KEY (`course_id`,`path_id`),
INDEX `educational_paths_optional_courses_FI_2` (`path_id`)
) ENGINE=MyISAM;

-- ---------------------------------------------------------------------
-- educational_paths_mandatory_courses
-- ---------------------------------------------------------------------

DROP TABLE IF EXISTS `educational_paths_mandatory_courses`;

CREATE TABLE `educational_paths_mandatory_courses`
(
`course_id` INTEGER NOT NULL,
`path_id` INTEGER NOT NULL,
PRIMARY KEY (`course_id`,`path_id`),
INDEX `educational_paths_mandatory_courses_FI_2` (`path_id`)
) ENGINE=MyISAM;

-- ---------------------------------------------------------------------
-- files
-- ---------------------------------------------------------------------
Expand Down
67 changes: 0 additions & 67 deletions models/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,73 +242,6 @@
</foreign-key>
</table>

<!-- === parcours pédagogiques === -->
<table name="educational_paths" phpName="EducationalPath">

<!-- id -->
<column name="id" type="INTEGER" required="true" primaryKey="true" autoIncrement="true"/>

<!-- nom -->
<column name="short_name" type="VARCHAR" size="8" required="true" />
<column name="name" type="VARCHAR" size="50" required="true" />

<!-- description -->
<column name="description" type="LONGVARCHAR" size="1024" lazyLoad="true" />

<!-- cursus -->
<column name="cursus_id" type="INTEGER" required="true" />

<!-- si le parcours a été supprimé -->
<column name="deleted" type="BOOLEAN" defaultExpr="0" />

<!-- == index & clefs étrangères == -->

<foreign-key foreignTable="cursus" onDelete="CASCADE" onUpdate="CASCADE" phpName="Cursus">
<reference local="cursus_id" foreign="id" />
</foreign-key>

<unique>
<unique-column name="short_name" />
<unique-column name="cursus_id" />
</unique>
</table>

<!-- liens matières/parcours (facultatives) -->
<table name="educational_paths_optional_courses" isCrossRef="true">
<!-- id de la matière -->
<column name="course_id" type="INTEGER" primaryKey="true" />
<!-- id du parcours -->
<column name="path_id" type="INTEGER" primaryKey="true" />

<!-- == index & clefs étrangères == -->

<foreign-key foreignTable="courses" onDelete="CASCADE" onUpdate="CASCADE" phpName="OptionalCourse">
<reference local="course_id" foreign="id" />
</foreign-key>

<foreign-key foreignTable="educational_paths" onDelete="CASCADE" onUpdate="CASCADE" phpName="OptionalEducationalPath">
<reference local="path_id" foreign="id" />
</foreign-key>
</table>

<!-- liens matières/parcours (obligatoires) -->
<table name="educational_paths_mandatory_courses" isCrossRef="true">
<!-- id de la matière -->
<column name="course_id" type="INTEGER" primaryKey="true" />
<!-- id du parcours -->
<column name="path_id" type="INTEGER" primaryKey="true" />

<!-- == index & clefs étrangères == -->

<foreign-key foreignTable="courses" onDelete="CASCADE" onUpdate="CASCADE" phpName="MandatoryCourse">
<reference local="course_id" foreign="id" />
</foreign-key>

<foreign-key foreignTable="educational_paths" onDelete="CASCADE" onUpdate="CASCADE" phpName="MandatoryEducationalPath">
<reference local="path_id" foreign="id" />
</foreign-key>
</table>

<!-- === fichiers === -->
<table name="files" phpName="File">

Expand Down

0 comments on commit a564118

Please sign in to comment.