Fixes to Tree::AdjacencyList, and working tests.
[dbsrgits/DBIx-Class.git] / t / lib / sqlite.sql
index c7190e9..1e8f83e 100644 (file)
@@ -1,10 +1,18 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Mar 23 11:13:18 2006
+-- Created on Thu Mar 23 19:41:26 2006
 -- 
 BEGIN TRANSACTION;
 
 --
+-- Table: serialized
+--
+CREATE TABLE serialized (
+  id INTEGER PRIMARY KEY NOT NULL,
+  serialized text NOT NULL
+);
+
+--
 -- Table: employees_positioned
 --
 CREATE TABLE employees_positioned (
@@ -15,20 +23,13 @@ CREATE TABLE employees_positioned (
 );
 
 --
--- Table: serialized
---
-CREATE TABLE serialized (
-  id INTEGER PRIMARY KEY NOT NULL,
-  serialized text NOT NULL
-);
-
---
--- Table: cd_to_producer
+-- Table: employees_adjacencylist
 --
-CREATE TABLE cd_to_producer (
-  cd integer NOT NULL,
-  producer integer NOT NULL,
-  PRIMARY KEY (cd, producer)
+CREATE TABLE employees_adjacencylist (
+  employee_id INTEGER PRIMARY KEY NOT NULL,
+  parent_id integer NOT NULL,
+  position integer,
+  name varchar(100)
 );
 
 --
@@ -40,12 +41,12 @@ CREATE TABLE liner_notes (
 );
 
 --
--- Table: employees_adjacencylist
+-- Table: cd_to_producer
 --
-CREATE TABLE employees_adjacencylist (
-  employee_id INTEGER PRIMARY KEY NOT NULL,
-  parent_id integer,
-  name varchar(100)
+CREATE TABLE cd_to_producer (
+  cd integer NOT NULL,
+  producer integer NOT NULL,
+  PRIMARY KEY (cd, producer)
 );
 
 --
@@ -57,16 +58,6 @@ CREATE TABLE artist (
 );
 
 --
--- Table: employees_positioned_adjacencylist
---
-CREATE TABLE employees_positioned_adjacencylist (
-  employee_id INTEGER PRIMARY KEY NOT NULL,
-  parent_id integer,
-  position integer NOT NULL,
-  name varchar(100)
-);
-
---
 -- Table: self_ref_alias
 --
 CREATE TABLE self_ref_alias (
@@ -96,11 +87,10 @@ CREATE TABLE track (
 );
 
 --
--- Table: treelike
+-- Table: self_ref
 --
-CREATE TABLE treelike (
+CREATE TABLE self_ref (
   id INTEGER PRIMARY KEY NOT NULL,
-  parent integer NOT NULL,
   name varchar(100) NOT NULL
 );
 
@@ -114,10 +104,11 @@ CREATE TABLE tags (
 );
 
 --
--- Table: self_ref
+-- Table: treelike
 --
-CREATE TABLE self_ref (
+CREATE TABLE treelike (
   id INTEGER PRIMARY KEY NOT NULL,
+  parent integer NOT NULL,
   name varchar(100) NOT NULL
 );
 
@@ -151,6 +142,14 @@ CREATE TABLE artist_undirected_map (
 );
 
 --
+-- Table: producer
+--
+CREATE TABLE producer (
+  producerid INTEGER PRIMARY KEY NOT NULL,
+  name varchar(100) NOT NULL
+);
+
+--
 -- Table: onekey
 --
 CREATE TABLE onekey (
@@ -159,12 +158,4 @@ CREATE TABLE onekey (
   cd integer NOT NULL
 );
 
---
--- Table: producer
---
-CREATE TABLE producer (
-  producerid INTEGER PRIMARY KEY NOT NULL,
-  name varchar(100) NOT NULL
-);
-
 COMMIT;