From a5ad2411efbc09cd7c27579205d364a405218b2a Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Mon, 14 Jul 2014 08:44:26 +1000
Subject: [PATCH] FIX: bypass views

---
 script/discourse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/discourse b/script/discourse
index 47b7dece5..b7bae9c9c 100755
--- a/script/discourse
+++ b/script/discourse
@@ -19,7 +19,7 @@ class DiscourseCLI < Thor
 
     sql = "SELECT table_name, column_name
 FROM information_schema.columns
-WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%')"
+WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%') and is_updatable = 'YES'"
 
     cnn = ActiveRecord::Base.connection.raw_connection