 	                                           [:date :timestamp :default :current_timestamp]))))
 
 
-;;;;;;;;;;;;;;;
-;;
-;; migrations
-
-(defn- migrate__reinit_seats![]
+(defn create-history-table! []
 	(sql/with-db-connection [c CONN] 
-		(sql/delete! c "seats" ["1 = 1"])
-		(apply sql/insert! c "seats" 
-			(gen-seats-data seat-schema))))
-
-
-(defn init-db[] 
-	(when-not (migrated? "testing")
-		(create-testing-table))
-
-	(when-not (migrated? "seats")
-		(create-seats-table))
-
-	(when-not (migrated? "bookings")
-		(create-bookings-table))
-
-	(migrate-live! "1_reinit_seats" migrate__reinit_seats!)
-
-)
-
-
-
-
-
-
-
+		(sql/db-do-commands c
+	                    (sql/create-table-ddl "history"
+	                                           [:booking_id "varchar(48)"]
+	                                           [:seat "varchar(10)"]
+	                                           [:status "varchar(20)"]
+	                                           [:date :timestamp :default :current_timestamp]
+	                                           ))))
 
 ;;;;;;;;;
 ;; DML

	                     (sql/drop-table-ddl table))))


(defn create-testing-table[]
	(sql/db-do-commands CONN
	                    (sql/create-table-ddl :testing [:data :text]))
		(sql/insert! CONN


;; seats

(defn create-seats-table! [] 
	(sql/with-db-connection [c CONN] 
		(sql/db-do-commands c
	                    (sql/create-table-ddl "seats"
