Skip to content

Commit

Permalink
update with DRIVER const, and column options element
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Jul 3, 2018
1 parent 91b81c1 commit 94f5d68
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CompositeDataSource/Course/CourseTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class CourseTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'courses';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class CourseTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'course_number' => [
'name' => 'course_number',
Expand All @@ -39,6 +42,7 @@ class CourseTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'title' => [
'name' => 'title',
Expand All @@ -49,6 +53,7 @@ class CourseTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
5 changes: 5 additions & 0 deletions src/CompositeDataSource/Degree/DegreeTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class DegreeTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'degrees';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class DegreeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'degree_subject' => [
'name' => 'degree_subject',
Expand All @@ -39,6 +42,7 @@ class DegreeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'title' => [
'name' => 'title',
Expand All @@ -49,6 +53,7 @@ class DegreeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
8 changes: 8 additions & 0 deletions src/CompositeDataSource/Enrollment/EnrollmentTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class EnrollmentTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'enrollments';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'student_ln' => [
'name' => 'student_ln',
Expand All @@ -39,6 +42,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'course_subject' => [
'name' => 'course_subject',
Expand All @@ -49,6 +53,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'course_number' => [
'name' => 'course_number',
Expand All @@ -59,6 +64,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'grade' => [
'name' => 'grade',
Expand All @@ -69,6 +75,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'points' => [
'name' => 'points',
Expand All @@ -79,6 +86,7 @@ class EnrollmentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
5 changes: 5 additions & 0 deletions src/CompositeDataSource/Gpa/GpaTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class GpaTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'gpas';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class GpaTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'student_ln' => [
'name' => 'student_ln',
Expand All @@ -39,6 +42,7 @@ class GpaTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'gpa' => [
'name' => 'gpa',
Expand All @@ -49,6 +53,7 @@ class GpaTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
6 changes: 6 additions & 0 deletions src/CompositeDataSource/Student/StudentTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class StudentTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'students';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class StudentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'student_ln' => [
'name' => 'student_ln',
Expand All @@ -39,6 +42,7 @@ class StudentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => true,
'options' => null,
],
'degree_type' => [
'name' => 'degree_type',
Expand All @@ -49,6 +53,7 @@ class StudentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'degree_subject' => [
'name' => 'degree_subject',
Expand All @@ -59,6 +64,7 @@ class StudentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
4 changes: 4 additions & 0 deletions src/DataSource/Author/AuthorTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class AuthorTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'authors';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class AuthorTable extends Table
'default' => null,
'autoinc' => true,
'primary' => true,
'options' => null,
],
'name' => [
'name' => 'name',
Expand All @@ -39,6 +42,7 @@ class AuthorTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
5 changes: 5 additions & 0 deletions src/DataSource/Bidibar/BidibarTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class BidibarTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'bidibars';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class BidibarTable extends Table
'default' => null,
'autoinc' => true,
'primary' => true,
'options' => null,
],
'bidifoo_id' => [
'name' => 'bidifoo_id',
Expand All @@ -39,6 +42,7 @@ class BidibarTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'name' => [
'name' => 'name',
Expand All @@ -49,6 +53,7 @@ class BidibarTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
5 changes: 5 additions & 0 deletions src/DataSource/Bidifoo/BidifooTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class BidifooTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'bidifoos';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class BidifooTable extends Table
'default' => null,
'autoinc' => true,
'primary' => true,
'options' => null,
],
'bidibar_id' => [
'name' => 'bidibar_id',
Expand All @@ -39,6 +42,7 @@ class BidifooTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'name' => [
'name' => 'name',
Expand All @@ -49,6 +53,7 @@ class BidifooTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
6 changes: 6 additions & 0 deletions src/DataSource/Comment/CommentTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class CommentTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'comments';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class CommentTable extends Table
'default' => null,
'autoinc' => true,
'primary' => true,
'options' => null,
],
'related_type' => [
'name' => 'related_type',
Expand All @@ -39,6 +42,7 @@ class CommentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'related_id' => [
'name' => 'related_id',
Expand All @@ -49,6 +53,7 @@ class CommentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'body' => [
'name' => 'body',
Expand All @@ -59,6 +64,7 @@ class CommentTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
6 changes: 6 additions & 0 deletions src/DataSource/Employee/EmployeeTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
class EmployeeTable extends Table
{
const DRIVER = 'sqlite';

const NAME = 'employee';

const COLUMNS = [
Expand All @@ -29,6 +31,7 @@ class EmployeeTable extends Table
'default' => null,
'autoinc' => true,
'primary' => true,
'options' => null,
],
'name' => [
'name' => 'name',
Expand All @@ -39,6 +42,7 @@ class EmployeeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'building' => [
'name' => 'building',
Expand All @@ -49,6 +53,7 @@ class EmployeeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
'floor' => [
'name' => 'floor',
Expand All @@ -59,6 +64,7 @@ class EmployeeTable extends Table
'default' => null,
'autoinc' => false,
'primary' => false,
'options' => null,
],
];

Expand Down
Loading

0 comments on commit 94f5d68

Please sign in to comment.