Permalink
Browse files

remove schema cmd because it's broken

  • Loading branch information...
1 parent f091619 commit a553202a76a6e326881d3753c7d0379454ec8d0c @leafo leafo committed Feb 27, 2014
Showing with 6 additions and 9 deletions.
  1. +2 −3 Makefile
  2. +0 −6 cmd/schema.moon
  3. +4 −0 schema.moon
View
@@ -1,5 +1,5 @@
-.PHONY: test test_db schema
+.PHONY: test test_db lint schema routes
test:
busted
@@ -15,8 +15,7 @@ lint:
schema:
- lapis exec 'require "cmd.schema"'
-
+ lapis exec 'require"schema".make_schema()'
routes:
lapis exec 'require "cmd.routes"'
View
@@ -1,6 +0,0 @@
-import make_schema from require "schema"
-make_schema!
-
-import Manifests from require "models"
-Manifests\create "root", true
-
View
@@ -211,6 +211,10 @@ make_schema = ->
create_index "api_keys", "user_id"
+ import Manifests from require "models"
+ unless Manifests\find name: "root"
+ Manifests\create "root", true
+
if ... == "test"
db.query = print
db.select = -> { { c: 0 } }

0 comments on commit a553202

Please sign in to comment.