File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
app/src/main/scala/org/alephium/explorer/persistence Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -31,29 +31,9 @@ import org.alephium.explorer.persistence.schema.CustomGetResult._
31
31
@ SuppressWarnings (Array (" org.wartremover.warts.AnyVal" ))
32
32
object Migrations extends StrictLogging {
33
33
34
- val latestVersion : MigrationVersion = MigrationVersion (1 )
34
+ val latestVersion : MigrationVersion = MigrationVersion (0 )
35
35
36
- def migration1 (implicit ec : ExecutionContext ): DBActionAll [Unit ] =
37
- for {
38
- _ <-
39
- sqlu """ ALTER TABLE contracts ADD COLUMN IF NOT EXISTS main_chain boolean NOT NULL DEFAULT TRUE """
40
- _ <-
41
- sqlu """ ALTER TABLE events ADD COLUMN IF NOT EXISTS main_chain boolean NOT NULL DEFAULT TRUE """
42
- _ <- sqlu """
43
- UPDATE contracts
44
- SET main_chain = false
45
- WHERE block_hash IN (SELECT hash FROM block_headers WHERE main_chain = false)
46
- """
47
- _ <- sqlu """
48
- UPDATE events
49
- SET main_chain = false
50
- WHERE block_hash IN (SELECT hash FROM block_headers WHERE main_chain = false)
51
- """
52
- } yield ()
53
-
54
- private def migrations (implicit ec : ExecutionContext ): Seq [DBActionAll [Unit ]] = Seq (
55
- migration1
56
- )
36
+ private val migrations : Seq [DBActionAll [Unit ]] = Seq ()
57
37
58
38
def migrationsQuery (
59
39
versionOpt : Option [MigrationVersion ]
You can’t perform that action at this time.
0 commit comments