@@ -2012,7 +2012,7 @@ defmodule Ecto.Adapters.PostgresTest do
20122012
20132013 test "create table with prefix" do
20142014 create =
2015- { :create , table ( :posts , prefix: : foo) ,
2015+ { :create , table ( :posts , prefix: " foo" ) ,
20162016 [ { :add , :category_0 , % Reference { table: :categories } , [ ] } ] }
20172017
20182018 assert execute_ddl ( create ) == [
@@ -2406,15 +2406,15 @@ defmodule Ecto.Adapters.PostgresTest do
24062406 end
24072407
24082408 test "drop table with prefix" do
2409- drop = { :drop , table ( :posts , prefix: : foo) , :restrict }
2409+ drop = { :drop , table ( :posts , prefix: " foo" ) , :restrict }
24102410 assert execute_ddl ( drop ) == [ ~s| DROP TABLE "foo"."posts"| ]
24112411 end
24122412
24132413 test "drop table with cascade" do
24142414 drop = { :drop , table ( :posts ) , :cascade }
24152415 assert execute_ddl ( drop ) == [ ~s| DROP TABLE "posts" CASCADE| ]
24162416
2417- drop = { :drop , table ( :posts , prefix: : foo) , :cascade }
2417+ drop = { :drop , table ( :posts , prefix: " foo" ) , :cascade }
24182418 assert execute_ddl ( drop ) == [ ~s| DROP TABLE "foo"."posts" CASCADE| ]
24192419 end
24202420
@@ -2518,7 +2518,7 @@ defmodule Ecto.Adapters.PostgresTest do
25182518
25192519 test "alter table with prefix" do
25202520 alter =
2521- { :alter , table ( :posts , prefix: : foo) ,
2521+ { :alter , table ( :posts , prefix: " foo" ) ,
25222522 [
25232523 { :add , :author_id , % Reference { table: :author } , [ ] } ,
25242524 { :modify , :permalink_id , % Reference { table: :permalinks } , null: false }
@@ -2586,22 +2586,22 @@ defmodule Ecto.Adapters.PostgresTest do
25862586 end
25872587
25882588 test "create index with prefix" do
2589- create = { :create , index ( :posts , [ :category_id , :permalink ] , prefix: : foo) }
2589+ create = { :create , index ( :posts , [ :category_id , :permalink ] , prefix: " foo" ) }
25902590
25912591 assert execute_ddl ( create ) ==
25922592 [
25932593 ~s| CREATE INDEX "posts_category_id_permalink_index" ON "foo"."posts" ("category_id", "permalink")|
25942594 ]
25952595
2596- create = { :create , index ( :posts , [ "lower(permalink)" ] , name: "posts$main" , prefix: : foo) }
2596+ create = { :create , index ( :posts , [ "lower(permalink)" ] , name: "posts$main" , prefix: " foo" ) }
25972597
25982598 assert execute_ddl ( create ) ==
25992599 [ ~s| CREATE INDEX "posts$main" ON "foo"."posts" (lower(permalink))| ]
26002600 end
26012601
26022602 test "create index with comment" do
26032603 create =
2604- { :create , index ( :posts , [ :category_id , :permalink ] , prefix: : foo, comment: "comment" ) }
2604+ { :create , index ( :posts , [ :category_id , :permalink ] , prefix: " foo" , comment: "comment" ) }
26052605
26062606 assert execute_ddl ( create ) == [
26072607 remove_newlines ( """
@@ -2727,7 +2727,7 @@ defmodule Ecto.Adapters.PostgresTest do
27272727 end
27282728
27292729 test "drop index with prefix" do
2730- drop = { :drop , index ( :posts , [ :id ] , name: "posts$main" , prefix: : foo) , :restrict }
2730+ drop = { :drop , index ( :posts , [ :id ] , name: "posts$main" , prefix: " foo" ) , :restrict }
27312731 assert execute_ddl ( drop ) == [ ~s| DROP INDEX "foo"."posts$main"| ]
27322732 end
27332733
@@ -2741,7 +2741,7 @@ defmodule Ecto.Adapters.PostgresTest do
27412741 drop = { :drop , index ( :posts , [ :id ] , name: "posts$main" ) , :cascade }
27422742 assert execute_ddl ( drop ) == [ ~s| DROP INDEX "posts$main" CASCADE| ]
27432743
2744- drop = { :drop , index ( :posts , [ :id ] , name: "posts$main" , prefix: : foo) , :cascade }
2744+ drop = { :drop , index ( :posts , [ :id ] , name: "posts$main" , prefix: " foo" ) , :cascade }
27452745 assert execute_ddl ( drop ) == [ ~s| DROP INDEX "foo"."posts$main" CASCADE| ]
27462746 end
27472747
@@ -2755,7 +2755,7 @@ defmodule Ecto.Adapters.PostgresTest do
27552755
27562756 test "rename index with prefix" do
27572757 rename =
2758- { :rename , index ( :people , [ :name ] , name: "persons_name_index" , prefix: : foo) ,
2758+ { :rename , index ( :people , [ :name ] , name: "persons_name_index" , prefix: " foo" ) ,
27592759 "people_name_index" }
27602760
27612761 assert execute_ddl ( rename ) == [
@@ -2868,7 +2868,7 @@ defmodule Ecto.Adapters.PostgresTest do
28682868 end
28692869
28702870 test "rename table with prefix" do
2871- rename = { :rename , table ( :posts , prefix: : foo) , table ( :new_posts , prefix: : foo) }
2871+ rename = { :rename , table ( :posts , prefix: " foo" ) , table ( :new_posts , prefix: " foo" ) }
28722872 assert execute_ddl ( rename ) == [ ~s| ALTER TABLE "foo"."posts" RENAME TO "new_posts"| ]
28732873 end
28742874
@@ -2878,7 +2878,7 @@ defmodule Ecto.Adapters.PostgresTest do
28782878 end
28792879
28802880 test "rename column in prefixed table" do
2881- rename = { :rename , table ( :posts , prefix: : foo) , :given_name , :first_name }
2881+ rename = { :rename , table ( :posts , prefix: " foo" ) , :given_name , :first_name }
28822882
28832883 assert execute_ddl ( rename ) == [
28842884 ~s| ALTER TABLE "foo"."posts" RENAME "given_name" TO "first_name"|
0 commit comments